agentleFS
sejassejas/skills/skills/travel-routes/SKILL.md

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".

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
  1. Very specific:

    If span > 180 days and no explicit --year, force year-review mode.

    line 33
  2. Distinctive:

    If args missing, ask user:

    line 35
  3. Distinctive:

    If either missing, surface the install/config command and stop.

    line 47
  4. Distinctive:

    After generating per-year data, launch the unified viewer:

    line 86
  5. Very specific:

    After running this skill, data.json contains the canonical trip dataset.

    line 102

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. Per-trip mode — summer vacation blog posts. Self-contained map.html with route polyline + place markers + base64-inlined photo thumbnails.
  2. Year-review mode — list of cities visited per month. Same map output, no thumbnails.

Prerequisites

  • macOS only.
  • osxphotos installed: uv tool install osxphotos or pipx 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 (copy config.example.json).
  • Privacy: populate exclude_zones in 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 mode

If 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 thumbnails

Interactive 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 browser

The 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.html files 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.json

Troubleshooting

  • PhotosDB permission 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_zones in config and re-run.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.