From twbus
查台北/新北/基隆/台中即時公車到站時間、模糊搜路線/站牌、管理 favourites。Use when user asks for Taiwan bus ETA, looks up a route or stop, or manages saved bus routes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/twbus:twbusThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Taiwan public bus realtime data via TDX v2 Bus API.
Taiwan public bus realtime data via TDX v2 Bus API.
首次使用前:
twbus 指令上 PATH):
curl -fsSL https://raw.githubusercontent.com/echoulen/twbus/main/install.sh | bash
~/.twbus/.env:
TDX_CLIENT_ID=...
TDX_CLIENT_SECRET=...
(或設環境變數 TDX_CLIENT_ID / TDX_CLIENT_SECRET,env var 優先)
| Slash | 用途 | Ref 格式 |
|---|---|---|
/bus-search <kw> | 跨城市模糊搜路線+站牌 | 自由關鍵字 |
/bus-status <ref...> | 查 favourite 下一班 ETA | <city>:<route>:<stop>:往<終點> |
/bus-stop <city>:<stop> | 站牌中心:這站有哪些車要來 | <city>:<stop> |
/bus-add <ref> | 加 favourite;ref 不全則列候選 | 同 status,或 partial |
/bus-list | 列 favourites | — |
台北 / 新北 / 基隆 / 台中(CLI 內部映射為 Taipei / NewTaipei / Keelung / Taichung)
~/.twbus/catalog/<city>.json,7 天 TTL;之後純走 localroute_not_found / stop_not_on_route 且 catalog > 1 天舊 → CLI 自動 refresh 一次再試(新路線/改站時不用使用者手動 refresh)--refresh flag 強制重抓 catalog/bus-search, /bus-status, /bus-stop 用 --json envelope(ok / data / warnings / error)/bus-add, /bus-list 用純文字 prefix(仿 twparking)使用者用自然語言問公車時,應主動跑對應的 twbus ... --json,把結果整理回中文表格給他,不要等使用者下 slash command。
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub echoulen/twbus --plugin twbus