Gtfs Nz 标志

Gtfs Nz

组织
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.

Add to TypingMind

概览

发布者thecolab-ai
代码仓库.skills
技能名称gtfs-nz
星标数
39
复刻数
9
附带文件
5
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 5 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 thecolab-ai 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Gtfs Nz AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/thecolab-ai/.skills/tree/main/skills/gtfs-nz
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Gtfs Nz,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Gtfs Nz。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Gtfs Nz 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Gtfs Nz AI 技能有什么作用?

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.

为什么在 TypingMind 中使用 Gtfs Nz?

因为您只需安装一次,就能搭配任何模型使用。Gtfs Nz 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Gtfs Nz?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/thecolab-ai/.skills/tree/main/skills/gtfs-nz。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Gtfs Nz?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Gtfs Nz 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Gtfs Nz 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Gtfs Nz AI 技能免费吗?

是的。thecolab-ai 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇