An AI-ready tool for retrieving real-time train schedules and seat availability directly from China's 12306 railway system.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install 12306-train-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-train-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 Train Query skill is a specialized utility designed for AI agents to access real-time railway data in China. By leveraging this tool within the Openclaw Skills framework, developers can enable their agents to provide accurate information on train availability, pricing categories, and scheduling. This bridges the gap between AI conversation and actionable transit data, making it indispensable for travel-oriented automation.
This skill supports a wide range of train types, from high-speed rail to traditional overnight expresses. It simplifies the complexity of interacting with railway APIs, offering a clean CLI interface that returns structured seat data, including Business, First Class, and Second Class availability. Integrating this into your Openclaw Skills setup ensures your AI agent remains a highly capable travel assistant.
To use this skill, ensure your environment has Node.js installed. Follow these steps to get started with this part of your Openclaw Skills collection:
node scripts/train_query.js [Departure] [Arrival] [YYYY-MM-DD]
node scripts/train_query.js Changsha Beijing 2026-03-16
The output provides a comprehensive overview of the train journey status. Key data points include:
| Attribute | Description |
|---|---|
| Train Type | Categorized as G (High-speed), D (Bullet), Z (Direct), T (Express), or K (Fast). |
| Station Info | Names of the departure and arrival stations. |
| Schedule | Departure time, arrival time, and total travel duration. |
| Seat Inventory | Remaining tickets for Business, First Class, Second Class, Soft Sleeper, and Hard Sleeper. |
This structured data is ideal for parsing by AI agents using Openclaw Skills.
Loading
A comprehensive framework for ecommerce stores to build domain authority through high-value outreach, partnership identification, and the creation of linkable content assets.

A sophisticated design system that unifies major art and design movements into a functional framework for creating visual identities and AI prompts.

A structured personal memory system that allows AI agents to persist, consolidate, and recall episodic and semantic memories across multiple sessions.

An intelligent academic workflow that converts raw course syllabus data into structured semester plans and study systems.

A specialized design system skill for extending the CC Ride-Hailing passenger-side HTML/CSS prototypes with strict architectural consistency.

TradeAlpha News V2 provides AI agents with real-time global financial news and high-precision semantic search capabilities for market analysis.








































