A high-performance CLI utility for querying real-time China Railway 12306 train schedules and ticket availability.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install 12306-query
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install 12306-query using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The 12306-query skill is a specialized technical interface designed to bridge the gap between AI agents and the official China Railway database. As a key part of the Openclaw Skills ecosystem, it allows developers and automated agents to fetch live data on high-speed rail (Gaotie), bullet trains, and traditional rail services across mainland China without requiring complex API keys.
This tool is particularly valuable for building travel assistants or automated booking monitors. By leveraging Openclaw Skills, users can transform raw station data and seat availability into structured Markdown or HTML reports, enabling seamless integration into chat interfaces or data processing pipelines.
To integrate this into your Openclaw Skills environment, ensure you have Node.js installed and run the following commands:
# Navigate to the skill directory
cd {baseDir}
# Query tickets from Beijing to Shanghai in Markdown format
node scripts/query.mjs 北京 上海 -f md
# Perform a station lookup
node scripts/stations.mjs 上海
The skill manages data through a mix of temporary caches and structured outputs:
| Data Type | Location | Retention |
|---|---|---|
| Station Cache | {baseDir}/data/stations.json |
7 Days |
| HTML Reports | {baseDir}/data/<from>-<to>-<date>.html |
User Defined |
| Raw Data | JSON Output (stdout) | Per Request |
Seat Type Mapping:
swz: Business/Premiumzy: First Classze: Second Classrw/dw: Soft/Bullet Sleeper--available flag to filter out trains that are already sold out or not yet bookable.Loading
ArmorClaw provides a secure, AES-256 encrypted local vault to manage API keys and credentials for AI agents without relying on vulnerable plain-text environment files.

An automated compliance engine that generates tailored GDPR and PCI-DSS validation frameworks based on your specific industry and company type.

CraftClose provides AI-driven Minecraft server monitoring with automated crash recovery and smart alerts.

An intelligent strategist for designing, writing, and auditing Amazon A+ and Premium A+ content to maximize product detail page conversions.

Melo provides a robust interface for AI agents to manage audio transcription and project-related tasks through Membrane integration.

A specialized skill for AI agents to dispatch messages, media, and interactive components across multiple chat platforms using a unified CLI interface.








































