← 返回 Skills 市场
792
总下载
4
收藏
5
当前安装
5
版本数
在 OpenClaw 中安装
/install trainclaw
功能描述
3-in-1 China 12306 query — tickets, route stops, transfer plans. Zero login. Filter 高铁/动车/火车 by type, time, duration. Pure Python, text/json/csv output. 火车票/...
安全使用建议
TrainClaw appears coherent and implements exactly what it claims: CLI queries to 12306 with local caching. Before installing or enabling it for autonomous use, consider: 1) it will make network requests to kyfw.12306.cn and search.12306.cn (ensure your environment permits outbound HTTP and this is acceptable); 2) it writes a station cache under the skill's directory (cache/stations.json) — check file-write permissions and sandboxing if you are concerned about persistence; 3) the packaged files show minor version mismatches in README/ __version__ vs registry metadata — not a security issue but worth noting (origin is 'unknown' in registry metadata despite GitHub links in files); 4) verify you have Python 3.8+ and the requests library available; 5) if you require stricter isolation, run the script locally in a sandbox/container first to audit behavior and network traffic. Overall the bundle is internally consistent and not requesting unrelated secrets or contacting unexpected endpoints.
功能分析
Type: OpenClaw Skill
Name: trainclaw
Version: 0.0.7
The TrainClaw skill bundle is a legitimate CLI tool for querying China Railway 12306 ticket information, route stops, and transfer plans. The code (trainclaw.py) and configuration (config.py) interact exclusively with official 12306 API endpoints (kyfw.12306.cn and search.12306.cn) using the requests library. It includes standard features like local caching for station data and request rate-limiting. No evidence of data exfiltration, unauthorized execution, or malicious prompt injection was found.
能力评估
Purpose & Capability
Name/description (12306 ticket/route/transfer queries) align with code and SKILL.md. The code uses 12306 endpoints (kyfw.12306.cn, search.12306.cn) and implements ticket/query/route/transfer subcommands as documented. No unrelated services or credentials are requested.
Instruction Scope
SKILL.md instructs running trainclaw.py with appropriate arguments; the script and config are included and the runtime actions described (HTTP requests to 12306, parsing station JS, caching stations) match the code. The instructions do not ask the agent to read unrelated system files or exfiltrate data to third-party endpoints.
Install Mechanism
This is an instruction-only skill (no install spec). Files are bundled in the skill (trainclaw.py, config.py). Dependencies are minimal (requests). No remote downloads or obscure install URLs are used.
Credentials
The skill declares no required environment variables or credentials. The code does not read external secrets or require unrelated tokens; it only performs HTTP requests to 12306. No excessive env access detected.
Persistence & Privilege
The tool creates a local cache (cache/stations.json) under the package directory to store station data (7-day TTL). This is expected for functionality but does mean the skill writes files to disk (requires write permission). always:false and no special privileges are requested.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install trainclaw - 安装完成后,直接呼叫该 Skill 的名称或使用
/trainclaw触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.7
- Updated to version 0.0.7.
- Shortened and clarified the description to improve readability.
- No code or functionality changes detected.
v0.0.6
- update description in eng and chs
- Added main program file trainclaw.py and supporting files: config.py, requirements.txt, README.md, and README_ENG.md.
- Initial public release with complete CLI functionality: ticket query, route stops, and transfer plans.
- Supports filtering by train type, time range, and sorting; outputs in text, JSON, or CSV formats.
- All core documentation now included in both Chinese and English.
v0.0.5
update description and minor changes:3-in-1 China 12306 query: tickets + route stops + transfer plans, zero login. Filter 高铁/动车/火车 by type, time, duration. Pure Python, text/json/csv output. Use for 火车票/余票/经停站/中转换乘.
v0.0.4
- Added English documentation: README_ENG.md and SKILL_EN.md.
- Updated skill description and documentation to be fully bilingual (Chinese + English).
- Streamlined and clarified parameters, usage examples, and command explanations for international audience.
- No code or functionality changes; documentation improvements only.
v0.0.3
Initial release
元数据
常见问题
TrainClaw 是什么?
3-in-1 China 12306 query — tickets, route stops, transfer plans. Zero login. Filter 高铁/动车/火车 by type, time, duration. Pure Python, text/json/csv output. 火车票/... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 792 次。
如何安装 TrainClaw?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install trainclaw」即可一键安装,无需额外配置。
TrainClaw 是免费的吗?
是的,TrainClaw 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
TrainClaw 支持哪些平台?
TrainClaw 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 TrainClaw?
由 AI4MSE(@ai4mse)开发并维护,当前版本 v0.0.7。
推荐 Skills