urban-safari
FIT ride pipeline for map views and video sync — urban safari content pipeline. Bosch Flow, XOSS G adapters, GeoJSON web contract, ffprobe video keyframes.
от SimHacker★ 63 звезды на GitHub
Установить urban-safari в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Urban Safari — ride map + video sync pipeline
Lifted from a private ebike workflow into a shareable MOOLLM skill. FIT files in, static JSON for a map app out, optional video clips synced to GPS with frame paths drawn over the track.
Part of MOOLLM. See skills/README.md.
Quick start
cd skills/urban-safari
pip install fitparse
# Any FIT files in ./rides/
python scripts/build_web_assets.py --trips-dir ./rides --out ./web/data
# Bosch Flow iPhone (USB)
pip install pymobiledevice3
python scripts/pipeline.py --sync --trips-dir ./rides --out ./web/data \
--home-label "Your Home" --home-lat 52.33 --home-lon 4.78
# Video sync (needs ffprobe)
python scripts/sync_video.py --videos-dir ./videos --data-dir ./web/data
Synthetic demo (no real GPS): examples/demo/web/data/.
Protocol
SYNC — pull rides from device
| Device | Command |
|---|---|
| Bosch Flow (iPhone USB) | sync_flow_trips.py --dest ./rides |
| XOSS G (BLE) | enhanced_xoss_sync → ./rides |
| Manual | copy .fit into ./rides/ |
BUILD — FIT → web JSON
build_web_assets.py writes manifest.json + per-trip GeoJSON, series, meta.
Bosch duplicate rows merged per timestamp (see bosch-fit-quirks.md).
INSPECT — diagnose a FIT
python scripts/inspect_fit.py ride.fit
SYNC_VIDEO — align clips to trips
ffprobereads videocreation_timeand duration- Auto-match picks trip with best wall-clock overlap
- Interpolate GPS from trip series at each video second
- Write
videos/{id}.track.json+videos/{id}.geojson(frame path)
python scripts/sync_video.py --video clip.mp4 --trip-id my-ride --data-dir ./web/data
python scripts/sync_video.py --videos-dir ./videos --data-dir ./web/data # auto-match all
python scripts/sync_video.py --video clip.mp4 --offset-s 2.5 --data-dir ./web/data # clock skew
Calibration trick: film your bike computer clock for one second at ride start; measure
offset between video frame and FIT timestamp; pass --offset-s.
MAP_TRANSCRIPT — words on the map, clustered
Requires synced video track (SYNC_VIDEO). Whisper transcribes the clip; each segment gets
GPS from the video keyframe at its temporal midpoint; nearby segments merge into readable
labels.
python scripts/map_transcript.py --video-id img-0679 --data-dir ./web/data \
--video ~/Movies/IMG_0679.MOV \
--cluster-radius-m 40 --cluster-gap-s 20 --min-words 3
Clustering merges segments when within 40 m and 20 s (defaults). Tune for urban density: tighter radius in old city centers, wider on open dike roads.
Or full pipeline with transcription:
python scripts/pipeline.py --sync --videos-dir ./videos --out ./web/data --map-transcripts
Output: videos/{id}.transcript.json + Point GeoJSON for map labels. See
DATA-CONTRACT.md.
MATCH — map UI integration
Read DATA-CONTRACT.md. Load manifest.json, fetch trip GeoJSON for all
rides, union bounds for overview map. On video play, scrub marker along keyframes[].
Web app sketch (SvelteKit + MapLibre)
- Static copy of
web/data/→static/safari/data/ fetch('/safari/data/manifest.json')- Draw all
trips[].geojsonas layers (color by trip) - For selected trip + video: draw video track LineString;
<video>timeupdate→ marker
Privacy
FIT and video contain exact GPS. Do not commit real tracks to public repos. Use
examples/demo/ for public demos; trekify before sharing.
Device adapters
See adapters/README.md. XOSS integration is a natural collaboration with Abraham Moller — his BLE sync lands FITs; this skill builds the shared map + video layer.
See also
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Shell - 02
Read - 03
Write
Вложенные файлы
- CARD.yml
- DATA-CONTRACT.md
- GLANCE.yml
- README.md
- adapters/README.md
- bosch-fit-quirks.md
- examples/demo/README.md
- examples/demo/web/data/manifest.json
- examples/demo/web/data/trips/demo-loop.geojson
- examples/demo/web/data/trips/demo-loop.meta.json
- examples/demo/web/data/trips/demo-loop.series.json
- scripts/build_web_assets.py
- scripts/fit_io.py
- scripts/inspect_fit.py
- scripts/map_transcript.py
- scripts/pipeline.py
- scripts/sync_flow_trips.py
- scripts/sync_video.py
- scripts/transcript_cluster.py
- scripts/transcript_io.py
- scripts/video_io.py
FAQ
Что делает скилл urban-safari?
FIT ride pipeline for map views and video sync — urban safari content pipeline. Bosch Flow, XOSS G adapters, GeoJSON web contract, ffprobe video keyframes.
Как установить скилл urban-safari?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл urban-safari запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…