terrain-surface
Use when terrain chunks crack, slopes and materials disagree, shorelines look detached, or water entry and collision fail to match the visible surface.
by jammyfu★ 27 GitHub stars
Install terrain-surface in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Terrain surface
Scope
Own geometry/surface boundaries and their shared data contract. Do not replace world topology, swimming moves or camera rules. Coordinate with swim-water, locomotion and materials only when needed. Fix geometry and gameplay boundaries before hiding defects under foam or particles.
Modes
| Mode | Boundary model |
|---|---|
| heightfield | elevation samples with shared tile edges |
| voxel-surface | extracted surface with explicit neighbor/LOD boundaries |
| tilemap | edge/corner-matched terrain tiles and authored shapes |
Procedure
- Record coordinate axes, units, cell resolution, border ownership, collision representation and the authoritative water level/volume. Publish surface IDs and gameplay properties separately from visual color. Name an allowable render/collision error with units and a reason.
- Derive neighboring boundaries from shared global samples. A heightfield with N cells needs N+1 edge samples; normals may require a neighbor halo. Treat negative coordinates consistently. Preserve intended cliff discontinuities; continuity does not mean smoothing every hard edge.
- Define geometry stitching/transition rules at each supported LOD boundary. Skirts can hide a visual gap but do not repair collider cracks or navigation holes. Test collision continuity separately; do not change gameplay slope/step limits to cover a rendering defect.
- Derive slope/height material transitions and shoreline placement from the same canonical data. Smooth appearance without silently moving the ground or water trigger. Set explicit enter/exit hysteresis where needed to prevent walk/swim flapping. Visible waves may be cosmetic; disclose any difference from the gameplay water surface.
- For tilemap mode, author edge/corner variants plus collision/navigation metadata, including empty and diagonal neighbors. A correctly matched picture is not a generated collider. Terrain/water edits invalidate dependent mesh, collision and navigation versions before the region becomes traversable again.
Outputs
Adapt the surface contract: representations, border/LOD policy, surface table, water transition thresholds, error tolerances, regeneration dependencies and debug overlays. Measure signed heights/normals and collision crossings; a screenshot alone cannot establish walkability.
Acceptance
Walk across four-chunk corners, steep boundaries, water entry/exit and mixed LODs; repeat at low quality and after a terrain edit. Record collision continuity, visible seam error and swim transitions against chosen tolerances. Keep valid cliffs and deliberate water behavior. Cases remain not-run until target-engine checks and visual review are performed.
References
Godot TileSets separates terrain matching from collision/navigation shapes. Tiled terrain sets documents edge/corner variants for the 2D mode. These do not supply a universal 3D shoreline shader or collider.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- assets/contract.example.json
- assets/evals.json
FAQ
What does the terrain-surface skill do?
Use when terrain chunks crack, slopes and materials disagree, shorelines look detached, or water entry and collision fail to match the visible surface.
How do I install the terrain-surface skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the terrain-surface skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…