mcpbeat Sign in

Mapstage Agent Skill

MapStage live tuner for map/globe projection, satellite, hypsometric relief, 3D terrain, region isolate, CSS color grade, and JSON presets.

3950k tokens
context cost
the whole folder, loaded on every use
35
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
320
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/hopechen067/MapStage --skill mapstage

What comes with it

15 797 330 bytes besides the instruction
agents/openai.yaml
references/city-tier-schema.md
references/tested-config.md
references/tuner-workflow.md
references/water-overlay.md
references/参数列表说明.md
schemas/map-preset.schema.json
schemas/sample-sites.schema.json
tuner/.nojekyll
tuner/README.md
tuner/assets/han-city-3d.js
tuner/assets/isolate-workbench.js
tuner/assets/landcover-globe.geojson
tuner/assets/landcover-lowzoom.geojson
tuner/assets/map-fx.js
tuner/assets/polar-ice.geojson
tuner/assets/region-isolate-data.js
tuner/assets/region-isolate.js
tuner/assets/sample-sites.json
tuner/assets/site-nav.js
tuner/assets/terrain-island.js
tuner/assets/vector-paint.js
tuner/assets/water-pack.json
tuner/index.html
tuner/map-tiles.config.example.js
tuner/map-tiles.config.js
tuner/media/hexi-ep07-demo-480p.mp4
tuner/preset-antique-default.json
tuner/presets/antique-default.json
tuner/vector-layers.html
tuner/vendor/README.md
tuner/vendor/maplibre-contour.min.js
tuner/vendor/maplibre-gl.js
tuner/verify.mjs

The instruction itself

7 sections, as written by the author

MapStage

Use this skill when building or tuning a MapStage scene: map/globe projection, satellite, hypsometric relief, Mapterhorn terrain, region isolate, CSS color grade, and JSON export.

When to use

  • Need a live MapStage tuner (map vs globe, satellite vs relief, isolate).
  • Need to lock paint / CSS / camera, then export JSON into another host.
  • Need tiered settlements (capital / large / medium / small / pass / station / ordos).

Do not use the tuner page as the final render host.

Modes

| Mode | Purpose |

|------|---------|

| Production stack | Embed MapStage in your app: optional satellite/raster + Mapterhorn DEM (encoding: 'terrarium') + hillshade + OpenFreeMap vector water + CSS filter + city extrusions. Drive look from exported JSON. |

| Tuner | Local HTTP page under tuner/ for sliders, projection, isolate, preset load/export. |

Workflow

  • Serve tuner: cd tuner && python -m http.server 8765http://localhost:8765/
  • Tiles: default EOX Sentinel-2 cloudless + Mapterhorn (tuner/map-tiles.config.js). Override with gitignored map-tiles.config.local.js.
  • Apply default preset tuner/preset-antique-default.json (same as tuner/presets/antique-default.json).
  • Adjust projection / satellite / relief / isolate / CSS / cities until the look locks.
  • Export JSON from the tuner (copy or download).
  • Migrate paint + camera + CSS fields into the production MapStage scene (see references).
  • In production: jumpTo camera; wait for idle; optionally pre-cache tiles. Avoid easeTo / flyTo for recorded frames.
  • Always set DEM with encoding: 'terrarium'. Wrong encoding breaks hillshade/terrain.
  • Final frames render from the production host — not from the tuner UI.

Hard rules

  • Tiles not bundled — MapStage fetches DEM and basemap at runtime from configured URLs only.
  • Only use basemap endpoints you are allowed to use — defaults are public demo tiles (EOX); swap via config when needed.
  • encoding: 'terrarium' on the terrain source — mandatory.
  • No easeTo / flyTo in recorded production paths; prefer jumpTo + idle.
  • Do not host final render on tuner.
  • Water is the built-in OpenFreeMap / OpenMapTiles vector layers. Do not expect or commit tuner/assets/water-data.js.

References

  • references/参数列表说明.md — parameter tables + defaults
  • references/tested-config.md — sources, layer order, jumpTo + idle
  • references/tuner-workflow.md — HTTP tuner → export → production
  • references/city-tier-schema.md — settlement tiers
  • schemas/map-preset.schema.json
  • schemas/sample-sites.schema.json
  • tuner/ — live page, verify script, default preset, sample sites

Agents

See agents/openai.yaml for display name / default prompt.

How to use it

Copy the folder

Take hopechen067/mapstage from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.