Nz buses

From thecolab-ai/.skills · View interactive version

Nz buses is an AI agent skill from the GitHub repository thecolab-ai/.skills. Query Wellington-region Metlink bus data through a lightweight read-only CLI for stops, routes, arrivals, service alerts, and vehicle positions. Use for Wellington buses only; do not use for Wellington trains, ferries, cable car, or Auckland Transport.

How to use this skill

Skill file

NZ Buses

Goal

Query live Wellington-region bus data through a small deterministic CLI with human-readable and JSON output.

Metlink Wellington is the v1 source. This skill intentionally filters the shared Metlink GTFS and GTFS-Realtime feeds to bus routes only.

Use this when

Do not use this for

Preferred workflow

  1. Confirm the request is for Wellington-region Metlink buses
  2. Run scripts/cli.py with the narrowest subcommand that answers the task
  3. Use stops --query or stops --near to find stop IDs before calling arrivals
  4. Use routes or route <number> to discover route IDs before route-filtered vehicle lookups
  5. Use --json for agent chaining, comparisons, or structured reports
  6. Mention that results are live Metlink snapshots and require a Metlink Open Data API key

CLI

Set a free Metlink Open Data API key first:

export METLINK_API_KEY="..."

Run with:

python3 skills/nz-buses/scripts/cli.py <command> [flags]

Commands

Examples:

python3 skills/nz-buses/scripts/cli.py routes --limit 10
python3 skills/nz-buses/scripts/cli.py route 1 --limit 12
python3 skills/nz-buses/scripts/cli.py stops --near Lambton --limit 5
python3 skills/nz-buses/scripts/cli.py stop 5011 --limit 5
python3 skills/nz-buses/scripts/cli.py arrivals 5011 --json
python3 skills/nz-buses/scripts/cli.py vehicles --route 83 --limit 10 --json
python3 skills/nz-buses/scripts/cli.py alerts --json

Resources

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.