travel-routes
Skill2 starsChanged 8 months agoMITView on GitHub
Use when user wants to extract travel routes from Apple Photos geolocation (via osxphotos), build interactive maps, list visited cities, or prepare data for summer vacation blog posts and year-in-review summaries. Triggers "travel route", "trip map", "what cities did I visit", "vacation recap", "/travel-routes <start> <end>", "/travel-routes --year YYYY".
In this repository41 other files it gives its agents.
- skills/react-doctor/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ai-prsSkill
- ai-radarSkill
- blog-postSkill
- brainstorming-namesSkill
- chrome-doctorSkill
- commitSkill
- context-window-statuslineSkill
- create-agents-mdSkill
- design-reviewSkill
- explainSkill
- explore-exploitSkill
- first-time-contributorsSkill
- gpt-imageSkill
- id-photo-sheetSkill
- mac-cleanupSkill
- make-pdfSkill
- og-inspectSkill
- pr-deskSkill
- presentationSkill
- pr-leaderboardSkill
- pr-reviewSkill
- pr-walkthroughSkill
- questionSkill
- quick-pr-reviewSkill
- react-doctorSkill
- recallSkill
- reflectSkill
- release-notesSkill
- scoreSkill
- standupSkill
- start-issueSkill
- studio-debugSkill
- sync-prSkill
- sync-skillsSkill
- teachSkill
- todaySkill
- todoSkill
- unworktreeSkill
- worktreeSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
If span > 180 days and no explicit --year, force year-review mode.
- Distinctive: line 35
If args missing, ask user:
- Distinctive: line 47
If either missing, surface the install/config command and stop.
- Distinctive: line 86
After generating per-year data, launch the unified viewer:
- Very specific: line 102
After running this skill, data.json contains the canonical trip dataset.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Travel Routes
Extracts geolocation from Apple Photos library (via osxphotos), clusters photos by place, and renders an interactive map + markdown summary for a date range or a full year.
Two use cases:
- Per-trip mode — summer vacation blog posts. Self-contained
map.htmlwith route polyline + place markers + base64-inlined photo thumbnails. - Year-review mode — list of cities visited per month. Same map output, no thumbnails.
Prerequisites
- macOS only.
osxphotosinstalled:uv tool install osxphotosorpipx install osxphotos.- Terminal needs Full Disk Access in macOS System Settings → Privacy & Security → Full Disk Access. Add the Terminal app (or iTerm / Ghostty / whatever you use).
- Config file at
~/.claude/skills/travel-routes/config.json(copyconfig.example.json). - Privacy: populate
exclude_zonesin config with home/office coordinates before publishing maps.
Workflow
1. Parse args
/travel-routes <start_date> <end_date> [title] # trip mode (e.g. 2025-07-15 2025-08-05 "Norway")
/travel-routes --year YYYY [title] # year-review modeIf span > 180 days and no explicit --year, force year-review mode.
If args missing, ask user:
- Start date (YYYY-MM-DD)
- End date (YYYY-MM-DD)
- Optional title (used for output folder slug)
2. Check prerequisites
which osxphotos || echo "INSTALL: uv tool install osxphotos"
test -f ~/.claude/skills/travel-routes/config.json || echo "CONFIG MISSING: cp config.example.json config.json"If either missing, surface the install/config command and stop.
3. Run pipeline
cd ~/.claude/skills/travel-routes
uv run travel_routes.py <start> <end> [title]
# or
uv run travel_routes.py --year YYYY [title]The script auto-installs PEP 723 deps (osxphotos, jinja2, Pillow) on first run.
4. Report results
Output folder: ~/claude.nosync/travel-routes/<slug>/
Print:
- Photo count, place count, country count
- Path to
map.html - Path to
summary.md - Path to
data.json
Offer: open <slug>/map.html to view in browser.
Output structure
~/claude.nosync/travel-routes/<slug>/
├── points.json # debug: post-exclude raw points
├── clusters.json # debug: enriched clusters
├── data.json # canonical dataset (consumed by /blog-post)
├── map.html # self-contained MapLibre map, base64 thumbs inline
├── summary.md # trip mode or year mode
└── _thumbs/<uuid>.jpg # debug-only thumbnailsInteractive viewer
After generating per-year data, launch the unified viewer:
uv run ~/.claude/skills/travel-routes/build_viewer.py # one-time / after new years
uv run ~/.claude/skills/travel-routes/serve.py # local HTTP server + opens browserThe viewer (viewer.html) supports:
- Date range pickers (year/month/day for start + end).
- URL deep-linking:
viewer.html?start=YYYY-MM-DD&end=YYYY-MM-DD. Default: latest year with data. - Per-year toggle checkboxes with color legend.
- "Download JSON" — emits filtered dataset as a JSON file.
- Per-year
map.htmlfiles remain for blog-post embedding (with photo thumbnails).
Reuse with /blog-post
After running this skill, data.json contains the canonical trip dataset. To draft a blog post:
/blog-post # then point it at ~/claude.nosync/travel-routes/<slug>/data.jsonTroubleshooting
PhotosDBpermission denied — grant Full Disk Access to Terminal.- Empty result — verify Photos library has photos in the range with location data. Check
points.json. - Blank map in browser — MapLibre + OpenFreeMap require internet. Offline use not yet supported.
- Home leaks on map — populate
exclude_zonesin config and re-run.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

