Logo di Gtfs Nz

Gtfs Nz

Organizzazione
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.

Panoramica

Pubblicato dathecolab-ai
Repository.skills
Nome della skillgtfs-nz
Stelle
39
Fork
9
File inclusi
5
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 5

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da thecolab-ai su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Gtfs Nz in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/thecolab-ai/.skills/tree/main/skills/gtfs-nz
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Gtfs Nz in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Gtfs Nz non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Gtfs Nz non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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).

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Gtfs Nz su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Gtfs Nz è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Gtfs Nz in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/thecolab-ai/.skills/tree/main/skills/gtfs-nz. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Gtfs Nz?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Gtfs Nz?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Gtfs Nz: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Gtfs Nz è gratuita?

Sì. È pubblicata su GitHub da thecolab-ai con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇