Token导航 LogoToken导航TokenDH.com
开发执行命令clawhub未标认证来源可访问clear审计通过

hk-transit-eta香港交通预计到达时间

Agent Skill

hk-transit-eta 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,316

周安装

226

GitHub Stars

公开资料未说明

下载量

1,862
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:hk-transit-eta(香港交通预计到达时间)
来源仓库:https://github.com/jimpang8/hk-transit-eta
安装命令:
openclaw skills install hk-transit-eta
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install hk-transit-eta

简介

hk-transit-eta 查询香港巴士与港铁重铁的预计到站时间,支持自然语言提问方式。

  • 适合依赖公共交通出行的用户,提升行程安排效率与准时性。
  • 可指定线路编号、上下车点或目的地进行精准检索,返回多班次时间预估。
  • 数据来自官方开放平台,但受路况影响可能存在误差;建议预留缓冲时间应对延误。
  • 适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
hk-bus-eta
description
Query Hong Kong bus ETA/stop data and MTR heavy rail ETA from natural-language transport questions using official KMB/LWB, Citybus, and MTR open-data endpoints. Use when the user asks in Cantonese, Chinese, or English things like「74X 幾多分鐘後喺九龍灣有車」「A41 去機場而家幾時到青衣站」「城巴 20 喺啟德幾耐到」「火炭站去金鐘方向幾點有車」「金鐘去北角下一班港島線幾時」or any message that combines a bus route with a stop/place, or an MTR station with a destination/direction/ETA intent.

HK Bus ETA / MTR ETA

Use the bundled script to answer Hong Kong bus route + stop queries and MTR heavy rail station + direction queries quickly and consistently.

Quick start

Run the bundled script from the skill directory:

Bus

Legacy bus invocation still works:

python3 scripts/hk_bus_eta.py <route> <stop-keyword>

Equivalent explicit subcommand:

python3 scripts/hk_bus_eta.py bus <route> <stop-keyword>

Examples:

python3 scripts/hk_bus_eta.py 74X 九龍灣
python3 scripts/hk_bus_eta.py bus A41 青衣 --operator lwb
python3 scripts/hk_bus_eta.py bus 20 啟德 --operator citybus
python3 scripts/hk_bus_eta.py bus 20 "Kai Tak" --operator citybus --direction outbound
python3 scripts/hk_bus_eta.py bus 74X 九龍灣 --direction outbound
python3 scripts/hk_bus_eta.py bus 74X 九龍灣 --json

MTR heavy rail

Structured station-to-station query:

python3 scripts/hk_bus_eta.py mtr <origin-station> <destination-station>

Natural-language prompt parsing:

python3 scripts/hk_bus_eta.py mtr-text "火炭站去金鐘方向幾點有車"

Examples:

python3 scripts/hk_bus_eta.py mtr 火炭 金鐘
python3 scripts/hk_bus_eta.py mtr 火炭 金鐘 --line EAL
python3 scripts/hk_bus_eta.py mtr-text "火炭站去金鐘方向幾點有車"
python3 scripts/hk_bus_eta.py mtr-text "金鐘去北角下一班港島線幾時"
python3 scripts/hk_bus_eta.py mtr-text "荃灣站往中環方向有冇車" --json

Or use an absolute path rooted at the installed skill folder if needed.

Extraction workflow

A. Bus queries

  1. Extract the route first.

- Examples: 74X, A41, 20, NA31.

  1. Extract the stop or area keyword next.

- Accept stop names, stations, estates, landmarks, districts, malls, piers, airports, hospitals, or short area names. - Treat messages like 74X 九龍灣幾耐到, A41 青衣站有冇車, 城巴20啟德幾時到 as route + place queries.

  1. Infer operator if the user says it explicitly.

- 九巴--operator kmb - 龍運 / Long Win--operator lwb - 城巴 / Citybus--operator citybus - If the user does not say, default to KMB. If the route obviously looks like a Citybus-only route or the first attempt fails, retry with --operator citybus.

  1. If the user hints at direction or destination, pass it through.

- 去機場, 往尖沙咀, outbound, 返去 often imply direction disambiguation. - Use --direction outbound or --direction inbound when the user's wording clearly prefers one side.

  1. Run the bus query.
  2. If multiple stop matches appear, summarize each clearly with operator, direction, stop name, sequence, and destination.
  3. Report ETA in natural language, usually in minutes first.
  4. If no match appears, say so and ask for a more specific stop name, estate, station, or direction.

B. MTR heavy rail queries

  1. Detect that the prompt is station + destination/direction based, not bus-route based.

- Strong triggers: X站去Y方向, X去Y下一班, 往Y有冇車, X站到Y幾點有車.

  1. Extract the origin station and target station/direction anchor.

- Examples: - 火炭站去金鐘方向幾點有車 → origin 火炭, target 金鐘 - 金鐘去北角下一班港島線幾時 → origin 金鐘, target 北角, line hint ISL - 荃灣站往中環方向有冇車 → origin 荃灣, target 中環

  1. If the message names a line, pass it as --line.

- Common mappings: - 東鐵線EAL - 港島線ISL - 荃灣線TWL - 觀塘線KTL - 將軍澳線TKL - 屯馬線TML - 東涌線TCL - 機場快綫 / Airport ExpressAEL - 南港島線SIL - 迪士尼線DRL

  1. Prefer mtr-text when the user phrased the request naturally and it fits the built-in patterns.
  2. If parsing feels ambiguous, use mtr <origin> <destination> directly instead of guessing from a messy sentence.
  3. The script resolves line/station mapping from the official MTR lines-and-stations CSV, then filters trains from the official MTR schedule endpoint that actually pass the requested target station.
  4. If multiple line candidates remain, list them instead of pretending certainty.

Reporting guidance

  • Prefer a concise answer like 74X 喺九龍灣下一班大約 3 分鐘後到。 or 火炭去金鐘方向下一班東鐵線大約 2 分鐘後到,4 號月台。
  • If there are multiple likely matches, list them instead of guessing.
  • If there is no ETA, say that clearly rather than implying no service.
  • Use --json only when structured output is easier for follow-up processing.

Operator / data-source notes

  • kmb: official data.etabus.gov.hk KMB endpoints.
  • lwb: handled through the same KMB-family endpoint structure used by Long Win routes in the KMB dataset.
  • citybus: official rt.data.gov.hk/v2/transport/citybus endpoints.
  • mtr: official rt.data.gov.hk/v1/transport/mtr/getSchedule.php endpoint plus the official MTR lines/stations CSV from opendata.mtr.com.hk.

Matching behavior

  • Bus stop matching is flexible substring/token matching against Traditional Chinese, Simplified Chinese, and English stop names.
  • MTR station matching is flexible against Chinese name, English name, and station code.
  • For MTR, destination matching is by path logic, not just terminal-code equality: trains are kept only if their displayed destination would carry the passenger past the requested target station on that line.
  • If the user gives only a broad area or a very ambiguous station name, refine from the returned candidates.

Scope and limitations

  • Bus coverage here remains KMB, Long Win, and Citybus only.
  • MTR coverage added here is heavy rail only. Light Rail, buses branded under MTR, and airport/feeder bus services are out of scope.
  • mtr-text handles common natural-language forms like X站去Y方向幾點有車, X去Y下一班, and X往Y有冇車; unusual phrasings may need manual extraction with mtr <origin> <destination>.
  • Very ambiguous interchange stations or cross-line phrasing may return multiple candidates and need clarification.
  • The script does not plan multi-leg journeys; it answers next-train ETA for a specific origin station toward a target station on a line that passes both.

scripts/

  • scripts/hk_bus_eta.py — query KMB/LWB/Citybus bus ETA, and MTR heavy rail ETA using either structured station arguments or a short natural-language MTR prompt.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

83.61%
按下载量换算1,557

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install hk-transit-eta 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills