mcpbeat Sign in

China Antique Maplibre Agent Skill

China antique parchment MapLibre map engine with configurable basemap, Terrarium hillshade, optional user-supplied water overlay, live tuner page, and tiered settlement extrusions for HyperFrames historical videos.

206k tokens
context cost
the whole folder, loaded on every use
21
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
115
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/china-antique-maplibre --skill china-antique-maplibre

What comes with it

821 569 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/sample-sites.json
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/verify.mjs

The instruction itself

7 sections, as written by the author

china-antique-maplibre · 中国历史古卷地图引擎

Use this skill when building or tuning antique parchment China maps in MapLibre for HyperFrames / historical video: optional raster basemap, Terrarium hillshade, optional water overlay (bring your own data), CSS antique grade, and tiered city extrusions.

When to use

  • Need a production MapLibre style that reads as aged parchment over real terrain.
  • Need live paint/CSS tuning before locking a HyperFrames scene.
  • Need optional rivers/lakes overlay wiring (data not shipped — supply locally if needed).
  • 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 MapLibre in HyperFrames (or your app): optional satellite/raster + encoding: 'terrarium' terrain + hillshade + optional water layers + CSS filter stack + city extrusions. Drive look from exported JSON. |

| Tuner | Local HTTP page under tuner/ for interactive sliders, preset load/export, water/city toggles. |

Workflow

  • Serve tuner: cd tuner && python -m http.server 8765http://localhost:8765/
  • Tiles: default config uses EOX Sentinel-2 cloudless + Terrarium (tuner/map-tiles.config.js). Override with gitignored map-tiles.config.local.js for other sources.
  • Apply default preset tuner/preset-antique-default.json (same content as tuner/presets/antique-default.json).
  • Adjust satellite / hillshade / water (if you supplied data) / CSS / UI toggles until the look locks.
  • Export JSON from the tuner (copy or download).
  • Migrate paint + camera + CSS fields into the HyperFrames MapLibre scene (see references).
  • In production: jumpTo camera (or set initial camera); wait for idle; optionally pre-cache tiles. Avoid easeTo / flyTo for recorded frames (motion blur / non-deterministic timing).
  • Always set Terrarium DEM with encoding: 'terrarium'. Wrong encoding breaks hillshade/terrain.
  • Final frames render from the HyperFrames / production host — not from the tuner UI.

Hard rules

  • Tiles not bundled — MapLibre fetches DEM (and optional 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.
  • Highlight water paint keys: highlightRiver / highlightWidth (UI: showHighlight). Older drafts may still say qilianRiver / showQilian — treat as aliases only when reading legacy JSON.
  • Water data is not shipped — do not expect or commit tuner/assets/water-data.js. Optional local packs only; see repo root DATA-PROVENANCE.md and references/water-overlay.md.

References

  • references/参数列表说明.md — full parameter tables + antique v2 defaults
  • references/tested-config.md — sources, layer order, jumpTo + idle
  • references/tuner-workflow.md — HTTP tuner → export → HyperFrames
  • references/city-tier-schema.md — settlement tiers
  • references/water-overlay.md — optional CHINA_WATER_DATA schema & labels
  • 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/china-antique-maplibre 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.