SyncTravel-skills
Multi-origin synchronized trip planner for China's high-speed rail | 多人异地出发,同一目的地汇合 —— 高铁协同出行规划引擎
Install / Use
claude mcp add ZGentleman -- npx -y github:ZGentleman/SyncTravel-skillsIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of SyncTravel-skills
SyncTravel-skills scores 74/100 on our quality scale, 3803rd of 4,708 Development & Engineering skills we index.
Its MCP Server is 11 KB long, well organised into 24 sections with 8 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 7 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 69/100, with 4 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
SyncTravel-skills compared with similar skills
All 4 of these similar skills score higher than SyncTravel-skills; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| SyncTravel-skills (this skill)by ZGentleman | 74 | 3 | 7mo ago | MCP Server |
| taste-skillby Leonxlnx | 100 | 121.0k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 114.5k | today | CLAUDE.md |
| hyperframesby heygen-com | 100 | 89.4k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.4k | today | CLAUDE.md |
Frequently asked questions
- How do I install SyncTravel-skills?
- Run
claude mcp add ZGentleman -- npx -y github:ZGentleman/SyncTravel-skills. The install tabs above show the steps for each supported agent. - Which AI agents does SyncTravel-skills work with?
- It is written for Claude Code, Claude Desktop and Zed, as a MCP Server file. Other agents that read the same format can often use it too.
- Is SyncTravel-skills safe to use?
- It declares no license and scores 69/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is SyncTravel-skills still maintained?
- The repository was last updated about 7 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubSyncTravel Skills 🚄
Multi-origin synchronized trip planner for China's high-speed rail
📋 Table of Contents
- The Problem
- Quick Start
- Features
- Usage Examples
- Architecture
- Agent Skill Integration
- Configuration
- Project Structure
- Performance
- Contributing
🎯 The Problem
You're in Guangzhou, your partner's in Wuhan, and you're both heading to Beijing this weekend. You open 12306 and see dozens of trains — which ones get you there at roughly the same time?
You each search separately, screenshot results, compare times in a chat, and 30 minutes later you still haven't decided. Oh, and what about transfer routes that might be cheaper? You didn't even consider those.
SyncTravel solves this. Give it multiple origin cities, one destination, and a date — it queries live 12306 data, generates strategy-optimized route combinations, and ranks them by score.
🚀 Quick Start
Installation
git clone https://github.com/ZGentleman/SyncTravel-skills.git
cd SyncTravel-skills
pip install -r requirements.txt
Three Ways to Use
1. Python SDK (3 lines of code)
from scripts.utils import build_quick_payload
from scripts.provider_layer import fetch_and_generate
from scripts.plan_trips import plan_trip_data
payload = build_quick_payload(origins="广州,武汉", destination="北京", date="2026-04-20")
candidates = fetch_and_generate(payload, provider_name="auto")
payload["candidate_options"] = candidates
result = plan_trip_data(payload, topk=3)
2. AI Agent (MCP Protocol)
Add to your MCP client config:
{
"mcpServers": {
"sync-travel": {
"command": "python",
"args": ["scripts/mcp_server.py"]
}
}
}
Then just say: "I'm in Guangzhou, my friend's in Wuhan, we're going to Beijing on April 20th"
3. REST API
python scripts/service_api.py
Then call:
curl -X POST http://localhost:8000/plan/quick \
-H "Content-Type: application/json" \
-d '{"origins": "广州,武汉", "destination": "北京", "date": "2026-04-20"}'
✨ Features
| Feature | Description | |---------|-------------| | 🚄 Live 12306 Data | Direct public API, free, no registration, no API key | | 🧠 5 Planning Strategies | Same Train, Partial Same Train, Transfer Merge, Sync Arrival, Best Compromise | | 📊 Composite Scoring | Time, cost, transfers, arrival sync, comfort — weighted and ranked | | 🔄 Auto Constraint Relaxation | If no plan meets your constraints, it suggests which ones to relax | | 🗺️ 157+ Cities | Verified HSR station data with Chinese city name support | | 🤖 MCP-Native | Works as an Agent Skill in any MCP-compatible AI client | | 🛡️ 3-Tier Data Fallback | 12306 direct → 12306-MCP → distance estimation (never returns empty) |
💡 Usage Examples
Demo
<p align="center"> <img src="https://github.com/ZGentleman/blog-images/blob/main/test1.png?raw=true" width="80%" alt="SyncTravel Demo 1"> </p> <p align="center"> <img src="https://github.com/ZGentleman/blog-images/blob/main/test2.png?raw=true" width="80%" alt="SyncTravel Demo 2"> </p> <p align="center"> <img src="https://github.com/ZGentleman/blog-images/blob/main/test3.png?raw=true" width="80%" alt="SyncTravel Demo 3"> </p>Sample Output (Live 12306 Data)
| Rank | Strategy | Arrival Gap | Total Cost | Details | |------|----------|-------------|------------|---------| | 1 | Same Train | 0 min | ¥830 | Both on G302 — board at Guangzhou/Wuhan, arrive Beijing West | | 2 | Partial Same Train | 0 min | ¥786 | Guangzhou direct on G304; Wuhan transfers at Zhengzhou East to G304 | | 3 | Sync Arrival | 17 min | ¥937 | Separate trains, arrive within 17 minutes of each other |
Real-World Scenarios
| Scenario | Origins → Destination | What SyncTravel Does | |----------|----------------------|---------------------| | 💑 Long-distance couple | Beijing + Shanghai → Nanjing | Finds trains that arrive close together | | 👥 Group trip | Chengdu + Wuhan + Hangzhou → Changsha | Plans for 3+ people with different strategies | | 💼 Business meetup | Shenzhen + Xi'an → Zhengzhou | Minimizes waiting time at destination | | 👨👩👧👦 Family reunion | Harbin + Shanghai → Hometown | Balances cost and convenience |
🏗️ Architecture
SyncTravel follows a layered architecture with clear separation of concerns:
┌─────────────────────────────────────────────┐
│ User / AI Agent │
│ (Natural language → structured input) │
└──────────────────┬──────────────────────────┘
│
┌──────────────────▼──────────────────────────┐
│ MCP Server (8 Tools) │
│ quick_plan · parse_request · plan · explain │
└──────────────────┬──────────────────────────┘
│
┌──────────────────▼──────────────────────────┐
│ Data Acquisition Layer │
│ ┌───────────┐ ┌──────────┐ ┌────────────┐ │
│ │12306 Direct│→│12306-MCP │→│Dist Estimate│ │
│ └───────────┘ └──────────┘ └────────────┘ │
└──────────────────┬──────────────────────────┘
│
┌──────────────────▼──────────────────────────┐
│ Strategy Generator │
│ same_train · partial_same · transfer_merge │
│ sync_arrival · best_compromise │
└──────────────────┬──────────────────────────┘
│
┌──────────────────▼──────────────────────────┐
│ Planning Engine │
│ validate → score → rank → diversify │
│ → relax constraints if needed │
└─────────────────────────────────────────────┘
Key Design Decisions
-
Data-fetching ≠ Strategy logic
The provider layer fetches raw candidate trains. The strategy generator applies planning logic independently. This means you can swap data sources without touching strategy code, and vice versa. -
LLM-Skill Boundary
- LLM handles: Natural language understanding, missing-info follow-up, result explanation
- Skill handles: Data acquisition, constraint validation, optimization scoring
- The LLM never fabricates train data; the Skill never makes decisions for the user
-
3-Tier Fallback
Real-time 12306 data is preferred, but if it's unavailable (rate limits, network issues), the system falls back to 12306-MCP, then to distance-based estimation. Every query returns a result. -
Strategy Downgrade
When a combination is tagged "same_train" but the trains don't actually match, the system downgrades the strategy to "partial_same_train" or "sync_arrival" instead of discarding the combination. This prevents valid routes from being lost.
Strategies Explained
| Strategy | What It Means | Example | |----------|--------------|---------| | Same Train | Both riders on the same train | G80 departs Guangzhou, stops at Wuhan — both board, same train to Beijing | | Partial Same Train | Share a train after a transfer | A goes direct; B transfers at Zhengzhou East, then joins A on the same train | | Transfer Merge | Meet at a hub, continue together | Both arrive at Zhengzhou, meet up, take the same train to Beijing | | Sync Arrival | Separate trains, similar arrival time | A takes G80, B takes G1580 — arrive 17 minutes apart | | Best Compromise | Mixed strategy, best overall score | A uses same-train, B uses transfer-merge |
🤖 Agent Skill Integration
SyncTravel is a standard MCP Agent Skill. It exposes 8 tools:
| Tool | Purpose |
|------|---------|
| trip_planner_quick_plan | Main entry — cities + date → ranked plans |
| trip_planner_parse_request | Extract structured params from natural language |
| trip_planner_plan | Full-param planning |
| trip_planner_plan_with_provider | Planning with explicit data source |
| trip_planner_plan_from_file | Planning from JSON input file |
| trip_planner_explain | Human-readable plan explanation |
| trip_planner_validate_stations | Verify station names |
| trip_planner_list_cities | List supported cities |
How AI + Skill Work Together
User: "I'm in Guangzhou, my friend's in Wuhan, going to Beijing on April 20th"
│
▼
AI: Parses intent → calls trip_planner_quick_plan
│
▼
Skill: Queries 12306 → generates strategies → scores & ranks
│
▼
AI: Presents results in natural language, asks follow-up questions
⚙️ Configuration
| Variable | Description | Default |
|----------|-------------|---------|
| TRIP_PLANNER_12306_MCP_URL | External 12306-MCP server URL | (empty) |
| TRIP_PLANNER_CACHE_DIR | Cache directory | .cache/trip_planner |
| TRIP_PLANNER_CACHE_TTL_SECONDS | Cache TTL in seconds | 600 |
| TRIP_PLANNER_LOG_LEVEL | Logging level | WARNING |
📁 Project Structure
SyncTravel/
├── scripts/
│ ├── mcp_server.py # MCP server (8 tools)
│ ├── plan_trips.py # Core planning engine
│ ├── provider_layer.py # Data acquisition + strategy orchestration
│ ├── strategy_generator.py # 5 strategy algorithms
│ ├── railway_api.py # 12306 / Ctrip adapters
│ ├── models.py # Pydantic data models
│ ├── utils.py # Payload builders, NL parser, formatters
│ ├── station_repository.py # City-station mapping
│ ├── route_analyzer.py # Route validation & analysis
│ └── service_api.py # REST API (FastAPI)
├── assets/
│ ├── station_data.json # 157+ city HSR station database
│ └── input.sample.json # Sample input
├── references/
│ ├── architecture.md # Architecture deep-dive
│ ├── api-reference.md # API reference
│ └── strategies.md # Strategy semantics & scoring
├── SKILL.md # Agent Skill entry point
├── README.md # English documentation
├── README.zh-CN.md # Chinese documentation
└── requirements.txt # Dependencies
⚡ Performance
| Route | Travelers | Feasible Plans | Time | |-------|-----------|----------------|------| | Guangzhou + Wuhan → Beijing | 2 | 26 | ~5s (incl. 12306 query) | | Chengdu + Shanghai → Shenzhen | 2 | 24 | ~12s | | Hangzhou + Nanjing → Shanghai | 2 | 62 | ~8s | | Estimation-only mode | any | 50+ | <0.1s |
🤝 Contributing
Pull requests are welcome!
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
For major changes, please open an issue first to discuss what you'd like to change.
📄 License
This project is licensed under the MIT License.
<div align="center">
⭐ If you find this project helpful, please give it a star!
</div>Related Skills
taste-skill
121.0kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
114.5kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
hyperframes
89.4kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ruflo
82.4k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
