← Back to Skills Marketplace
12306 Old
by
Feiyang2007
· GitHub ↗
· v1.0.2
· MIT-0
310
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install 12306-old
Description
Provides tools related to 12306 including client access and login script functionality for ticket booking automation.
README (SKILL.md)
12306\r
\r
自动生成的技能文档 - 2026-03-08\r \r
描述\r
\r 12306 技能包 - general 类工具\r \r
功能\r
\r
- \r 12306_client.py- scripts/login.py\r \r
使用方法\r
\r
# 示例用法\r
# 待补充\r
```\r
\r
## 配置\r
\r
查看 `.env.example` 文件了解所需环境变量。\r
\r
## 脚本\r
\r
- \r
12306_client.py- scripts/login.py\r
\r
## 测试\r
\r
```bash\r
# 运行测试\r
# 待补充\r
```\r
\r
## 备注\r
\r
此文档由脚本自动生成,请根据实际情况补充完善。\r
\r
---\r
\r
*最后更新:2026-03-08T20:15:05.855845\r
Usage Guidance
This package contains Python code that automates a browser (Playwright/Chromium) to log into 12306 and save cookies to a local file. Before installing or running:
- Confirm the skill author supplies an install spec (requirements and Playwright/Chromium setup) and a .env.example explaining required env vars.
- Treat RAILWAY_12306_USERNAME and RAILWAY_12306_PASSWORD as sensitive: do not put real credentials in an environment you don't control. The code will also write session cookies to 12306_cookies.json in the working directory—inspect or protect that file.
- Run the code in a sandboxed environment (VM/container) if you must test it, and review/verify the source for any network calls beyond https://www.12306.cn.
- If the author updates the manifest to declare required env vars and provides clear install and runtime docs, the coherence concerns would be resolved; until then, avoid trusting this skill with real credentials.
Capability Analysis
Type: OpenClaw Skill
Name: 12306-old
Version: 1.0.2
The skill bundle contains a standard automation client for the 12306 railway website using the Playwright library. The code in 12306_client.py and scripts/login.py is designed to automate login and ticket searching, handling credentials via environment variables and storing session cookies locally in 12306_cookies.json. No evidence of data exfiltration, malicious execution, or prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description match the code: the package implements a 12306 browser-automation client (login, ticket search). However registry metadata and SKILL.md claim no required env vars or binaries while the code reads RAILWAY_12306_USERNAME/RAILWAY_12306_PASSWORD and depends on Playwright/Chromium — an inconsistency between stated requirements and actual capabilities.
Instruction Scope
SKILL.md is auto-generated and sparse (no usage examples, references a .env.example that isn't present). The runtime code reads/writes a local cookie file (12306_cookies.json) and will launch a Chromium browser via Playwright to visit https://www.12306.cn. The instructions do not document these behaviors or where persistent data is stored.
Install Mechanism
There is no install spec, but the code requires the Python Playwright package and a Chromium runtime; the skill will fail unless these are present. Missing install instructions is an operational and supply-chain omission (not evidence of maliciousness, but risky and incoherent).
Credentials
The code expects RAILWAY_12306_USERNAME and RAILWAY_12306_PASSWORD environment variables (used for login) but the manifest lists no required env vars. Requesting those credentials would be proportionate for a login client, but the omission from metadata and lack of guidance on secure handling/persistence (cookie file saved locally) are red flags.
Persistence & Privilege
The skill does not set always:true, does not modify other skills, and only writes a local cookie file (12306_cookies.json) in its working directory. It will autonomously launch a browser when invoked, which is expected for browser automation.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install 12306-old - After installation, invoke the skill by name or use
/12306-old - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- Initial release of the 12306-old skill.
- Added core client script (12306_client.py) and login script.
- Included README, SKILL.md, and environment metadata files.
- Provided initial test script for basic validation.
v1.0.1
- No user-visible changes; updated metadata only.
v1.0.0
Initial release of the 12306 skill package.
- Provides general tools for 12306, including 12306_client.py and scripts/login.py.
- Automatically generated documentation added.
- Usage instructions, configuration, and test details to be supplemented.
Metadata
Frequently Asked Questions
What is 12306 Old?
Provides tools related to 12306 including client access and login script functionality for ticket booking automation. It is an AI Agent Skill for Claude Code / OpenClaw, with 310 downloads so far.
How do I install 12306 Old?
Run "/install 12306-old" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 12306 Old free?
Yes, 12306 Old is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 12306 Old support?
12306 Old is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 12306 Old?
It is built and maintained by Feiyang2007 (@feiyang2007); the current version is v1.0.2.
More Skills