threejs-geometry · cesartevisual — Claude Code skill for Three.js geometry
This Claude Code skill creates and refines Three.js geometry. It activates for work on BufferGeometry, procedural meshes, and instanced objects.
MIT 638 installs ★ 26 updated 2026-09-10
npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a claude-codeWhat threejs-geometry does
The skill helps choose geometry for a task: built-in shapes for simple forms, BufferGeometry for custom topology, and InstancedMesh for repeated objects. It covers vertex attributes, indexing, normals, and UV seams. For changing geometry, it describes updating typed arrays and bounds.
For InstancedMesh, the guidance covers mapping instance IDs to application IDs, refreshing matrices and colors, culling, and object selection. It also addresses geometry ownership and disposal. The skill follows the Three.js versions and architecture already used by the project; if documentation cannot be accessed, it points to the installed types or source.
What it helps with
- build a procedural mesh with deliberate topology
- refresh dynamic attributes and geometry bounds
- set up instanced objects with per-instance selection
- diagnose normal, UV seam, or culling issues
Example prompts for the agent
- Create a procedural
BufferGeometrymesh with indexed faces and correct normals. - Use
InstancedMeshfor repeated objects and support selecting individual instances. - Review this geometry's dynamic attributes, UV seams, and bounds.
How to install threejs-geometry
1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a claude-code2Manually: put the files in place
~/.claude/skills/threejs-geometry/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/threejs-geometry/
1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a codex2Manually: put the files in place
.agents/skills/threejs-geometry/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a cursor2Manually: put the files in place
.cursor/skills/threejs-geometry/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install cesartevisual/threejs-skills skills/threejs-geometry2Manually: put the files in place
.github/skills/threejs-geometry/SKILL.md1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a gemini-cli2Platform CLI
gemini skills install https://github.com/cesartevisual/threejs-skills --path skills/threejs-geometryManually: put the files in place
.devin/skills/threejs-geometry/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about threejs-geometry
How do I install threejs-geometry in Claude Code?
Run npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a claude-code. The skill file is at ~/.claude/skills/threejs-geometry/SKILL.md.
What does threejs-geometry do?
It assists with creating and refining Three.js geometry, including procedural meshes, BufferGeometry attributes, and repeated objects managed with InstancedMesh.
How does threejs-geometry handle dynamic geometry?
It covers updating typed arrays and the needsUpdate flag, plus refreshing bounds when changes affect culling or object picking.
Source text
SKILL.md · MIT
--- name: threejs-geometry description: "Create or optimize Three.js BufferGeometry, procedural meshes, instanced objects, and geometry attributes." --- # Geometry and Instancing Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions. Choose built-in geometry for simple shapes, BufferGeometry for custom topology, and instancing for repeated geometry/material combinations. Keep topology density tied to silhouette and deformation, not arbitrary high segment counts. Define indexed versus non-indexed data deliberately. Attribute vertex counts must agree; triangle winding controls front faces. UV seams and hard normals can require duplicated vertices. Recompute normals after topology changes when appropriate; normals alone do not create missing UVs or tangents. For dynamic attributes, allocate capacity up front, choose usage before first rendering, mutate typed arrays, and flag needsUpdate. Use supported update ranges for partial writes. Refresh bounding volumes after changes that invalidate culling or picking. A bounding box is not automatically a precise collision shape. With InstancedMesh, maintain a stable instance ID to application ID mapping. Update instance matrices/colors and their needsUpdate flags; recompute bounds after instance transforms change. Split large instance sets spatially when one enormous bound defeats culling. Plan selection/highlighting without cloning a material for every instance. Keep generated geometry ownership explicit, reuse immutable assets, and dispose geometry only when its last consumer releases it. Verify normals under directional lighting, seams under a checker texture, culling at camera edges, and per-instance picking after updates. ## API reference Consult the [official documentation](https://threejs.org/docs/pages/InstancedMesh.html) for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.
© cesartevisual · MIT · cesartevisual/threejs-skills
Similar skills
All skills for Game dev and 3D: Unity, Unreal, Godot, Blender →threejs-geometry by other authors comes first.