Skip to main content
skill CX Codex

r3f-geometry — Claude Code skill for React Three Fiber geometry

Guides an agent through geometry, custom buffers, points, lines, and instancing in React Three Fiber. Useful when shaping objects or reducing draw calls.

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

What r3f-geometry does

The skill explains when JSX geometry is enough and when to use BufferGeometry, point buffers, or instancing. It compares Drei Instances and Merged with actual geometry merging, and covers attributes, normals, UVs, and object bounds.

It also addresses buffer updates, raycasting, and resource cleanup. For sets that change often, the guidance points to native instancing because declarative instances add React overhead. Check the installed Three.js, Fiber, and Drei versions before applying examples: constructor arguments and helper properties vary between versions.

What it helps with

  • choose a geometry representation for an object shape
  • reduce draw calls for repeated objects
  • update buffer attributes after changing vertices
  • configure normals, UVs, and geometry bounds
  • check raycast hits and shared resource cleanup

Example prompts for the agent

  • Show me how to build this shape with JSX geometry in React Three Fiber.
  • Explain how to instance repeated objects and reduce draw calls.
  • How should I update BufferGeometry after changing vertices while keeping its bounds correct?

How to install r3f-geometry

1Skills CLI (Vercel)

npx skills add EnzeD/r3f-skills --skill r3f-geometry -a claude-code

2Manually: put the files in place

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

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

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about r3f-geometry

How do I install r3f-geometry in Claude Code?

Run npx skills add EnzeD/r3f-skills --skill r3f-geometry -a claude-code. The skill file is at ~/.claude/skills/r3f-geometry/SKILL.md.

What does r3f-geometry do?

It guides an agent in building React Three Fiber geometry, custom buffers, and instanced objects. It also covers attribute updates and checking object bounds.

Does Drei Merged combine arbitrary geometry?

No. Merged builds instancing abstractions from meshes; it does not join arbitrary BufferGeometry objects. For actual merging, the skill points to mergeGeometries in three/addons/utils/BufferGeometryUtils.js.

Similar skills

SKILL.md skills catalog →

From the same set6

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor