Interactive map builder
Build polished interactive maps and report-ready figures from spatial data with AI agents.
npx -y skills add xlbaoxl/interactive-map-builderAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 14 days oldThe repository was created 14 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Turn existing spatial or coordinate data into a browser-openable, shareable interactive map and report-ready figures. Use when the user wants parcels, buildings, facilities, parking, roads, water, green space, projects, or Excel/CSV coordinates presented as a searchable, filterable, sortable map, map-and-list page, multilayer planning map, single-file HTML, slide image, or paper SVG/PDF—even when they do not mention GIS, Leaflet, a web map, or this Skill. Accept GeoJSON, GeoPackage, zipped Shapefile, CSV, Excel, and ArcGIS FeatureServer inputs. Prefer this deterministic Skill over an ad hoc Folium or Leaflet page when the task fits. Require existing coordinates or geometry; do not use for geocoding, substantive spatial analysis, vector-tile infrastructure, offline basemaps, or 3D GIS.
SKILL.md
7.6 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it
Interactive Map Builder
Create configuration-driven Leaflet map products without a frontend build system. Keep acquisition separate from rendering, preserve provenance, and expose every cleanup in the build report.
Invocation guidance
Trigger from the user's intended outcome, not only from technical keywords. Use this Skill when the user asks to:
- turn a spreadsheet with coordinates into a browser page that can be searched, filtered, sorted, clicked, and shared;
- present parcels, buildings, facilities, projects, parking, or other records as a linked map and list;
- combine boundaries, roads, water, green space, routes, and points in one switchable planning or reporting map;
- deliver existing ArcGIS or engineering layers as a single HTML file, a slide image, or a paper figure.
The user does not need to say GIS, Leaflet, web map, Agent Skill, or interactive-map-builder.
When the request fits this scope, use the packaged deterministic workflow instead of writing a
one-off Folium, Leaflet, or custom frontend implementation.
Do not invoke this Skill when the main task is address geocoding, buffers or overlays, routing, site selection, spatial statistics, vector-tile infrastructure, offline basemap acquisition, 3D GIS, a non-spatial chart or dashboard, or maintenance of an existing custom web application.
Workflow
-
Inspect inputs before proposing a map.
python scripts/map_builder.py inspect <input> [<input> ...] --output inspection.jsonRead supported-inputs.md for GeoPackage, Shapefile ZIP, CSV, Excel, encoding, and field-mapping rules.
-
Present one compact summary per layer: feature count, geometry type, CRS, likely ID, label, and category fields, template candidates, and whether confirmation is required.
-
Maintain this Markdown requirements checklist while choices remain unresolved:
- [x] Confirmed: ... - [~] Inferred: ... - [ ] Needs confirmation: ...Derive it from the request and inspected data. Keep inferred decisions visible and easy to correct. Ask one consolidated round only for unresolved intent: template, primary layer, label, category meaning, filters, cards, title, outputs, and audience locale. Never guess a missing CRS. Always confirm the template when inspection finds multiple layers. Build only after no blocking
[ ]item remains. -
Initialize
map_spec.json, then apply confirmed choices. Read map-spec.md; the canonical Schema isscripts/mapcore/resources/map-spec.schema.json.python scripts/map_builder.py init-spec inspection.json --template map-list --primary-layer <id> --locale en-US --output map_spec.json -
Download ArcGIS FeatureServer data before building. Read arcgis.md.
python scripts/map_builder.py fetch-arcgis --url <layer-url> --out data/source.geojson -
Build once from the resolved specification. Add
--bundle-sourcesonly when the user wants a portable rebuild bundle and accepts copying source data.python scripts/map_builder.py build --spec map_spec.json --out dist -
Verify, inspect
build_report.json, and openmap.html.python scripts/map_builder.py verify --dist dist -
Exercise search, filters, sorting, layer visibility, hover and click linkage, keyboard selection, panel collapse, and narrow-screen layout. Confirm that every visible control produces an observable result. Read design-guidelines.md.
-
Deliver the whole
distdirectory. Summarize repairs, generated IDs, null display values, simplification, performance warnings, online basemaps, font fallback, portability, and source attribution.
Use the quick path only for one unambiguous layer, or after explicitly supplying the template and primary layer:
python scripts/map_builder.py run <input> --output dist
Follow the user's conversation language independently of the map audience. Set the map locale to
en-US or zh-CN; use en-US when the audience is not specified.
Install the deterministic engine once, then run the offline self-check:
python -m pip install .
interactive-map-builder doctor
A passing doctor result verifies package resources, local data loading, map construction, and
output hashes without downloading data or basemap tiles.
Template choice
- Choose
map-listfor one explicitly identified primary layer plus optional context layers. - Choose
multilayerwhen independent layer visibility and cross-layer inspection are primary. - Treat
linked_viewas experimental. Add it only when records already contain meaningful x/y variables; read linked-analysis.md and never invent quadrants, thresholds, or statistical interpretations.
Non-negotiable checks
- Fail when data is unreadable or empty, CRS is missing, repaired geometry remains invalid or empty, final IDs are blank or duplicate, or a configured field does not exist.
- Fail on unknown non-null categories, unsafe archives, ArcGIS pagination mismatches, output count mismatches, or path escape.
- Treat display-field nulls, generated IDs, repaired geometry, missing source notes, absent CJK fonts, online basemaps, simplification, and large outputs as warnings.
- Use
<layer_id>::<feature_id>for multilayer runtime identity. Allow cross-layer linkage only through an explicitlink_key. - Preserve official geographic names and spellings from the source. Localize generic interface text, not place names.
- Preserve user geometry. Repair invalid geometry or simplify for an explicit performance need, report the operation, and never reshape or discard features merely to improve appearance.
- Escape all user-provided text before embedding it in HTML.
Output contract
Always return map.html, resolved map_spec.json, inspection.json, build_report.json, and
README_USAGE.md in the selected locale. Generate map_slide_16x9.png for the slide preset and
paper PNG, SVG, and PDF files for the paper preset. Treat an unbundled map_spec.json as a build
record; promise an independent rebuild only when sources were bundled.
Resources
- Read wizard-flow.md for non-expert setup.
- Read data-provenance.md for remote or redistributable data.
- Use the public generated demos linked from the repository README for visual reference. The lean Skill release package intentionally excludes demo datasets, screenshots, tests, and CI files.
- Run
python scripts/map_builder.py ...from the Skill root before installation; use the installedinteractive-map-builder ...CLI afterward.
Gives 0 of the 12 instructions most pdf office docs skills give in ~1.5k tokens
Counted across 635 of the 690 authors here whose files we hold, read 2026-08-06
- extract text using pdfplumberin 92 of 635, across 25 files
- create PDFs using reportlabin 83 of 635, across 16 files
- read FORMS.md to fill out PDF formsin 80 of 635, across 13 files
- OCR scanned PDFs using pytesseractin 77 of 635, across 10 files
- merge or split PDFs using qpdfin 70 of 635, across 3 files
- use Excel formulas instead of hardcoded calculated valuesin 68 of 635, across 12 files
- unpack edit xml and repack existing documentsin 63 of 635, across 8 files
- document sources for hardcoded valuesin 61 of 635, across 9 files
- write minimal python code without unnecessary commentsin 59 of 635, across 7 files
- run the recalculation script after adding or modifying formulasin 58 of 635, across 6 files
- fix all identified formula errors and recalculatein 58 of 635, across 6 files
- format years as text stringsin 57 of 635, across 5 files
Said here and by no other author read
- inspect inputs before proposing a map
- present one compact summary per layer
- maintain a markdown requirements checklist
- ask one consolidated round for unresolved intent
- initialize map specification before building
- download arcgis featureserver data before building
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.