Three.js Skills
DesignSkills that give Claude current three.js knowledge: scenes, loaders, lighting, shaders, React Three Fiber.
Install
$ npx skills add cloudai-x/threejs-skills
Works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and any other agent that reads SKILL.md.
Update
$ npx skills update
Or re-run the install command, or git pull your clone and copy the skills folders again.
When to use it
- Starting a 3D scene and you want code that runs on the three.js release you install
- Loading and optimizing glTF models, textures and HDR environments
- Adding particles, custom shaders or post-processing without outdated APIs
- Debugging a slow scene or a GPU memory leak
Commands & flags
- Create a 3D scene with orbit controls
- Loads the fundamentals and interaction skills: scene, camera, renderer, animation loop.
- Load this glTF model and light it with an HDR environment
- Uses the loaders and lighting skills, including Draco, meshopt and KTX2 setup.
- Write a custom shader for a screen effect
- Uses the shaders and postprocessing skills.
- Build this scene with React Three Fiber
- Uses the React Three Fiber skill with verified drei helpers.
- Make this scene faster
- Uses the performance skill: draw calls, GPU memory, fill rate, compile stalls.
How to use it
Install with the skills CLI, or clone the repo and copy the skill folders into ~/.claude/skills/ (all projects) or .claude/skills/ (one project).
npx skills add cloudai-x/threejs-skills
Claude loads the matching skill from your request. Each skill has a quick start, topic sections, a WebGPU and TSL section and a Common Mistakes list of outdated patterns with their current fix.
It targets one three.js release; if you pin a much older version, check the version note at the top of each skill.
Why it earns its place
Models know three.js from many releases mixed together, so they reach for renamed or removed APIs. These skills were checked against the published packages and the migration guide, and list the mistakes models still make. You spend less time debugging code that looks right but fails on your version.
Try it
> Build an interactive 3D product viewer with a glTF model, soft shadows and orbit controls