
中国境内旅行规划 Agent Skill:逐小时行程、高德静态路线图、12306/携程深链、七套渲染主题、内容门禁,附杭州到青岛 5 天实战示例
中国境内旅行规划 Agent Skill:逐小时行程、高德静态路线图、12306/携程深链、七套渲染主题、内容门禁,附杭州到青岛 5 天实战示例
·
一句旅行需求,变成逐小时、信息核实过、可以直接照着订的行程,交付为双击即开的精美 HTML 页面。
一个面向中国大陆境内旅行深度适配的 Agent Skill:装进 Claude Code、Codex、Gemini CLI、Cursor、WorkBuddy、CodeBuddy、DeepSeek Harness 等编码智能体后,直接用自然语言提需求即可。
它能帮你做的事:
所有营业时间、价格、预约政策都用工具核实而不靠猜,每一项预订都递给你链接;不代订、不付款、不填个人信息。
先装好 DSH 与 pnpm,然后:
dsh plugin --profile web add dsh-trip-planner-cn装完重启 DSH,技能目录里会出现 trip-planner-cn。卸载:
dsh plugin --profile web remove dsh-trip-planner-cn不想走 npm 也可以直接从 GitHub 仓库装:
dsh plugin --profile web add github:ChenYiming-aaa/better-trip-planner下载本仓库,放到宿主的 skills 目录并命名为 trip-planner-cn:
| 宿主 | 位置 |
|---|---|
| Claude Code | ~/.claude/skills/trip-planner-cn |
| WorkBuddy | ~/.workbuddy/skills/trip-planner-cn |
| CodeBuddy | ~/.codebuddy/skills/trip-planner-cn |
运行环境只需 Python 3.9+ 标准库;可选安装 Pillow 用于素材流水线(pip install pillow)。
不需要任何密钥,在 skill 目录执行:
python themes/render_clay2.py examples/china-2026/china.geo.json -o china-clay.html
python themes/qc.py china-clay.html # 退出码 0 即通过未配置
AMAP_KEY时渲染会提示静态地图隐藏的 WARN,属预期降级,退出码仍为 0。
装好后,在智能体里用自然语言提需求即可,旅行类请求会自动触发本 skill:
云南 8 天,10 月出发,中等预算,自然风光和古城,日期前后可挪 2 天使用提示:如果已经订好了机票、车票或酒店(航班号/车次、酒店名与入住日期),尽量一并提供——智能体会把这些预订直接编进行程、围绕它们反推每天的动线,得到的计划比"从零推荐"更贴合你的实际安排。
智能体会按问法自动选择四种工作模式:
| 模式 | 触发示例 | 执行内容 |
|---|---|---|
| 整趟旅行 | 帮我规划云南 8 天 | 意图收集 → 行前简报 → 路线骨架 → 城际交通 → 每日计划与酒店 → 自检交付 |
| 单日规划 | 我们在杭州有一天 | 节假日检查 + 单日计划 + 自检 |
| 空档填充 | 我在 X 附近有 2 小时空 | 15 分钟半径内 2–3 个选项 |
| 临场重排 | 高铁没赶上 / 下暴雨了 | 只重建受影响的那一天 |
计划定稿后,渲染成设计版页面(默认插画版):
python themes/render_theme2.py plan.geo.json --art plan.art.json -o trip-illustrated.html
python themes/qc.py trip-illustrated.html七种主题任选,同一份行程可以每种都渲染一遍再挑:
| 主题 | 风格 |
|---|---|
theme2 | 插画(水彩风,默认) |
clay2 | 黏土 |
noir2 | 夜航(黑白) |
glass2 | 玻璃 |
journal | 手账 |
zine | 杂志 |
splash | 闪屏 |
成品页完全自包含:双击即开、离线可看,每一天可展开高德路线地图,不泄漏任何密钥。
更多主题与行程气质的搭配示例(重庆 · 山城霓虹、上海 · 梧桐区漫步、沪京西 8 天多城),见 examples/。
所有密钥均为可选;不配置任何密钥也能完成规划与渲染,只是相应能力降级。
| 环境变量 | 作用 | 缺失时的行为 |
|---|---|---|
AMAP_KEY | 高德 Web 服务 key | 静态地图隐藏,时距用估算值 |
BAIDU_MAP_AK | 百度地理编码回退 | 跳过回退 |
DASHSCOPE_API_KEY / SILICONFLOW_API_KEY | 境内生图 | 图片走素材库或原生能力 |
TRIP_MAP_PROVIDER | 深链服务商,amap(默认)或 baidu | 用默认高德 |
申请高德 key:在高德开放平台(lbs.amap.com)注册并实名认证后创建应用,key 类型选「Web 服务」,个人开发者免费额度充足。拿到 key 后,在 skill 根目录建一个 .env 文件(参照 .env.example)写入 AMAP_KEY=你的key 即可,脚本会自动读取。
scripts/route_tools.py 统一处理计划文件(python scripts/route_tools.py <子命令> <plan.json> [参数]):
| 子命令 | 功能 |
|---|---|
geocode | 高德/百度解析 stop 坐标并写回 |
check --live | 用高德实时时距替换估算值 |
links --write | 为每一跳生成高德/百度导航深链 |
kml | 导出 Organic Maps 可用的离线 KML |
sun | 每日日出日落(本地天文模型,零网络) |
ics | 从预订清单生成带提醒的日历文件 |
poi | 高德周边 POI 搜索 |
python scripts/flight_scan.py --from 杭州 --to 青岛 --depart 2026-10-26 --nights 4 # 机票/火车票深链网格
python scripts/plan_lint.py plan.geo.json --strict # 渲染前内容门禁境内直连、免密钥优先;页面中的深链是价格与票务的真源。明细与回落链见 references/data-sources.md。
| 数据源 | 用途 |
|---|---|
| 高德 / 百度开放平台 | 坐标解析、实时时距、周边 POI、静态路线图 |
| 12306 / 携程 / 去哪儿 / Trip.com | 机票与火车票深链 |
| timor.tech + 国务院放假安排 | 法定节假日与调休 |
| Open-Meteo / 中央气象台 | 天气预报与气象预警 |
| 本地 NOAA 天文模型 | 日出日落(零网络) |
This repo does not document an install step we could read. Check the README on GitHub.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/trip-planner-skill to learn what the "Trip Planner Skill(境内优化版)" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
This server doesn't publish a machine-readable tool manifest, and it doesn't expose a public endpoint we could ask. Connect the server locally to see what it exposes.
We could not run this server: it ships no npx package for our sandbox and no public endpoint. The four checks that need a live server are left out, and the grade tops out at B until one exists.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/trip-planner-skill)Nothing comparable is listed yet.
No tagged releases on record.
Connect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "trip-planner-skill" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.