← 返回 Skills 市场
12306 Conflict
作者
Feiyang2007
· GitHub ↗
· v1.0.0
· MIT-0
237
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 12306-conflict
功能描述
Provides tools for interacting with the 12306 system, including login scripts and client utilities requiring specific environment variables.
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install 12306-conflict - 安装完成后,直接呼叫该 Skill 的名称或使用
/12306-conflict触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
12306 Conflict 是什么?
Provides tools for interacting with the 12306 system, including login scripts and client utilities requiring specific environment variables. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 237 次。
如何安装 12306 Conflict?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install 12306-conflict」即可一键安装,无需额外配置。
12306 Conflict 是免费的吗?
是的,12306 Conflict 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
12306 Conflict 支持哪些平台?
12306 Conflict 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 12306 Conflict?
由 Feiyang2007(@feiyang2007)开发并维护,当前版本 v1.0.0。
推荐 Skills