← Back to Skills Marketplace
train
by
fenbeitong-trip
· GitHub ↗
· v1.0.0
· MIT-0
96
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install trains
Description
分贝通火车预订助手,实时查询火车票、展示车次列表、预订火车票、查看订单、取消订单。Invoke when user wants to search trains, book train tickets, check train orders, or cancel train bookings.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install trains - After installation, invoke the skill by name or use
/trains - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is train?
分贝通火车预订助手,实时查询火车票、展示车次列表、预订火车票、查看订单、取消订单。Invoke when user wants to search trains, book train tickets, check train orders, or cancel train bookings. It is an AI Agent Skill for Claude Code / OpenClaw, with 96 downloads so far.
How do I install train?
Run "/install trains" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is train free?
Yes, train is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does train support?
train is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created train?
It is built and maintained by fenbeitong-trip (@gaogao605); the current version is v1.0.0.
More Skills