← 返回
开发者工具 中文

Translink CLI

Query, troubleshoot, and explain Translink SEQ GTFS static + realtime data using local translink_* commands or plugin slash commands. Use for schedule lookup...
使用本地translink_*命令或插件斜杠命令查询、排查和解释Translink SEQ GTFS静态及实时数据,用于时刻表查询等。
alanburchill
开发者工具 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 2
Stars
📥 996
下载
💾 5
安装
1
版本
#brisbane#gtfs#latest#openclaw#transit

概述

Translink CLI Skill

Use when working with Translink data in this environment.

Prerequisite

This skill requires the Translink CLI scripts to be installed and available in PATH.

  • CLI repo: https://github.com/alanburchill/traslink-cli-scripts
  • Expected commands: translink_* (or equivalent wrappers that expose the same command names)

If the CLI is not installed, stop and ask the user to install it first.

Command surfaces

  • Shell CLI: translink_*
  • Plugin slash commands: /translink_* and /translink [args...]

Core workflow

  1. Refresh or validate cache/schema with translink_schedule_refresh when freshness is uncertain.
  2. Query with shared parameters (--where, --contains, --in, --page, --per-page, etc.).
  3. On strict field errors, use fuzzy suggestions in the JSON error payload to auto-correct.
  4. Use PK/FK references for joins across routes/trips/stops/stop_times/calendar/shapes.
  5. For authoritative current schema, read generated schema docs first.

Shared parameter contract

All commands support:

  • --where field=value (repeatable)
  • --contains field=text (repeatable)
  • --in field=v1,v2,... (repeatable)
  • --fields a,b,c
  • --sort field
  • --order asc|desc
  • --page N
  • --per-page N (default 20)
  • --format table|json|csv
  • --count-only

Realtime extras:

  • --expand (include nested JSON fields)
  • --raw (include full raw entity JSON)
  • --time epoch|iso

Schedule extras:

  • --refresh
  • --schema

Runtime behavior

  • Static cache: ~/.openclaw/cache/translink/
  • TTL: 24h
  • Daily refresh cron (example): 5:00 AM local time (translink:schedule-refresh)
  • Refresh lock prevents concurrent extract races.
  • Schema is header-driven and auto-adapts to added columns.

Read these references as needed

  • references/commands.md — command/param/error contract
  • references/usage.md — examples
  • references/relationships.md — PK/FK joins
  • references/schema-generated.md — auto-generated live schema (authoritative)
  • references/column-meanings.md — GTFS field semantics

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 13:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,072
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,164
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,780