Skip to content

Agent skill for creative 3D visualization: turn an idea into a Three.js/Blender scene worth exploring. Claude Code + Codex plugin, 223 recipes, 440 knowledge records, 22 proved kits, 37 runnable studies.

13.1 KB
Raw Blame
[
  {
    "schema_version": 1,
    "id": "knowledge.reasoning-terrain-height-authority",
    "revision": 1,
    "status": "active",
    "record_kind": "creative",
    "knowledge_kind": "reasoning-rule",
    "title": {
      "en": "One elevation function owns ground contact"
    },
    "aliases": {
      "en": [
        "terrain height authority",
        "single height field",
        "grounding placement"
      ]
    },
    "direction_ids": [
      "environments-dioramas",
      "earth-environment"
    ],
    "summary": "Sample the same elevation function that renders the ground when placing buildings, roads, water and walkable paths.",
    "objective": "Decide which representation owns terrain elevation so that placement, traversal and the rendered surface cannot disagree.",
    "applies_when": [
      "A scene has non-flat terrain and objects that must rest on it.",
      "Buildings, props or vegetation are scattered procedurally or from a layout table.",
      "A camera or character walks, drives or hovers over the ground.",
      "Water level, roads or foundations are placed relative to the landscape."
    ],
    "constraint_level": "correctness",
    "subject_terms": [
      "terrain",
      "height field",
      "ground contact",
      "scatter placement",
      "displacement",
      "walkable surface"
    ],
    "tags": [
      "reasoning-rule",
      "correctness",
      "terrain",
      "placement"
    ],
    "intent_signals": [
      "objects float above or sink into terrain",
      "place buildings on a hillside",
      "walk over uneven ground"
    ],
    "example_prompts": [
      "Scatter houses and trees over the hills so nothing floats or sinks.",
      "Let me walk over the island terrain instead of sliding across a flat plane."
    ],
    "negative_signals": [
      "Deliberately floating architecture, dream logic or a stylised world where contact with the ground is not intended.",
      "Flat-stage scenes where every object shares one ground plane."
    ],
    "not_for": [
      "Deliberately floating architecture, dream logic or a stylised world where contact with the ground is not intended.",
      "Flat-stage scenes where every object shares one ground plane."
    ],
    "content": {
      "principles": [
        "Terrain elevation is application state, not a look. If mesh displacement, the placement routine and the walking controller each compute height in their own way, the three drift apart and the mismatch appears as floating or buried objects.",
        "A height source can be a noise or spline function, a sampled height array, or a collider raycast. What matters is that one of them is authoritative and the others are derived from it. Where the ground is not a single-valued surface, because of bridges, overhangs, caves or stacked storeys, the authority becomes a surface-identity query rather than one elevation per horizontal position, and consumers must say which surface they mean.",
        "Placement needs more than a height value: slope and normal decide whether a foundation should be cut, terraced or rejected."
      ],
      "implementation": [
        "Choose the authority first: an analytic height function for procedural worlds, a height array for imported or edited terrain, a collider raycast when the ground includes overhangs or separate props.",
        "If the renderer displaces vertices in a shader, that displacement is not automatically available to placement or gameplay code on the CPU. Bridge it deliberately: evaluate the same function on the CPU, sample the same source data, or perform an explicit GPU readback or compute query, and say which of these the scene relies on.",
        "Return position, surface normal and slope from one query, then let each consumer decide: cut a flat pad, add a plinth or stilts, terrace the slope, or exclude the site.",
        "Store the sampled elevation with the placement so a later terrain edit can report which instances became stale instead of silently detaching."
      ],
      "observable_checks": [
        "Move the camera to a grazing angle at the base of scattered objects on a slope; gaps and sunken corners are visible there and invisible from above.",
        "Change one terrain parameter, such as amplitude or seed, and confirm placed objects either follow the new surface or are reported as stale.",
        "Walk or drive across a steep region and a valley floor; a controller reading a different height source snaps, hovers or falls through.",
        "Check a water plane against shoreline geometry: a constant water height crossing an inconsistent ground surface shows flooded interiors."
      ]
    },
    "related_ids": [
      "recipe.terrain-island",
      "recipe.fantasy-village-diorama",
      "knowledge.terrain-landmark-rhythm"
    ],
    "creative_affordances": [
      "Terraces, retaining walls, stilts and carved pads are all legitimate answers to a steep site; the rule constrains consistency, not architectural language.",
      "Deliberate exceptions such as a floating shrine stay expressive as long as they are authored exceptions rather than sampling bugs."
    ],
    "known_limits": [
      "Authored construction guidance; no runtime scene has been rendered or measured for this record.",
      "Says nothing about terrain generation quality, erosion realism or level-of-detail strategy."
    ],
    "claims": []
  },
  {
    "schema_version": 1,
    "id": "knowledge.material-response-check",
    "revision": 1,
    "status": "active",
    "record_kind": "creative",
    "knowledge_kind": "validation-profile",
    "title": {
      "en": "Material and lighting response inspection"
    },
    "aliases": {
      "en": [
        "material response check"
      ]
    },
    "direction_ids": [
      "environments-dioramas",
      "rigid-mechanics",
      "solid-geometry"
    ],
    "summary": "Verify that selected finishes are visibly distinguishable under repeatable viewing conditions.",
    "objective": "A viewer can distinguish the intended material roles without relying on labels alone.",
    "tags": [
      "validation-profile",
      "material",
      "response",
      "check"
    ],
    "example_prompts": [
      "Verify that selected finishes are visibly distinguishable under repeatable viewing conditions."
    ],
    "content": {
      "principles": [
        "Judge materials on the target object and a simple reference sample; geometry can hide or exaggerate a finish.",
        "Keep a written distinction between authored appearance, source-backed shader semantics and measured physical properties."
      ],
      "implementation": [
        "Save the light rig, environment, exposure and camera distance. Capture front and grazing views with a neutral reference.",
        "Compare dielectric, bare metal and transmissive parts using the relevant material profiles. Change only one setting at a time.",
        "Record unreadable reflections, lost silhouettes, transparency artifacts and scale-inconsistent texture detail with the view that reveals them."
      ],
      "observable_checks": [
        "A viewer can distinguish the intended material roles without relying on labels alone.",
        "A repeated baseline produces the same visual comparison; inconclusive differences are reported as inconclusive."
      ]
    },
    "known_limits": [
      "No universal roughness value or objective realism score is prescribed; art direction can deliberately simplify response.",
      "Authored reusable guidance; no runtime artifact or improvement has been observed for this record."
    ],
    "creative_affordances": [
      "Adapt proportions, finish and presentation to the scene; explain deliberate departures from this guidance."
    ],
    "related_ids": [
      "recipe.fantasy-village-diorama",
      "recipe.coupled-gears",
      "recipe.solid-of-revolution"
    ],
    "claims": []
  },
  {
    "schema_version": 1,
    "id": "recipe.terrain-island",
    "revision": 1,
    "status": "active",
    "record_kind": "creative",
    "title": {
      "en": "Terrain island with grounded exploration"
    },
    "aliases": {
      "en": [
        "terrain island"
      ]
    },
    "direction_ids": [
      "environments-dioramas"
    ],
    "summary": "Compose a traversable island around a ridge, sheltered inlet and readable path.",
    "objective": "Build an island I can explore, with terrain-aware walkers and a clear route from jetty to lookout.",
    "tags": [
      "terrain",
      "island"
    ],
    "example_prompts": [
      "Build an island I can explore, with terrain-aware walkers and a clear route from jetty to lookout."
    ],
    "entities": [
      {
        "name": "Terrain",
        "guidance": "Author silhouette before detail: ridge, saddle, shore shelf and cliff faces. Use rough rock, softer soil and low-gloss water as distinct material families; avoid uniform noise."
      },
      {
        "name": "Jetty and lookout",
        "guidance": "Model posts into the support surface, deck thickness, rail joints and visible steps; inspect at walking distance."
      },
      {
        "name": "Walker",
        "guidance": "Give feet, hips and a head a readable hierarchy; derive stride from traveled distance, plant feet against the support surface."
      }
    ],
    "state_contract": {
      "model": "Authored height field and static obstacles; controlled capsule actor with position, velocity and bounded steering acceleration in illustrative metres.",
      "authority": "One canonical model owns semantic values; derive geometry and labels from it. Keep presentation transforms separate.",
      "actions": [
        "Select route waypoint; reject unreachable targets.",
        "Pause or reset actor position and velocity.",
        "Toggle terrain and obstacle collider overlay."
      ]
    },
    "invariants": [
      "Collider includes body clearance; buildings and cliff walls block movement.",
      "Sample support height and normal; enforce authored slope and step limits and block water unless swimming is implemented.",
      "Bridge deck is a distinct support surface above water; do not sample seabed through it."
    ],
    "motion_guidance": [
      "Use fixed simulation steps, sweep capsule across movement and slide/stop at contact; interpolate rendering.",
      "Constrain feet to terrain, limit heading change, and keep acceleration bounded in free motion; gravity only in unsupported states."
    ],
    "known_limits": [
      "Invented terrain, not a geologic or erosion model.",
      "Navigation and contact implementation remain required; a waypoint curve alone does not establish clearance.",
      "Authored guidance; no scene runtime or visual verification has run for this recipe."
    ],
    "object_craft": [
      {
        "family": "Terrain",
        "structure": "Author silhouette before detail: ridge, saddle, shore shelf and cliff faces. Use rough rock, softer soil and low-gloss water as distinct material families; avoid uniform noise.",
        "material": "Rough cliff rock, softer matte soil, directional timber grain and a low-gloss water family; use contact darkening sparingly at supports.",
        "articulation": "Parent feet to legs and legs to pelvis; heading follows resolved velocity, foot placement follows the selected support surface."
      },
      {
        "family": "Jetty and lookout",
        "structure": "Model posts into the support surface, deck thickness, rail joints and visible steps; inspect at walking distance.",
        "material": "Rough cliff rock, softer matte soil, directional timber grain and a low-gloss water family; use contact darkening sparingly at supports.",
        "articulation": "Parent feet to legs and legs to pelvis; heading follows resolved velocity, foot placement follows the selected support surface."
      },
      {
        "family": "Walker",
        "structure": "Give feet, hips and a head a readable hierarchy; derive stride from traveled distance, plant feet against the support surface.",
        "material": "Rough cliff rock, softer matte soil, directional timber grain and a low-gloss water family; use contact darkening sparingly at supports.",
        "articulation": "Parent feet to legs and legs to pelvis; heading follows resolved velocity, foot placement follows the selected support surface."
      }
    ],
    "physical_contract": {
      "model": "controlled-locomotion",
      "scope": "Terrain-aware authored walking; no hydrodynamics.",
      "state": [
        "position",
        "velocity",
        "heading",
        "support surface ID"
      ],
      "colliders": [
        "Capsule actor encompassing body; support contact handles feet.",
        "Transformed static wall/roof bounds; terrain and bridge supports."
      ],
      "driving": [
        "Bound free-motion acceleration and turn rate; brake or replan at blocked route."
      ],
      "contact": [
        "Sweep movement, remove inward velocity, slide or stop.",
        "Terrain normal, slope and step limits decide support; water is blocked."
      ],
      "timestep": "Fixed simulation step with accumulated remainder; interpolate render transforms.",
      "checks": [
        "Complete a route without penetration at declared tolerance.",
        "Stop at shoreline and cliff; traverse bridge on its deck.",
        "Pause and reset clear stale velocity."
      ]
    }
  }
]