tobi/track-atlas/surface-tools
Claude Code and agent skill by tobi/track-atlas
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install tobi/track-atlas/surface-toolsSKILL.md
The same SKILL.md was published earlier as tobi/track-atlas/surface-tools.
Track Atlas Surface Tools
Use this skill when measuring or re-measuring a track's surface: edges, midline, crossing lines, corner entry/apex/exit, and the absolute position of all of it. Also when adding an imagery or lidar source, or when a verify.py surface/position warning needs fixing.
Core model
- The OSM centerline only seeds the search. The measured midline becomes the layout's geometry and lap-fraction basis (
geometry.basis: "midline"). - Edges are traced in open orthoimagery (
lib/edges.py). Their absolute position comes from registering the imagery onto USGS 3DEP lidar intensity (lib/register.py,lib/position.py), followed by the datum step from NAD83(2011) to WGS 84 ~ ITRF2014 at epoch 2026.0 (lib/datum.py). - Accuracy is a budget, never a claim:
CE95 = hypot(reference, registration, datum). It is recorded inposition.budget_ce95_m.
Specs: docs/GEOMETRY.md. Sources, licences and served frames: docs/SOURCES.md.
Workflow
Surface-only reapply (no Lovely/OSM rebuild): uv run python scripts/build_geometry.py <slug>.
Auto selection
- Imagery.
lib/imagery.covering(lap)returns every source whosecoveragebox contains the lap, with NAIP last. Each one is measured. - A candidate is refused if either edge is seen on less than 20% of the lap. That means no real coverage (e.g. FDEP outside its counties).
- The rest are scored
absolute CE95 + 4 m x (1 - seen_both), and the lowest wins. - The comparison is written to
selectionin the measurement and inlayout.surface.selection. Read it before questioning the choice. - Lidar.
lib/lidar.pick(lap)takes surveys covering at least 95% of the lap. Those with a stated accuracy come first (sharpest first), then the newest. At most three are used. - The first survey that registers is the reference. The others are checks.
- With two surveys, their per-window difference separates estimator noise from real non-rigid imagery distortion.
- Pin
t.surface(imagery="<id>")ort.surface(lidar=[...])only to investigate one source. Unpin before committing.
Adding an imagery source
Add an entry to lib/imagery.SOURCES with:
servicelicense: it must allow ODbL-derived geometry. Esri, Google, Bing and Mapbox are never allowed.ce95_mplusaccuracy_basis: tested beats specified. UseNoneif not stated.frame: what the service really serves. Usually"WGS84-service".coverage: a[w, s, e, n]box.
The served frame is re-tested against lidar on every run. See position.imagery_frame_basis: e.g. Indiana 2025 turned out to be identity-labelled NAD83. Record new findings in docs/SOURCES.md.
A source with a tested accuracy better than the lidar becomes the reference itself (CT 2023). Otherwise lidar positions it.
Reading the result
The console and raw/surface-<layout>.json report:
quality.seen_fraction: the share of each edge observed rather than bridged.unseen_spanslists where.quality.relative_precision_m: the precision of the edge shape.position.checks: per-survey registration,residual_vs_applied_m(must be < 1 m), and survey-to-survey agreement.position.reference.stated:falsemeans an assumed 1.0 m CE95.verify.pyflags it.
Failure spots
- Paved run-off without a painted line, pit merges, bridges and tree shadow. Look at the edges over the imagery at every corner before committing.
- Registration refused (
no reliable registration): the window spread exceeded 1.5 m. The imagery is not coherent with that survey. - A curvature lobe matched one lobe off in esses (COTA T7-T9). Check
placement.marker_offset_mfor outliers. - Curated direction disagrees with the measured one: fix
directionwith alap.corner(...)call intrack.py, never inraw/track.json.
Rules
- Never use owner telemetry or GPS logs. Never trace commercial basemaps.
- Caches (
raw/imagery/,raw/lidar/) are gitignored. Commitraw/surface-*.json,raw/track.jsonandraw/layers/*.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/surface-tools/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tobi/track-atlas/surface-tools)