← 返回
未分类

SyncTravel (多人异地高铁汇合规划)

Plan coordinated multi-user high-speed rail trips; when users need multi-person trip planning from different origins to one destination
Plan coordinated multi-user high-speed rail trips; when users need multi-person trip planning from different origins to one destination
kilig
未分类 community v3.3.0 1 版本 99082.6 Key: 无需
★ 1
Stars
📥 88
下载
💾 0
安装
1
版本
#latest

概述

Multi-user Trip Planner

Plan and rank coordinated rail itineraries where N travelers depart from different origins and converge on one destination. Uses real-time 12306 data with three-tier fallback (12306-direct -> 12306-mcp -> distance-estimation).

When to Use This Skill

  • User mentions multi-person trip planning ("我在广州,朋友在武汉,我们要去北京")
  • Same-train routing across multiple boarding stations
  • Transfer-merge meetup at intermediate hub
  • Synchronized arrival from different departure cities
  • Group rail trip comparison and ranking
  • Chinese city names (广州、武汉、北京、同步到达、同车、中转)

Core Principles

  1. Real-time data first: Always query 12306 API before estimation. Never fabricate train schedules or prices.
  2. LLM does NOT filter or generate strategies: The skill handles data fetching, strategy generation, constraint validation, and scoring. LLM only parses intent, asks follow-ups, and presents results.
  3. Strategy diversity: Results include different strategy types (same-train, partial-same-train, transfer-merge, synchronized-arrival), not just variations of one strategy.
  4. Graceful degradation: When no feasible plans exist, provide relaxation suggestions. When API fails, fall back to estimation.

Quick Start

  1. Quick plan: Call trip_planner_quick_plan(origins="Guangzhou,Wuhan", destination="Beijing", date="2026-04-20")
  2. Review results: Check top_plans for ranked options with scores, strategies, and trade-offs
  3. Present to user: Explain top 2-3 options with key differences (time, price, arrival spread)
  4. Adjust if needed: If total_feasible == 0, check relaxation_suggestions and re-run with relaxed constraints

Tool Selection

ScenarioToolWhy
---------
Natural language / vague requesttrip_planner_parse_requestExtract structured params from free text
Quick planning, only know cities + datetrip_planner_quick_planMinimal input, auto-resolves from real-time data, Chinese support
Full structured data readytrip_planner_planFull control over constraints and weights
Data in JSON filetrip_planner_plan_from_fileBatch processing
Need auto-fetched candidatestrip_planner_plan_with_providerAuto provider with real-time data
Explain a plan resulttrip_planner_explainHuman-friendly summary
Verify station namestrip_planner_validate_stationsCheck against verified database
List supported citiestrip_planner_list_citiesShow all 157 supported cities

Weight Profiles

ProfileFocusWhen to Use
---------
balancedEven trade-offDefault
speed-firstMinimize travel timeUrgent trips
comfort-firstMinimize transfers + standingElderly, families
budget-firstMinimize priceCost-sensitive
sync-firstMinimize arrival gapMust arrive together

LLM Collaboration Rules

LLM MUST NOT: Fabricate train data, filter candidates based on own knowledge, decide which strategies to apply, override validation results.

LLM SHOULD: Extract structured params from natural language, ask follow-ups for missing info, present results in user-friendly language, help users choose between options, re-invoke skill with adjusted params when needed.

Data source transparency: Output always indicates data source. If distance-estimation was used, inform user that times and prices are approximate.

Navigation

For detailed information:

  • Architecture & Data Flow: references/architecture.md - Three-tier data acquisition, LLM-Skill boundary, complete pipeline
  • API Reference: references/api-reference.md - Full input/output schemas, tool parameters, provider modes
  • Strategy Guide: references/strategies.md - Strategy semantics, scoring formula, constraint rules, examples

Key Reminders

  • ALWAYS use trip_planner_quick_plan as the default entry point for most user requests
  • When total_feasible == 0, check relaxation_suggestions before telling user "no plans found"
  • Data source 12306-direct = real-time; distance-estimation = approximate — always disclose this
  • Default data_source=auto (three-tier fallback) — no need to specify unless user requests a specific provider
  • Chinese city names are supported in trip_planner_quick_plan and trip_planner_parse_request

Execution

MCP Server

pip install mcp
python ${CLAUDE_SKILL_DIR}/scripts/mcp_server.py

CLI

python ${CLAUDE_SKILL_DIR}/scripts/plan_trips.py --input input.json --topk 3

FastAPI

pip install -r ${CLAUDE_SKILL_DIR}/requirements.txt
python ${CLAUDE_SKILL_DIR}/scripts/service_api.py

Environment Variables

VariableDescriptionDefault
---------
TRIP_PLANNER_12306_MCP_URL12306-MCP server endpoint(empty)
TRIP_PLANNER_CACHE_DIRCache directory.cache/trip_planner
TRIP_PLANNER_LOG_LEVELLogging levelWARNING

版本历史

共 1 个版本

  • v3.3.0 - 修复了多个枢纽站查询的兼容性问题 - 优化了方案多样性,避免重复推荐同类路线 - 新增更多城市的高铁站数据覆盖 当前
    2026-04-17 16:27 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 670 📥 324,281
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,360 📥 318,608
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 713 📥 243,950