
Agent skills for three.js, React Three Fiber and web 3D. They are built around the everyday work of getting a 3D
model on screen and keeping it right: what is inside the file, why it renders black, how to make it smaller without
breaking the code that uses it, how to play its clips and change its parts. They also cover scroll stories, physics,
Gaussian splats, WebXR and <model-viewer>.
The model skills do not just describe: they run code and look at the result. One script reports what a model
contains, another renders it from six angles, and a third diffs before and after. A linter catches outdated three.js
APIs, and a scene doctor profiles a running app.
Everything targets three r186 (the current release), React Three Fiber 9 and drei 10. Every API reference in every
skill is checked against those packages by pnpm check.
Install
With the skills CLI, for any supported agent (it asks which ones):
npx skills@1 add emiliodominguez/threejs-skills
Per agent, user-wide (--global) or into the current project (omit it):
npx skills@1 add emiliodominguez/threejs-skills --agent claude-code --global --yes # ~/.claude/skills
npx skills@1 add emiliodominguez/threejs-skills --agent codex --global --yes # ~/.agents/skills
As a plugin: Claude Code reads .claude-plugin/, Codex reads .codex-plugin/ and .agents/plugins/marketplace.json:
claude plugin marketplace add emiliodominguez/threejs-skills
codex plugin marketplace add emiliodominguez/threejs-skills && codex plugin add threejs-skills@threejs-skills
By profile with the wrapper script from a checkout. It installs user-wide by default; flags after -- go to every
npx skills add call, including img2threejs:
./install.sh --profile models # model workflow, scene doctor, upgrade linter, router
./install.sh --profile experiences # scroll, physics, WebXR, splats, model-viewer
./install.sh --profile foundations # three.js fundamentals through performance
./install.sh --profile create --with-img2threejs # assets, generation, plus the external img2threejs skill
./install.sh --local --project -- --agent codex --yes # this checkout into the project you run it from
Runtime requirements: Node 22+ for the scripts; a Chrome-family browser for rendering and the scene doctor (or
npx playwright install chromium); npx with network access for optimize.mjs; Blender for format conversion;
TRIPO_API_KEY for generation; SKETCHFAB_TOKEN for Sketchfab downloads.
Skills
Models
| Skill | What it does |
|---|
threejs | Router: maps a task to the right skill, checks the stack (vanilla or R3F) and the three version. |
threejs-model-inspect | Reports names (as three.js will see them), clips, bones, bounds, bytes, GPU memory, decoders and ranked findings. Renders six-view contact sheets and before/after pixel diffs. Converts FBX and OBJ. |
threejs-model-fix | Symptom-to-fix guide for vanilla and R3F (black, invisible, huge, off-center, inside-out, washed out, loader errors), checked against a known-good reference viewer. |
threejs-model-optimize | Presets over gltf-transform optimize (web, hero, configurator, animated, background, mobile, lossless) with a before/after report that flags node and material names the pass removed. |
threejs-model-animate | Clips, crossfades, one-shots, layered and additive clips, rigged copies, morph targets, Mixamo clips, root motion and retargeting. |
threejs-model-customize | Per-part colors and materials without leaking into shared materials, texture swaps, KHR_materials_variants, click picking, attachments. |
threejs-scene-doctor | Profiles a running app with no code changes (it uses three.js's devtools hook): draw calls, leaks, missing lights, color spaces, stuck mixers. |