xieqiaoyi/agent-travel/plan-trip
Claude Code and agent skill by xieqiaoyi/agent-travel
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when the user wants to plan a trip or asks for itinerary planning. Triggers when user says "规划行程", "安排路线", "我要去XX", "从XX到XX", or provides trip details like dates and destinations. This skill orchestrates IntentionAgent, EventCollectionAgent, and ItineraryPlanningAgent; all agents take model=model and are async.
Install
npx vskill@latest install xieqiaoyi/agent-travel/plan-tripSKILL.md
Plan Trip (行程规划)
为用户规划出行行程:意图识别 → 事项收集(出发地、目的地、日期等)→ 行程规划。所有 Agent 均使用 model 对象,且 reply() 均为 async。
When to Use
- 用户说「规划行程」「从XX到XX」「X月X日去北京」等
Agents(按顺序)
- IntentionAgent — 识别意图与改写 query
- EventCollectionAgent — 提取出发地、目的地、日期、目的等
- ItineraryPlanningAgent — 生成行程(每日安排、交通、住宿建议等)
统一模型与异步
- 先创建
OpenAIChatModel(来自config.LLM_CONFIG),再传给各 Agent 的 model 参数(本项目无model_config_name)。 - 三个 Agent 的
reply()都是 async,需 await。
调用示例(简化链式)
EventCollectionAgent 输出字段(示例)
origin,destination,start_date,end_date,duration_days,trip_purpose,missing_info等
ItineraryPlanningAgent 输出字段(示例)
itinerary:title,duration,route,daily_plans,notes,estimated_budget等planning_complete: bool
错误与缺失信息
- 若意图解析非 JSON,可提示用户重新描述。
- 若
event_data含missing_info,可提示用户补全再继续。
行程规划 Prompt 指南
【核心原则】
- 永远提供有价值的行程规划,即使信息不完整
- 不要因为缺少天气、交通等细节信息就拒绝规划
- 基于目的地和日期给出合理的景点推荐和行程安排
- 缺失的信息可以在注意事项中提醒用户补充,但不影响主体规划
【规划策略】
- 如果有目的地和日期:给出该地标志性景点的游览路线
- 如果缺少出发地:假设从目的地市内出发,规划市内一日游
- 如果缺少天气信息:根据当前季节给出建议(如冬季建议室内+室外结合)
- 如果缺少开放信息:推荐常规开放的景点,提醒提前确认
【行程规划要点】
- 根据时间合理安排景点数量(一日游通常2-3个主要景点)
- 考虑景点之间的交通时间和距离
- 安排午餐、晚餐时间和推荐地点
- 给出大致的时间安排(如9:00-12:00, 13:00-17:00等)
- 提供交通方式建议(地铁、打车、步行等)
【任务】 基于已有信息生成实用的行程规划:
- 必须给出具体的景点和活动安排,不能只说"需要补充信息"
- 在daily_plans中给出详细的时间表和景点
- 在notes中补充注意事项和需要确认的信息
- 在missing_info中列出建议用户补充的信息(但不影响规划)
【输出格式】(严格JSON) {{ "itinerary": {{ "title": "北京3日游", "duration": "3天", "route": "北京 -> 北京", "daily_plans": [ {{ "day": 1, "date": "2024-02-27", "city": "北京", "theme": "历史文化之旅", "activities": [ {{ "time": "09:00-12:00", "location": "故宫博物院", "description": "游览故宫,感受皇家建筑群的宏伟...", "transport": "地铁1号线天安门东站" }} ], "meals": {{ "lunch": "...", "dinner": "..." }} }} ], "notes": ["建议提前7天预约故宫门票..."], "estimated_budget": "约2000元" }}, "planning_complete": true }}
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking居丽叶简历项目6:差旅出行助手/.claude/skills/plan-trip/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/xieqiaoyi/agent-travel/plan-trip)