Gtfs Nz logo

Gtfs Nz

Organization
thecolab-ai
gtfs-nz

Read NZ public transport GTFS static timetables: feeds, stops, routes, trips, scheduled departures and route geometry. Use for Auckland Transport, Metlink (Wellington), BUSIT (Waikato) and Orbus (Otago) schedule baselines, spatial stop queries and timetable analysis.

Overview

Publisherthecolab-ai
Repository.skills
Skill namegtfs-nz
Stars
39
Forks
9
Bundled files
5
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by thecolab-ai on GitHub. Read the source before you install it.

Installation

Install the Gtfs Nz AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/thecolab-ai/.skills/tree/main/skills/gtfs-nz
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/thecolab-ai/.skills.git /tmp/.skills
mkdir -p .claude/skills
cp -r /tmp/.skills/skills/gtfs-nz .claude/skills/gtfs-nz
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gtfs Nz in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gtfs Nz on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gtfs Nz is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

NZ GTFS static timetables

Use scripts/cli.py for keyless NZ timetable baselines: registered feeds, stops, routes, trips, scheduled departures and route shapes. Python stdlib only. AT realtime departures, vehicles and alerts belong to at-transport, which requires the user-supplied AT_API_KEY. This skill does not query realtime APIs.

Workflow

  1. Run feeds --json to check the registry and feed validity dates; add --refresh for a live download.
  2. Select --feed at, metlink, busit or orbus.
  3. Look up stops/routes first; use their exact GTFS IDs for departures/trips/shapes.
  4. Check meta.warnings, meta.latest_data, meta.truncated and the service date before using results. Static departures are schedules, not predictions or proof of operation.

Commands

Run python3 skills/gtfs-nz/scripts/cli.py <command> [flags]. Every command supports --json, --cache-dir PATH, and --max-age SECONDS (default 86400). Every command supports --refresh; data queries support --limit N (default 100, maximum 10000). All commands reuse fresh ZIPs unless --refresh is given. Expired caches are refreshed; a failed refresh is an error.

  • feeds [--feed at|metlink|busit|orbus]: verified registry, cached or live download status, ZIP size, table names and original feed_info records. Per-feed failures have a status and error; partial failures also add meta.warnings. A total outage fails with a non-zero exit code. Each available record reports cached.
  • stops --feed at [--bbox minLon,minLat,maxLon,maxLat] [--near lon,lat --radius METRES] [--format json|geojson]: WGS84 stop locations; radius defaults to 500 m. Nearby results sort by distance. Both spatial filters may be combined. Non-spatial JSON can retain stops without coordinates; spatial output excludes those stops.
  • routes --feed at [--type bus|rail|ferry|tram|cable|other]: original route columns plus mode. Standard and extended GTFS types map to these modes (including school buses); unrecognised types map to other. See source notes for the mapping.
  • trips --feed at --route ROUTE: timetable trips, including service and shape IDs. Lists all published trips, not only trips operating today.
  • departures --feed at --stop STOP [--date YYYY-MM-DD] [--time HH:MM[:SS]]: departures from stop_times joined to trips, calendar and calendar_dates. Date defaults to today in Pacific/Auckland; time defaults to 00:00 and is an inclusive minimum. Results sort by scheduled time. Parent stations include their child platforms. Use exact stop IDs or unambiguous stop codes.
  • shapes --feed at --route ROUTE --format geojson [--bbox minLon,minLat,maxLon,maxLat]: one LineString per published shape, sorted by numeric point sequence. A bbox selects intersecting shapes and returns their complete geometry; it does not clip.

Routes accept exact route_id or an unambiguous route_short_name. IDs can change between feed versions. Negative coordinate strings are easiest with --bbox=... or --near=....

bash
python3 skills/gtfs-nz/scripts/cli.py feeds --json
python3 skills/gtfs-nz/scripts/cli.py stops --feed at --near 174.768,-36.844 --radius 500 --format geojson --json
python3 skills/gtfs-nz/scripts/cli.py stops --feed metlink --bbox=174.75,-41.30,174.80,-41.25 --json
python3 skills/gtfs-nz/scripts/cli.py routes --feed at --type rail --json
python3 skills/gtfs-nz/scripts/cli.py trips --feed at --route 101-202 --json
python3 skills/gtfs-nz/scripts/cli.py departures --feed at --stop 11814 --date 2026-10-16 --time 08:00 --json
python3 skills/gtfs-nz/scripts/cli.py shapes --feed at --route 101-202 --format geojson --json

Interpretation and output

--date is a GTFS service date, not a civil-day window. 25:10:00 means 01:10 after that service date and stays attached to that service's calendar. For early-morning civil-day analysis, query the previous service date with --time 24:00 as well as the current one. No UTC timestamps are fabricated across NZ daylight saving transitions.

JSON successes use {"meta": {...}, "results": [...]}. Spatial GeoJSON uses type, features and the same meta foreign member; --format geojson implies machine-readable output, including errors. Provenance lives under meta: source_url, publisher and ISO UTC retrieved_at, plus licence when known. For the mixed-source feeds command, records also carry each source's provenance. meta.latest_data is the stated validity range as an ISO date string (start/end); meta.feed_info retains source dates and version. These are validity dates, not publication timestamps. BUSIT has no feed_info.txt, so latest_data is omitted with a warning and its unknown licence is omitted. Cache hits retain the original retrieval time. meta.total counts all matches; meta.returned and meta.truncated describe the output limit. Original GTFS identifiers and most columns remain strings; spatial stop coordinates become numbers.

Departures exclude stops with pickup_type=1. Terminal rows remain visible with terminates: true; these are terminal arrivals, so filter them out for boarding analysis. Untimed stop_times are counted and warned about rather than interpolated. Conditional pickup fields remain visible. Frequency-based trips serving the selected stop on the service date are unsupported (exit 7); unrelated frequency trips add a warning. No journey planning, realtime conditions or frequency expansion is provided.

Resources

  • Read references/source-notes.md for verified endpoints, licences, cache/memory limits and fixture provenance.
  • scripts/test_contract.py: deterministic CLI and GTFS edge-case checks using tests/fixtures/at-sample.zip, trimmed from the real AT feed.
  • scripts/smoke_test.py: bounded fixture and live feed/query checks.

Default cache: $XDG_CACHE_HOME/thecolab-gtfs-nz (or ~/.cache/thecolab-gtfs-nz). Set GTFS_NZ_CACHE_DIR or --cache-dir to override it. Downloads have a 10 s socket timeout and a 50 s download deadline, a 128 MiB compressed cap and 1 GiB expanded-size cap; tables are streamed from the ZIP without extracting files. Errors have actionable messages and repository exit codes (2 input, 4 access, 5 network, 6 parser/cache, 7 unsupported).

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Gtfs Nz AI skill do?

Read NZ public transport GTFS static timetables: feeds, stops, routes, trips, scheduled departures and route geometry. Use for Auckland Transport, Metlink (Wellington), BUSIT (Waikato) and Orbus (Otago) schedule baselines, spatial stop queries and timetable analysis.

Why use Gtfs Nz on TypingMind?

Because you install it once and use it with any model. Gtfs Nz is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gtfs Nz in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/thecolab-ai/.skills/tree/main/skills/gtfs-nz. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Gtfs Nz?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gtfs Nz?

As many as you like. As long as a model supports skills, you can use Gtfs Nz with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gtfs Nz AI skill free?

Yes. It is published on GitHub by thecolab-ai under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇