← 返回 Skills 市场
62
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ctg-bus
功能描述
查询中旅巴士(hkctgbus)班次、票价和余票。当用户提到「中旅」「中旅巴士」「ctg」「hkctgbus」「中旅快线」「跨境巴士」等查询时触发。支持中文自然语言输入,自动解析日期、城市、站点。
使用说明 (SKILL.md)
中旅巴士查询
触发示例
- 「中旅明天去深圳的票」
- 「查中旅巴士后天去香港」
- 「中旅旺角到深圳湾口岸」
- 「hkctgbus 查票」
- 「5月30号中旅去珠海」
解析规则
城市识别
| 城市 | code | CityNo |
|---|---|---|
| 香港 | 810000 | G1095 |
| 澳門 | 820000 | K1146 |
| 深圳 | 440300 | K1096 |
| 廣州 | 440100 | N1097 |
| 珠海 | 440400 | K1121 |
| 佛山 | 440600 | N1131 |
| 江門 | 440700 | N1133 |
| 中山 | 442000 | N1135 |
| 東莞 | 441900 | N1105 |
| 肇慶 | 441200 | N1137 |
常用站点
香港出发/到达:
- 旺角維景酒店(太子中旅巴士)
- 太子榮利(港鐵A出口)
- 尖沙咀中港城
- 灣仔
- 上環
- 觀塘
- 鑽石山
- 屯門
- 荃灣
- 香港機場
- 港珠澳大橋香港口岸
深圳出发/到达:
- 深圳灣口岸
- 皇崗口岸
- 寶安機場
方向判断
- 含「回」「去」→ 推导出发/到达城市
- 默认:香港 → 深圳
日期解析
- 「今天」→ 当天
- 「明天/后天」→ 相对日期
- 「X月X号」→ 具体日期
- 无日期 → 当天
执行
解析完参数后运行:
node scripts/ctg_bus_query.js \x3C日期YYYY-MM-DD> \x3C出发城市> \x3C到达城市> [上车站] [下车站]
示例:
node scripts/ctg_bus_query.js 2026-05-30 香港 深圳 旺角維景酒店 深圳灣口岸
node scripts/ctg_bus_query.js 2026-05-30 深圳 香港 深圳灣口岸 旺角維景酒店
脚本路径相对于 skill 目录:scripts/ctg_bus_query.js
输出格式
脚本输出 JSON,整理为以下格式,必须列出所有班次:
🚌 中旅巴士:上车站 → 下车站
📅 日期:YYYY-MM-DD
💰 票价:成人 HK$60 | 人民币 ¥55
出发 到达(经) 余票 班次号
──────────────────────────────────────
07:30 深圳灣口岸(香港) 29座 ✅
08:00 深圳灣口岸(香港) 15座 ✅
...
- 显示途经口岸/站点信息
- 显示票价(港币+人民币)
- 余票为 0 标记 ⛔
注意
- 如果用户指定站点不在预设列表中,仍可通过 API 动态查找
- 站点名称支持繁体和简体混合匹配
- 脚本通过
https://wechat.hkctgbus.com/ctbAPI 查询,无需登录 - 查询到的班次数据包含途经站点详情(ViaStations 字段)
安全使用建议
Install this if you are comfortable with the skill contacting hkctgbus to look up bus schedules. Use specific CTG Bus wording when invoking it, and avoid sending travel details you do not want shared with the third-party bus API.
能力评估
Purpose & Capability
The skill's purpose is to query CTG Bus schedules, fares, and availability, and the script only builds route/date/station API requests and formats returned bus data.
Instruction Scope
The trigger terms include some broad phrases such as “ctg” and “跨境巴士”, which could activate on loosely related travel queries, but the behavior remains aligned with bus lookup.
Install Mechanism
The artifact contains only SKILL.md and one Node.js script, with no package install hooks, dependency declarations, or installation-time execution.
Credentials
The script makes outbound HTTPS requests to wechat.hkctgbus.com using user-provided travel parameters; this is disclosed and proportionate for schedule lookup, though users should understand travel details may be sent to that service.
Persistence & Privilege
No file writes, credential reads, shell execution, background workers, privilege escalation, or persistence mechanisms were found.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ctg-bus - 安装完成后,直接呼叫该 Skill 的名称或使用
/ctg-bus触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
中旅巴士(hkctgbus)班次查询,支持10个城市、常用站点,自动解析中文自然语言
元数据
常见问题
CTG Bus 是什么?
查询中旅巴士(hkctgbus)班次、票价和余票。当用户提到「中旅」「中旅巴士」「ctg」「hkctgbus」「中旅快线」「跨境巴士」等查询时触发。支持中文自然语言输入,自动解析日期、城市、站点。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 62 次。
如何安装 CTG Bus?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ctg-bus」即可一键安装,无需额外配置。
CTG Bus 是免费的吗?
是的,CTG Bus 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
CTG Bus 支持哪些平台?
CTG Bus 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 CTG Bus?
由 porridgec(@porridgec)开发并维护,当前版本 v1.0.0。
推荐 Skills