← Back to Skills Marketplace
12306 Conflict
by
Feiyang2007
· GitHub ↗
· v1.0.0
· MIT-0
237
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install 12306-conflict
Description
Provides tools for interacting with the 12306 system, including login scripts and client utilities requiring specific environment variables.
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 is an automation client for the 12306 train site and the code is consistent with that purpose, but the package metadata and docs are incomplete. Before installing or running: (1) do not supply your primary account credentials until you trust the source — the code reads RAILWAY_12306_USERNAME and RAILWAY_12306_PASSWORD even though they are not declared; (2) expect to need Playwright and its Chromium binaries (install steps are not provided); (3) the client saves cookies to 12306_cookies.json in the working directory — treat that file as sensitive; (4) run the code in an isolated environment or with a throwaway account to verify behavior; (5) ask the publisher to add a proper install spec, a .env.example, and explicit required env var declarations before using with real credentials.
Capability Analysis
Type: OpenClaw Skill
Name: 12306-conflict
Version: 1.0.0
The skill bundle provides a standard browser automation client for the 12306 railway website using the Playwright library. The code in 12306_client.py handles user credentials via environment variables and manages session persistence through a local JSON cookie file (12306_cookies.json). All network activity is directed to the official 12306.cn domain, and there is no evidence of data exfiltration, obfuscation, or malicious instructions in the SKILL.md file.
Capability Assessment
Purpose & Capability
The code implements a 12306 login/search client and legitimately needs credentials and a browser automation runtime. However, the registry metadata claims no required env vars or binaries while the code reads RAILWAY_12306_USERNAME and RAILWAY_12306_PASSWORD and depends on Playwright/Chromium. This mismatch between declared requirements and actual capabilities is incoherent.
Instruction Scope
SKILL.md is autogenerated and minimal; it references a .env.example (not included) and provides no concrete runtime instructions. The actual runtime behavior (in code) performs browser automation against https://www.12306.cn, stores cookies to a local file, and uses env vars for credentials. The instructions do not request any extra unrelated system data or hidden endpoints.
Install Mechanism
There is no install spec yet the code requires external runtime (playwright and its browser binaries). Playwright is a heavy dependency that requires installing browser binaries; the absence of an install mechanism or declared dependencies is a practical and security concern (user may run code without knowing these requirements).
Credentials
The code expects sensitive credentials via environment variables (RAILWAY_12306_USERNAME and RAILWAY_12306_PASSWORD) but the package metadata lists no required env vars or primary credential. This omission prevents an informed consent decision about supplying secrets. The client also writes cookies to a local file (12306_cookies.json), which is persistent storage of authentication data.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges. It does persist cookies to a local file and launches a browser process, which are within the scope of a web automation client but are notable persistence behaviors the user should be aware of.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install 12306-conflict - After installation, invoke the skill by name or use
/12306-conflict - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of the 12306 skill.
- Provides general utility functions for 12306 ticketing workflows.
- Lists 12306_client.py and scripts/login.py as core components.
- Includes instructions for configuration via environment variables.
- Documentation is auto-generated and currently minimal—future improvements suggested.
Metadata
Frequently Asked Questions
What is 12306 Conflict?
Provides tools for interacting with the 12306 system, including login scripts and client utilities requiring specific environment variables. It is an AI Agent Skill for Claude Code / OpenClaw, with 237 downloads so far.
How do I install 12306 Conflict?
Run "/install 12306-conflict" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 12306 Conflict free?
Yes, 12306 Conflict is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 12306 Conflict support?
12306 Conflict is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 12306 Conflict?
It is built and maintained by Feiyang2007 (@feiyang2007); the current version is v1.0.0.
More Skills