Plan trips with multi-dimensional price comparison across flights, trains, and hotels, then export an HTML itinerary.
Data & analysis
trek-agent-control
Try it配套 Trek 微信旅行小程序的自动化 Skill,主要面向 WorkBuddy,也兼容 Codex、Claude、OpenClaw、Hermes 等 Agent。通过认证的远程 MCP 研究国内外目的地、读取或修改行程,并把日程、地点、预订、住宿、费用、清单、待办、附件和协作提案安全同步回小程序。Use when WorkBuddy or another agent needs to plan travel, inspect Trek data, synchronize structured itinerary fields, upload tickets, or run safe diagnostics with a user-provided Trek Agent Key.
What it does
配套 Trek 微信旅行小程序的自动化 Skill,主要面向 WorkBuddy,也兼容 Codex、Claude、OpenClaw、Hermes 等 Agent。通过认证的远程 MCP 研究国内外目的地、读取或修改行程,并把日程、地点、预订、住宿、费用、清单、待办、附件和协作提案安全同步回小程序。Use when WorkBuddy or another agent needs to plan travel, inspect Trek data, synchronize structured itinerary fields, upload tickets, or run safe diagnostics with a user-provided Trek Agent Key.
The skill document
Trek Agent Control
Control the user's real Trek data through MCP. Treat web research and Trek synchronization as separate phases: research first, then show a concrete change preview, then write and read back.
Product workspace
Trek 微信旅行小程序是用户查看、编辑、导航、分享和协作的行程工作区;本 Skill 是它的 Agent 自动化层。用户先在小程序创建行程和独立 Agent Key, Agent 再研究资料并把结构化结果同步回同一行程。不要创建与小程序脱离的第二份 行程数据,也不要把聊天回答误报成已同步。
微信扫码打开 Trek 旅行小程序
当前二维码为测试阶段入口,是否可直接进入以微信侧体验权限为准。
Connect
- Never paste the
trek_key into files, prompts, logs, screenshots, commits, or shell history intended for sharing. - Prefer the agent's native Streamable HTTP MCP support. Configure:
- URL:
https://api.superd.fun/mcp - Header:
Authorization: Bearer
- URL:
- Use the Trek CLI to install/sync this Skill, verify the connection, and diagnose failures:
npm install -g https://github.com/super21-bat/trek-agent-control/archive/refs/heads/main.tar.gz
trek config init --api-key 'trek_...' --url 'https://api.superd.fun/mcp'
trek skill sync --global
trek doctor
The mini program presents this to ordinary users as two steps: copy once, then send the copied bundle to WorkBuddy. WorkBuddy should complete installation, configuration, Skill sync, and doctor without asking the user to run commands manually. Treat the whole bundle as a secret. If native remote MCP is unavailable or unreliable, execute all operations through trek; it calls the same MCP endpoint. Read references/configuration.md for runtime details.
Fast paths for common user requests
Do not load the large-planning workflow for these small writes. Use the exact recipe, then stop:
- “加到待定/候选地点”:resolve the trip with
list_trips, then runtrek add-pendingor call native MCPapply_trip_changewithaction: "add_pending". The server owns duplicate detection and returns a persisted readback receipt. - “设置行程封面”:run
trek set-coveror call native MCPapply_trip_changewithaction: "set_cover". The server owns upload, binding and readback as one semantic operation; do not compose primitive upload/update calls when this tool exists.
For either fast path, if readback fails, report “未同步” and the exact failed stage. Never continue into unrelated planning or claim the mini program will eventually refresh.
Mandatory workflow
- Run
doctoror nativetools/list. Stop on authentication, network, or missing-tool failure. - Read existing state with
list_tripsandget_trip_summary. Never assume a trip ID. Use top-levelplaces[]for every trip place, including unassigned places; usepacking.bags[]for all bags, including empty bags. - Research current facts with primary/official sources first. Separate confirmed facts, recommendations, and unresolved items.
- Build a dated plan and an
expectedAssignmentsByDatechecklist containing every POI/activity that must appear in the mini program. Use exact local dates and times. Do not invent reservations, confirmation numbers, phone numbers, opening hours, prices, or addresses. - Show the user a compact change preview before destructive, bulk, financial, membership, proposal-decision, or rescheduling writes.
- Write in small batches. Reuse existing entities and detect duplicates by normalized name/date before creating.
- Every planned location/activity must be a Place plus Assignment. Use
create_and_assign_placefor a new POI andassign_place_to_dayfor an existing one. Day notes are supporting prose and must never replace assignments. - Model accommodation separately.
create_place_accommodation/create_accommodationcreate a lodging date range but no visible day assignment. If a hotel or check-in is in the daily plan, also assign its place to that day. - Populate only meaningful fields, but use the complete model when relevant: trip dates/description, days, places and coordinates, assignment start/end/duration/transport/notes, reservations, accommodations, costs, packing, todos, collaboration notes, proposals and members.
- Read back with
get_trip_summaryplus the relevantlist_*tool. CompareexpectedAssignmentsByDateto actualdays[].assignmentsby date and normalized place name/ID, not only counts. A planned day must not have zero assignments; explicitly document intentional rest/location-free travel days. - Do not report synchronization complete while any expected assignment is missing or only mentioned in a day note. Repair the gap or disclose it to the user.
- Report what changed, what remains uncertain, and what the user must confirm.
Read references/workflows.md for detailed planning and synchronization recipes. Read references/field-guide.md before a large or unfamiliar write.
CLI
trek doctor
trek update --check
trek tools place
trek call list_trips '{"include_archived":false}'
trek summary 3
trek audit-plan 3 /absolute/path/expected-assignments.json
trek add-pending 3 '西湖游船' --reason '同行者表态后再排日程'
trek upload-file 3 /absolute/path/ticket.pdf --assignment 42 --description '景区电子票'
trek set-cover 3 /absolute/path/cover.jpg --description '行程封面'
trek rename-file 3 19 '金门大桥门票.pdf'
trek batch /absolute/path/actions.json
trek batch /absolute/path/actions.json --apply
trek smoke --allow-write-smoke
doctor reports local configuration, endpoint, credential presence, Skill integrity, authentication, live tool count, and trip readback. Failures include a category, hint, and next command; retain that structured output when diagnosing. update --check compares CLI versions; update upgrades the CLI and resynchronizes the Skill. audit-plan compares an expected JSON date-to-place mapping with live days[].assignments and exits non-zero on missing items. add-pending creates or reuses a candidate and verifies the open proposal by ID. upload-file reads a local attachment without printing its base64 and supports files up to 10 MB. set-cover uploads, binds, and verifies a visible trip cover as one command. rename-file changes only the display name and keeps the extension. batch is dry-run unless --apply is present. Applied actions always expose ok, resourceType, resource, warnings, and the original result; execution stops on the first failed action. It refuses high-risk tool names unless --confirm-high-risk is also present. smoke creates temporary data, exercises the proposal lifecycle, deletes it, and closes the MCP session.
Safety invariants
- Treat the key as a password. Ask the user to revoke it immediately if exposed.
- Never delete or overwrite real data during diagnostics. Use the bundled temporary smoke only.
- Do not mark bookings confirmed without order evidence. Use
pendingor a todo for unresolved bookings. - Do not create fake coordinates. Use
search_placewithmarket: "china"plusregionin Mainland China, ormarket: "global"plus an ISOcountryCodefor overseas trips. Preserve the returned provider IDs and coordinates. - For minors, medical needs, border crossings, flights, and tight transfers, add safety buffers and explicit adult-confirmation tasks.
- Respect 429 responses. Do not disable server limits or fire requests in parallel; the bundled client retries with bounded backoff.
- Static
trek_keys currently grant broad user access. Create one per Agent, revoke unused keys, and prefer scoped OAuth when the target agent supports it. - Close every MCP session, including failed runs.
Failure handling
401: key missing, revoked, malformed, or sent withoutBearer.403: user lacks trip permission or scope; do not retry as another user.404: wrong trip/entity ID or inaccessible resource; refresh state.429: wait and retry sequentially; reduce batch size.isError: true: treat as failed even if HTTP succeeded. Preserve the error text and stop dependent writes.- Unknown fields/tools: call
tools/list; never guess a schema from an older document.
When native MCP and the bundled client disagree, trust a fresh tools/list response and production readback.
Related skills
This skill should be used when the user asks about GetYourGuide tours, activities, or attraction tickets. Triggers on phrases like "find tours on GetYourGuide", "things to do in Paris", "skip-the-line tickets", "GetYourGuide reviews", "book an activity", or any request involving searching tours, activities, day trips, or attraction tickets.
Trent (trent.ai). Use this skill for ANY Trent request — reading, creating, and updating data. Whenever a task involves Trent, use this skill instead of call...
Comfort-first 自驾路书: HTML route maps, A/B/C stops, pregnancy-friendly pacing, weather, meals, calendar
Create and wire a new OpenClaw agent with a fixed workflow. Use when the user asks to create/add a new OpenClaw agent or says “我要创建一个新的 Agent”, automate mult...
Plan trips and build day-by-day travel itineraries, delivered as one polished, standalone HTML page. Use this skill PROACTIVELY for any travel-planning reque...