Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计通过

hk-mtr-next-trainHK MTR Next.js train 搜索

Agent Skill

hk-mtr-next-train 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,551

周安装

236

GitHub Stars

1

下载量

1,945
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:hk-mtr-next-train(HK MTR Next.js train 搜索)
来源仓库:https://github.com/tomfong/hk-mtr-next-train
安装命令:
openclaw skills install hk-mtr-next-train
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install hk-mtr-next-train

简介

hk-mtr-next-train 可查询香港地铁下一班列车预计到达时间,支持模糊车站匹配和双语输出。

  • 适用于日常通勤规划或出行安排,尤其适合不熟悉站点名称的用户快速获取准确信息。
  • 通过关键词如“下一班车”或具体站名触发,自动调用官方数据源并返回简洁结果。
  • 依赖实时交通数据接口,需确保网络连接正常;建议在高峰时段前使用以获取可靠预测。
  • 适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
hk-mtr-next-train
description
Fast, reliable, and token-efficient Hong Kong MTR next-train ETA lookup with fuzzy station matching and bilingual output (zh-HK/en). Use for queries like next train / ETA / arrival time at station(s), including multi-station requests. 港鐵實時到站資訊,支援站名容錯、多線查詢、同方向多總站拆分等功能。
metadata
{"openclaw":{"emoji":"🚈","requires":{"bins":["python3"]},"keywords":["mtr", "hong kong mtr","mtr eta","next train","arrival time","real-time mtr","港鐵","香港鐵路","到站時間","下一班","列車"],"locale":["zh-HK","en"],"category":"transport","quality":{"latency":"1-5s","fallback":true,"fuzzyMatch":true,"multiRoute":true},"securityNotes":{"purpose":"Read-only ETA query + local cache refresh for HK MTR data","allowedDomains":["opendata.mtr.com.hk","rt.data.gov.hk"],"writeScope":["scripts/mtr_lines_and_stations.csv","scripts/__pycache__/"],"noSecrets":true}}}
user-invocable
true

Hong Kong MTR Next Train (v1.0.1)

Post-Install Recommendation

Recommend to run once after install to sync station dictionary:

cd {skill_dir}/scripts
python3 sync_mtr_stations.py

Data Refresh Rule

  • If user explicitly asks to update line/station data (新站、改名、線路更新), run:
cd {skill_dir}/scripts
python3 sync_mtr_stations.py
  • If user did not ask for refresh, prefer local CSV for faster matching.

Allowed Commands

  • python3 scripts/mtr_eta.py {STATION_NAME} {LINE_NAME(optional)} {LANG(optional)} {TO_STATION(optional)}
  • python3 scripts/sync_mtr_stations.py

Safety Scope

  • Allowed domains:

- https://rt.data.gov.hk/* - https://opendata.mtr.com.hk/*

  • Write scope (skill-local only):

- scripts/mtr_lines_and_stations.csv - scripts/__pycache__/

  • Do not access sensitive files outside skill directory.
  • Never request/store/output secrets.

Language Handling

  • Chinese query → TC
  • English/non-Chinese query → EN

Features

  • Real-time ETA: Live MTR train arrival times from DATA.GOV.HK
  • Fuzzy Matching: Smart station name matching (e.g., "旺角" matches "Mong Kok")
  • Bilingual Output: Traditional Chinese and English support
  • Token Efficient: Local CSV cache minimizes API calls and token usage
  • Multi-line: Supports all 10 MTR lines including Airport Express

Usage

  • Station + line: query that combo directly.
  • Station only: query all lines serving that station.
  • Line only: ask user which station (suggest 1–2 stations on that line).
  • Neither line nor station: ask user which station.
  • Line-station conflict: state mismatch, then show all lines at that station.

Output Policy

  • Never fabricate ETA values.
  • Keep output concise, data-first.
  • Global rule: for each direction, use API-available departures (up to 4) as source set, then split by destination if needed.
  • Do not down-sample to only 1 train when more data exists.

ETA wording

  • Within 1 minute: 即將到達 / Arriving
  • At 0 minute: 即將離開 / Departing
  • Departed within 0–2 minutes: 已離開 / Departed
  • Departed > 2 minutes: do not show

Station output format (default)

  • Title once:

- tc: 🚈 {站名}的列車班次如下: - en: 🚈 Next trains at {Station}:

  • Then one section per line: {LineName} {LineEmoji}
  • One blank line between platform blocks
  • Section divider between line sections: --------------
  • If output contains multiple stations in one reply, add one extra station divider between station blocks: ====================
  • Block format:

- tc: - • {月台}號月台|往{總站} - {ETA1}、{ETA2}、{ETA3}、{ETA4} - en: - • Platform {N} | to {Destination} - {ETA1}, {ETA2}, {ETA3}, {ETA4}

  • If platform changes within same destination block, include platform inline per ETA.

Line emoji mapping

  • AEL 機場快線: ✈️
  • TCL 東涌線: 🟠
  • TML 屯馬線: 🤎
  • TKL 將軍澳線: 🟣
  • EAL 東鐵線: 🩵
  • SIL 南港島線: 🔰
  • TWL 荃灣線: 🔴
  • ISL 港島線: 🔵
  • KTL 觀塘線: 🟢
  • Fallback: 🚇

Source footer

  • Add one blank line, then:

- tc: 資料來源:開放數據平台 - en: Source: DATA GOV HK

Fallback

If no result after matching/retry:

  • tc: {站名} @ {線路}:尾班車已過或未有班次資料
  • en: {Station} @ {Line}: Service hours have passed / No information found

Changelog

2026-03-22 · v1.0.1

  • Update docs

2026-03-18 · v1.0.0

  • First stable release

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

97.37%
按下载量换算1,894

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills