
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
This skill takes a travel request and produces a verified itinerary with route options, hour-by-hour days, booking links, and map exports. It uses `SKILL.md` plus Python scripts and themed renderers to keep the plan, maps, and page output in sync.
Builders who want their agent to plan trips with verified hours, prices, and booking links.
You can turn a rough travel idea into a bookable itinerary and a polished page without redoing the planning by hand.
Checks opening hours, holidays, flight prices, and route choices with tools instead of guessing.
Builds daily schedules with dwell times, buffers, and map links for each stop.
Renders the plan into one of eight HTML themes, including a default illustrated layout.
Generates `plan.geo.json` and KML so the trip can be opened in map tools like Organic Maps or Google My Maps.
Produces deadline-sorted tasks and `.ics` reminders for ticket releases and re-checks.
git clone https://github.com/skywain/trip-planner-skill.git ~/.claude/skills/trip-planner pip3 install --user fast-flights Pillow # optional: flight price scanner · asset pipeline
python3 scripts/render_plan.py examples/kyoto-sample.plan.geo.json -o kyoto.html # the plain page (Chinese-language sample) python3 themes/render_clay2.py examples/china-2026/china.geo.json -o china-clay.html \ && python3 themes/qc.py china-clay.html # an English themed page + its QC (exit 0)
/trip-planner Japan, 12-15 days in October from London, mid budget, history and food, dates ±3 days
python3 themes/gen.py <trip>/jobs.json --outdir <trip> --manifest <trip>/manifest.<trip>.json # gpt-image-2; --dry-run first python3 themes/genvideo.py jobs.json --outdir <trip>/portal --manifest <trip>/manifest.<trip>.json # veo-3.1-lite by default; --models for prices
python3 themes/stock_art.py plan.geo.json --theme illustrated -o plan.art.json
python3 themes/render_theme2.py plan.geo.json --art plan.art.json \
--assets themes/assets/stock -o trip-illustrated.html # --assets is required hereOne sentence in, a verified, hour-by-hour, bookable trip plan out — delivered as a
designed page in one of eight visual themes. An open-format Agent Skill (SKILL.md)
that runs inside whichever coding agent you already use — Claude Code, Codex, Gemini CLI,
Cursor, GitHub Copilot, OpenCode, Qwen Code, Deep Code, Goose, Kiro, Roo Code, or any
other harness that loads Agent Skills: it checks opening hours, prices and holidays with
tools instead of guessing, hands you a link for every booking, and never books or pays
for you.
Eight themes across four real trips (two themes per trip). Every trip below was planned
end-to-end by a fresh agent session using this skill, then rendered from its plan.geo.json
art.json; the three frames per row are the cover, one day module (what the share buttons
export on the seven still themes) and the end of the scroll — the checklist and closing
spread. Four of the eight pages ship verbatim under examples/; three of the
other four render from the same example folders with one command (each example's art.json
carries both of its trip's themes); portal additionally needs footage (see below).Every page below is live: open the demo site or click a theme's Live page link.
illustrated — Japan · London → Tokyo → Hakone → Kyoto → Osaka (open-jaw) → London, 21–28 Nov 2026 · a painted picture-book on paper: the cover is the menu, each day a tinted riso plate with a ghost numeral, the whole scroll exports as one long image · examples/japan-2026 · Live page ↗
| cover | a day | the end |
|---|---|---|
![]() | ![]() | ![]() |
clay — China · New York → Beijing → Xi'an → Beijing → New York, 11–18 Nov 2026 · one
continuous claymation landscape with a road threading the milestone stones ·
render it: python3 themes/render_clay2.py examples/china-2026/china.geo.json -o china-clay.html ·
Live page ↗
(Chinese-language clay example: examples/turkey-2026 ·
live ↗)
| cover | a day | the end |
|---|---|---|
![]() | ![]() | ![]() |
noir — Mexico · Berlin → Mexico City → Oaxaca → Berlin, 28 Oct – 6 Nov 2026 (Día de
Muertos) · one night-negative tracking shot, monospace body, days dissolving into each
other · render it: python3 themes/render_noir2.py examples/mexico-2026/mexico.geo.json -o mexico-noir.html ·
Live page ↗
(Chinese-language noir example: examples/nordic-2026 ·
live ↗)
| cover | a day | the end |
|---|---|---|
![]() | ![]() | ![]() |
glass — Morocco · Toronto → Marrakech → Aït Benhaddou → Merzouga → Fes → Chefchaouen → Casablanca → Toronto, 6–15 Nov 2026 · liquid-glass panes floating over a fixed world of cross-fading photographs, one pane per world · examples/morocco-2026 · Live page ↗
| cover | a day | the end |
|---|---|---|
![]() | ![]() | ![]() |
journal — Mexico · Berlin → Mexico City → Oaxaca → Berlin, 28 Oct – 6 Nov 2026 · a vintage travel journal on a dark desk: tape, stamps, postmarks, polaroids, and a Day of the Dead week planned around the crowd · examples/mexico-2026 · Live page ↗
| cover | a day | the end |
|---|---|---|
![]() | ![]() | ![]() |
zine — Japan · London → Tokyo → Hakone → Kyoto → Osaka (open-jaw) → London,
21–28 Nov 2026 · torn riso-poster collage with giant vertical two-colour glyphs, built like a
photocopied fan zine · render it: python3 themes/render_zine.py examples/japan-2026/japan.geo.json -o japan-zine.html ·
Live page ↗
(Chinese-language zine example: examples/vietnam-2026 ·
live ↗)
| cover | a day | the end |
|---|---|---|
![]() | ![]() | ![]() |
splash — China · New York → Beijing → Xi'an → Beijing → New York, 11–18 Nov 2026 · a game splash screen stretched into a scroll: floating day-islands under a chained sky, routed Xi'an-first so the Wall and the Forbidden City both land on weekdays · examples/china-2026 · Live page ↗
| cover | a day | the end |
|---|---|---|
![]() | ![]() | ![]() |
portal — Morocco · Toronto → Marrakech → Aït Benhaddou → Merzouga → Fes → Chefchaouen →
Casablanca → Toronto, 6–15 Nov 2026 · scrolling is flying: five 3D worlds in one unbroken
take, dive → frame-chained link → dive, with the day's plan laid over the footage; let go and
it holds, scroll back and it flies in reverse. The only theme that needs video (nine clips
here, rendered on a local GPU; an agent with native video generation or themes/genvideo.py
produces the same chain). Footage is not shipped with the example, so the page in the repo
is screenshots only; the demo site serves the nine clips from a release asset, which makes
the live link below the real thing — the motion capture is recorded from it ·
examples/morocco-2026 ·
Live page ↗
(16 MB of video)
| cover | a day | the end |
|---|---|---|
![]() | ![]() | ![]() |
Every render command, cost and file for the seven trips is listed in
examples/README.md. The plain, un-themed page — the printable
extra, never the default deliverable — looks like
examples/kyoto-sample.html (a Chinese-language sample; the
same renderer produces the English UI from a "lang": "en" plan);
themes/render_picker.py builds a style-chooser page linking every rendered edition of a
trip as <prefix>-<theme>.html.
Say "Japan, 12–15 days in October, mid budget, history and food." The skill returns:
trip-<theme>.html. The seven still themes carry
offline share-image buttons (Save this day / Save appendix / One long image;
whole-page export on five of the eight — noir and glass export day modules only), and
portal (video) has no share buttons — screenshot it. The plain printable page is an
extra you can ask for.plan.geo.json, the single source of truth — the themed page, the map links and an
offline KML for Organic Maps / Google My Maps all come out of that one file..ics calendar file: dual alarms per gate, the full action list in the event
body, and floating local times so an on-trip reminder rings wherever you are.What it will not do: book, pay, hold, or enter personal data. You click the links.
1. Install — agents that support Agent Skills discover them by directory, so clone straight into your skills folder (Claude Code's path is shown; other agents: see Compatibility):
git clone https://github.com/skywain/trip-planner-skill.git ~/.claude/skills/trip-planner
pip3 install --user fast-flights Pillow # optional: flight price scanner · asset pipeline
Everything else is Python 3.9+ standard library. Without fast-flights the scanner degrades
to a Google Flights link; without Pillow you can still render every theme from the shipped
picture library. If pip3 install --user is refused with externally-managed-environment
(PEP 668: Homebrew / Debian Python 3.11+), install into a python3 -m venv instead, or add
--break-system-packages.
Try it in 30 s — no key, no agent needed, from the repo root:
python3 scripts/render_plan.py examples/kyoto-sample.plan.geo.json -o kyoto.html # the plain page (Chinese-language sample)
python3 themes/render_clay2.py examples/china-2026/china.geo.json -o china-clay.html \
&& python3 themes/qc.py china-clay.html # an English themed page + its QC (exit 0)
(For a Chinese-language themed page swap in examples/turkey-2026/turkey.geo.json; the
other six trips and their commands are in examples/README.md.)
2. Plan a trip — in your agent, one sentence. The skill triggers on its own for trip / flight / itinerary requests, or explicitly:
/trip-planner Japan, 12-15 days in October from London, mid budget, history and food, dates ±3 days
The plan's UI language follows the language you ask in ("lang": "zh"|"en" in the plan;
--lang overrides on every renderer). Four modes are picked from what you ask:
| Mode | Trigger | What runs |
|---|---|---|
| Full trip | "plan me 12 days in Japan" | All phases: intake → country brief → route skeleton → flights → day plans → hotels → assemble + self-check |
| Single day | "we have one day in Rome" | Holiday/festival check + that day + self-check; flights and hotels skipped |
| Gap filler | "I'm near X with 2 free hours" | 2–3 options within a 15-min radius, each with walk time, map link, turn-back deadline |
| Live replan | "missed the train / it's pouring" | Rebuilds only the affected day from its degradation tags |
3. The designed page — this is the deliverable the skill hands over, in the theme you
picked (default illustrated = render_theme2.py), never a plain text page. Three
commands, from the repo root (full manual: themes/README.md,
references/themes.md):
# optional: a <plan>.art.json beside the plan is picked up automatically — cover title, per-day titles, which pictures go where
python3 themes/render_<theme>.py plan.geo.json -o trip-<theme>.html # theme2 clay2 noir2 glass2 journal zine splash portal
python3 themes/qc.py trip-<theme>.html # exit 0 = clean; exit code = FAIL count
themes/xprobe.sh trip-<theme>.html module '#d5' out.png # click the real share button headlessly, look at out.png (macOS + Chrome only)
The art contract is themes/ART-SCHEMA.md; every field is optional
and an empty art file must still render. Pictures resolve --assets → art dir → plan dir →
themes/assets/.
4. Pictures and video: three rungs, best first. The skill walks this ladder itself, silently, before it ever mentions a page style:
Native — the agent running the skill can already generate images or video, so it
uses that: art drawn for this trip, no key to set up (same specs and prompts, same
split_sheet.py → cutout.py → towebp.py → trip-manifest steps; the contract is the
generator-choice section of themes/ART-SCHEMA.md).
One key — no native generation: create themes/.auth_header containing one line —
Authorization: Bearer <your OpenRouter key> — (gitignored, read only from that
directory; both scripts pass it to curl as a header file, so it must be the full header
line, not the bare key). --dry-run prints the credential path it would read:
python3 themes/gen.py <trip>/jobs.json --outdir <trip> --manifest <trip>/manifest.<trip>.json # gpt-image-2; --dry-run first
python3 themes/genvideo.py jobs.json --outdir <trip>/portal --manifest <trip>/manifest.<trip>.json # veo-3.1-lite by default; --models for prices
Stock kit — neither of the above: the pictures come from the kit bundled in this repo, and the page is still a themed page (next block).
On every rung the shipped library comes first —
themes/assets/IMAGE-LIBRARY.md indexes 355 stems
(515 webp, 30 MB) by subject, and its rules draw the line: generic props are reusable,
while anything destination-specific (covers, hero plates, title stickers, terrain bands,
splash islands, journal photos) must belong to the trip it is on. Real costs from the
shipped examples: $0.25–0.46 of image generation per trip (7–11 gpt-image-2 calls).
The portal theme is the one that needs footage: either genvideo.py in the cloud
(google/veo-3.1-lite, 720p, ≈ $0.03/s → roughly $3 for a ten-world chain; smoke-tested
on one 4 s clip, $0.12) or a local GPU (the author's regression footage comes from ComfyUI
on an RTX 5090 via themes/build_portal_jobs.py). The US chain that drove the design
(19 clips, ~35 MB) is the style reference and a release asset,
not part of the tree — one curl + unzip restores it into themes/assets/portal/
(how). The shipped portal case is Morocco, live on the
demo site; another trip needs its own chain.
No image generator? Still a designed page. Two commands, and the plan comes out in a real theme instead of degrading to plain text:
python3 themes/stock_art.py plan.geo.json --theme illustrated -o plan.art.json
python3 themes/render_theme2.py plan.geo.json --art plan.art.json \
--assets themes/assets/stock -o trip-illustrated.html # --assets is required here
The kit (themes/assets/stock/, 80 stems / 161 webp / 5.2 MB, all in the illustrated
gouache style) holds 14 region cover paintings, 30 generic scene cut-outs and 36
world-landmark cut-outs; stock_art.py picks the cover from the destination country and
one hero per day by keyword score, leaves the words (cover title, day titles, captions) to
the agent, and writes the notice — "Pictures: built-in stock kit — no image generator or
key was available; provide one and the art is generated for this trip." — into the page's
fine print, where it must stay, and into the chat summary. Coverage: complete for
illustrated, works for clay; the other six themes need generated pictures.
Details: themes/assets/stock/README.md.
Pipeline. SKILL.md is the playbook the agent follows: Phase 0 intake (one message,
only for what is missing) → Phase 1 country brief (visa from official sources, holiday API +
a budgeted festival search, weather, money, safety) → Phase 2 route skeletons → checkpoint
→ Phase 3 flights and intercity legs (scripts/flight_scan.py) → Phase 4 city day-plans
(parallel city subagents with an explicit search budget) → Phase 5 hotels → Phase 6
assemble, adversarial self-check, deliver. Three moments with the user at most, usually
two: an intake message only when a core fact is missing and cannot be inferred, the
route-skeleton pick, and delivery.
Intake: no questions when the request already carries the facts. "Plan my Germany
trip, 1–7 Oct this year" has the destination and the dates, so nothing is asked — the
origin and the rest are inferred and listed as assumptions at the first checkpoint. Only a
genuinely missing core fact (destination, when / how long, an origin that cannot be
inferred) triggers a single intake message, and the optional preferences ride along in that
same message, each one marked skip = default: travel style (public transport ·
self-drive · group tour), lodging habit and band, scenery taste (nature / city / beach /
forest / lake / mountain), pace, party size, budget, ranked interests, date flexibility.
Whatever you answer or the skill assumes is written into the plan's prefs block
(assets/plan.example.json) so a later replan does not re-ask.
Say "just plan it, don't ask" and both the intake and the route checkpoint are skipped,
with every assumption stated at the top of the result.
One file, one truth. plan.geo.json is written once and read by everything:
scripts/route_tools.py (geocode · check · links --write · kml · sun) produces
the map links and the KML from its stops; scripts/render_plan.py produces the plain
HTML; every themed renderer reads the same file plus its art.json. That is what stops
the written plan, the map links and the pretty version from drifting apart. Schema
template: assets/plan.example.json — copy it, fill the
PLACEHOLDERs, then render (render_plan.py refuses an unfilled copy unless --force).
Hard rules (distilled from SKILL.md and references/):
(est.) ranges unless verified.Data sources — all keyless and free; prices are comparison-grade and the deep links
in the plan are the source of truth (references/data-sources.md):
| Source | Used for | Notes |
|---|---|---|
Google Flights (via fast-flights) | flight price grids | outbound legs listed; return times back-computed |
| Nominatim / OpenStreetMap | venue coordinates | 1 req/s + User-Agent enforced in-script; weak on non-Latin names |
| Nager.Date | public holidays | no religious / lunar holidays — a budgeted festival search covers the gap |
| Open-Meteo | weather and climate for the dates | first call can take ~10 s |
| sunrise-sunset.org | golden-hour scheduling | requires visible attribution in the plan footer |
| frankfurter.dev → open.er-api.com | FX | ECB daily, ~30 majors; minor / closed currencies fall back to open.er-api.com |
| Google Maps / Booking / operator sites | hotel bands, transit detail, tickets | browser, deep links only |
Hotels have no usable keyless API, so the skill recommends neighbourhoods and produces dated deep links rather than quoting a nightly price it cannot verify.
SKILL.md playbook plus references/, scripts/ and themes/.
Any harness that loads Agent Skills can load this one; nothing here is tied to one
vendor's agent.SKILL.md skills, and the scripts here are stdlib-only Python 3.9+. The only difference
between them, from this repo's point of view, is where they expect skills to live — so
the git clone target in Quick start is the one line you adapt.Sign in to join the discussion.
No comments yet. Be the first to say what this is good for.

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)
A skill to stop your coding agent from burying the answer. ADHD-friendly output.
AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
De-AI writing skill for any Agent Skills-compatible agent (77+ via the Skills CLI), with native plugins for Claude Code, Codex, Grok Build, and Antigravity. Narrative-architecture repair for fiction, venue-matched rules for professional prose. Based on StoryScope (arXiv:2604.03136).
Academic Research Skills for Claude Code: research → write → review → revise → finalize