At transport

From thecolab-ai/.skills · View interactive version

At transport is an AI agent skill from the GitHub repository thecolab-ai/.skills. Query live Auckland Transport (AT) public transport data — stops, departures, service alerts, vehicle positions, routes, and network status. Use when the task involves Auckland buses, trains, ferries, or real-time transit information.

How to use this skill

Skill file

Auckland Transport

Goal

Query live Auckland public transport data from the AT API through a CLI that is easy for agents to script and easy for humans to scan. Covers real-time departures, service alerts, stop search, nearby stops, vehicle tracking, and network status.

Use this when

Do not use this for

Preferred workflow

  1. Run scripts/cli.py with the narrowest subcommand that answers the task
  2. Use default human output for direct answers
  3. Use --json when another tool or agent needs machine-readable output

CLI

Run with:

python3 skills/at-transport/scripts/cli.py <command> [flags]

`alerts [--limit N] [--json]`

Active service alerts and disruptions across the Auckland network.

JSON shape:

Examples:

python3 skills/at-transport/scripts/cli.py alerts
python3 skills/at-transport/scripts/cli.py alerts --limit 5
python3 skills/at-transport/scripts/cli.py alerts --json

`departures <stop_id> [--limit N] [--json]`

Real-time departures from a stop. Uses stop code (e.g. 11814) or full stop ID. Shows route, expected time, and delay. For parent stations, includes all child platform stops.

JSON shape:

Key stop codes:

Examples:

python3 skills/at-transport/scripts/cli.py departures 11814
python3 skills/at-transport/scripts/cli.py departures 7155 --limit 5
python3 skills/at-transport/scripts/cli.py departures 11814 --json

`stops <query> [--limit N] [--json]`

Search stops by name, code, or ID. Returns matching stops with location and type info.

JSON shape:

Examples:

python3 skills/at-transport/scripts/cli.py stops Britomart
python3 skills/at-transport/scripts/cli.py stops Newmarket
python3 skills/at-transport/scripts/cli.py stops 7155 --json

`nearby <lat,lon> [--radius N] [--limit N] [--json]`

Find stops near a geographic location. Radius in meters, defaults to 500m.

JSON shape:

Examples:

python3 skills/at-transport/scripts/cli.py nearby --location=-36.844,174.768
python3 skills/at-transport/scripts/cli.py nearby --location=-36.844,174.768 --radius 1000
python3 skills/at-transport/scripts/cli.py nearby --location=-36.844,174.768 --json

`route <route_id> [--json]`

Show details for a specific route. Use full route ID (e.g. STH-201).

JSON shape:

Examples:

python3 skills/at-transport/scripts/cli.py route STH-201
python3 skills/at-transport/scripts/cli.py route 70-221 --json

`vehicles [--route <route_id>] [--limit N] [--json]`

Live vehicle positions across the network, optionally filtered by route.

JSON shape:

Examples:

python3 skills/at-transport/scripts/cli.py vehicles
python3 skills/at-transport/scripts/cli.py vehicles --route STH-201
python3 skills/at-transport/scripts/cli.py vehicles --limit 10 --json

`status [--json]`

Overall network status summary — active trips, vehicles, on-time %, delays, and alert counts.

JSON shape:

Examples:

python3 skills/at-transport/scripts/cli.py status
python3 skills/at-transport/scripts/cli.py status --json

Resources

Notes

Source notes

Read references/source-notes.md for source ownership, access, and freshness boundaries.

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.