Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add cesartevisual/threejs-skills --skill threejs-geometry -a claude-code
Open on GitHub

What 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 BufferGeometry mesh with indexed faces and correct normals.
  • Use InstancedMesh for 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-code

2Manually: put the files in place

~/.claude/skills/threejs-geometry/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/threejs-geometry/

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.

threejs-geometry CloudAI-X threejs-geometry teaches your coding agent how to build standard geometries, generate 3D text, and construct custom vertex buffers in three.js. CX Codex +1 20,600installs geometry-and-math phaserjs The geometry-and-math skill provides access to Phaser 4 utilities for vectors, rectangles, circles, and polygons. Use it for distance and angle calculations, collision detection, and generating random points inside shapes. CX Codex +1 984installs scenario-blender-geometry-nodes scenario-labs scenario-blender-geometry-nodes is a skill that builds and debugs Blender Geometry Nodes via Python for procedural modeling, simulations, and 5.2 physics. CX Codex +1 969installs geometry-nodes https://github.com/arjun988 geometry-nodes — a skill for Claude Code and other platforms that automates procedural system creation in Blender. It enables asset generation and instancing pipelines via MCP. CX Codex +1 640installs blender-geometry-nodes blender-agent-skills The blender-geometry-nodes Claude Code skill helps build Geometry Nodes setups in Blender. It comes into play for procedural assets, surface scattering, and modifier inputs. CX Codex +1 563installs held-object-geometry Open-RUA The held-object-geometry Claude Code skill locates a held object's relevant feature relative to the hand. It applies to clearance checks, placement, and tool contact during robot motion. CX Codex +1 ★ 488repo stars memory-dispose-geometry zebbern memory-dispose-geometry is a Claude Code rule that tells the agent to release geometry when removing scene objects. It applies to Three.js resource cleanup. CX Codex +1 ★ 4,719repo stars

From the same set24

The whole set →
threejs-debugging The threejs-debugging Claude Code skill traces rendering faults in Three.js scenes. It kicks in for blank canvases, missing meshes, color issues, flicker, picking failures, or lost graphics context. CX Codex +1 658installs threejs-postprocessing This Claude Code skill adds or debugs Three.js postprocessing. It handles tasks involving bloom, antialiasing, ambient occlusion, depth effects, and render-target composition. CX Codex +1 651installs threejs-particles Claude Code skill for building Three.js particle systems, point clouds, and GPU simulations. CX Codex +1 648installs threejs-accessibility The threejs-accessibility Claude Code skill makes Three.js interactions usable with keyboards and assistive technology. It applies when adding accessibility to 3D scenes and controls. CX Codex +1 644installs threejs-product-viewer This Claude Code skill guides the creation of interactive Three.js product viewers. It comes into play when a project needs material choices, camera presets, or model hotspots. CX Codex +1 621installs threejs-physics threejs-physics — a skill for Claude Code guides the integration of Three.js with Rapier or other physics engines. It handles colliders, fixed simulation timesteps, and render transform synchronization. CX Codex +1 611installs threejs-html threejs-html — a skill for Claude Code that integrates Three.js canvases into responsive HTML and Next.js apps. It sets up overlays, scroll containers, and multi-view layouts safely. CX Codex +1 597installs threejs-spatial-data threejs-spatial-data — a skill for Claude Code helps integrate BIM, GIS, and CAD models into Three.js scenes. Manages large coordinates, clipping planes, and measurement tools without losing GPU floating-point precision. CX Codex +1 587installs

Project sponsors

Companies that keep this analytics open