← 返回 Skills 市场
train
作者
fenbeitong-trip
· GitHub ↗
· v1.0.0
· MIT-0
96
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install trains
功能描述
分贝通火车预订助手,实时查询火车票、展示车次列表、预订火车票、查看订单、取消订单。Invoke when user wants to search trains, book train tickets, check train orders, or cancel train bookings.
安全使用建议
This skill appears to do what it claims: it will call fenbeitong OpenAPI endpoints to search trains, create/cancel orders, and return payment/view links. Before installing, be aware that you (or your users) will need to provide personal passenger information (name, national ID, phone) which the skill sends to external fenbeitong endpoints. The code includes a hard-coded X-App-Id and EMP_ID (no secret API key), so verify you trust fenbeitong's privacy and security practices. Also ensure python3 is available in the runtime. If you need tighter privacy or auditability, ask the author how passenger data is stored, logged, or transmitted, and whether requests can be routed through a service you control or audited.
功能分析
Type: OpenClaw Skill
Name: trains
Version: 1.0.0
The skill contains hardcoded sensitive identifiers, specifically an `X_APP_ID` and an `EMP_ID` (Employee ID) within `scripts/fb_train_api.py`. This allows the agent to perform train bookings and queries under a specific, static identity on the Fenbeitong platform (openapiv2.fenbeitong.com), which could lead to unauthorized transactions or privacy leaks if deployed broadly. While this appears to be a significant security design flaw (vulnerability) rather than intentional malware, the hardcoding of identity tokens is a high-risk practice.
能力评估
Purpose & Capability
Name/description (train ticket search, booking, order management) align with the included Python modules and required python3 binary. The files implement calls to fenbeitong OpenAPI endpoints and formatting functions that are appropriate for the declared capabilities.
Instruction Scope
SKILL.md insists the agent call functions in scripts/fb_train_api.py and not fabricate results; instructions are specific about which API functions to call and what to display. There are no instructions to read unrelated local files, other environment variables, or to transmit data to endpoints other than the documented fenbeitong domains.
Install Mechanism
This is an instruction-only skill with bundled Python scripts and no install script or archive downloads. No third-party install URLs or extract operations are present; risk from install mechanism is low. It requires python3 to run, which is reasonable.
Credentials
The skill requests no environment variables or platform credentials, but the code contains a hard-coded X-App-Id and EMP_ID and will send user-provided PII (names, ID numbers, phone numbers) to https://openapiv2.fenbeitong.com and https://app-gate.fenbeitong.com. This data transmission is expected for booking but is a privacy consideration—ensure you trust the remote service and its data handling.
Persistence & Privilege
always:false and no code to modify other skills or system-wide agent settings. The skill does network I/O on demand but does not request elevated or persistent platform privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install trains - 安装完成后,直接呼叫该 Skill 的名称或使用
/trains触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release: switched from 极速数据火车 API to 分贝通火车预订助手 & API.
- Now supports real-time train search, viewing train/seat details, booking, order checking, and cancellations, all via 分贝通 API.
- Updated skill invocation and response workflow: search & select trains, view seats, book, pay, and manage orders using new functions in scripts/fb_train_api.py.
- Deprecated and removed previous train.py script; new API adapters added.
- Strictly requires calling provided functions—no data fabrication or modification.
元数据
常见问题
train 是什么?
分贝通火车预订助手,实时查询火车票、展示车次列表、预订火车票、查看订单、取消订单。Invoke when user wants to search trains, book train tickets, check train orders, or cancel train bookings. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 96 次。
如何安装 train?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install trains」即可一键安装,无需额外配置。
train 是免费的吗?
是的,train 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
train 支持哪些平台?
train 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 train?
由 fenbeitong-trip(@gaogao605)开发并维护,当前版本 v1.0.0。
推荐 Skills