The PromptsRush blog
TutorialsBest Three.js Skills for Claude Code: Install, Prompts and Examples (2026)
The best Three.js skills for Claude Code, compared: CloudAI-X's 13-skill r186 pack plus four specialists, three ways to install them, nine copy-ready prompts that trigger the right skill, example builds and the pitfalls that waste the most time.

The best Three.js skill for Claude Code right now is CloudAI-X's threejs-skills pack: 13 free, MIT-licensed skill files rewritten for three.js r186, installed with one command. It is the pack we list in our Three.js Skills marketplace page, where you can download it or follow the install guide. If you only add one Three.js skill to your setup, make it this one.
The reason a skill matters at all is simple. Ask Claude Code for a 3D scene without one and you often get code written for a three.js that no longer exists: THREE.Clock, outputEncoding, imports from three/examples/jsm/, a three.min.js script tag. Each of those was renamed, deprecated or removed between r160 and r186. A good skill hands Claude the current API and a list of exactly those outdated patterns, so the first run works.
Short version: install CloudAI-X for everyday Three.js and React Three Fiber work, add a WebGPU/TSL specialist only if you write node-based shaders, and write prompts that name the three.js version, the renderer and the output you want. The rest of this guide shows you how, with copy-ready prompts and the mistakes to avoid.
What You Will Get From This Guide
- A short list of real Three.js skill packs on GitHub, with skill counts, licences and what each is best at, all checked on 2 December 2026.
- Three ways to install them in Claude Code: the skills CLI, a manual copy into
~/.claude/skills/or.claude/skills/, and the plugin marketplace route. - Eight example prompts that trigger the right skills, from a first rotating cube to a WebGPU particle field.
- Example builds mapped to skills, a tool stack table, and the pitfalls that waste the most time.
New to the idea of skills? Our primer on what AI skills are and how to use them covers the concept in ten minutes. This post assumes you know what a SKILL.md is and want the Three.js ones.
What a Three.js Skill Actually Does Inside Claude Code
A skill is a folder with a SKILL.md file: YAML frontmatter with a name and a description, then Markdown instructions. Claude Code skills follow the open Agent Skills standard, according to Anthropic's Claude Code skills documentation, and the same files work in Cursor, Codex and other agents that read the format.
The loading model is what makes skills cheap. In a normal session, Claude Code keeps only each skill's description in context. When your request matches a description, the full skill body loads, once, and stays in the conversation for the rest of the task. Ask for "a glTF model with Draco compression that plays its animations" and Claude pulls in the loaders and animation skills, not all thirteen.
For Three.js, the body of a good skill does three jobs:
- Pins the version. CloudAI-X states the target release, r186, at the top of every file, so Claude stops blending a decade of tutorials.
- Gives a runnable Quick Start. A complete example comes first, the detailed API sits underneath.
- Lists the mistakes models make. Each CloudAI-X skill ends with a Common Mistakes section that maps outdated code to the r186 fix and explains why.
If you are still deciding whether a skill is even the right tool here, versus an MCP docs server or a subagent, our breakdown of Claude skills vs MCP tools vs subagents settles it. For library knowledge that changes between versions, a skill is usually the lightest fix.
The Best Three.js Skills for Claude Code, Compared
We went through every repository below on GitHub, counted the SKILL.md files and read the install instructions. Star counts are what GitHub showed on 2 December 2026.
| Skill pack | Skills | Targets | Licence | GitHub stars | Best for |
|---|---|---|---|---|---|
| CloudAI-X/threejs-skills | 13 | three.js r186, R3F 9.8, drei 10.7 | MIT | 4,692 | Everyday Three.js and React Three Fiber |
| cesartevisual/threejs-skills | 24 | WebGL, WebGPU, R3F | MIT | 30 | Production extras: testing, accessibility, deployment, physics |
| full-stack-skills/threejs-skills | 18 | Core API by module | Apache-2.0 | 19 | Fine-grained API reference (camera, math, renderers) |
| linegel/threejs-complete-set-of-skill | 27 | three.js r185 WebGPU/TSL | ISC | 19 | Ambitious procedural scenes: oceans, clouds, planets |
| dgreenheck/webgpu-claude-skill | 1 | three.js r183+ WebGPU/TSL | MIT in plugin.json (no LICENSE file) | 1,307 | WebGPU renderer, TSL shaders, GPU compute |
1. CloudAI-X Three.js Skills (our pick)
This is the pack most people searching for "three.js skills" end up with, and for good reason. It has about 4,700 GitHub stars and, according to its skills.sh listing, 314.8K total installs across its 13 skills. The October 2026 update rewrote every file for three.js r186 and added three new skills: performance, React Three Fiber and an asset pipeline built on gltf-transform.
The 13 skills split the library the way you think about it: fundamentals, geometry, materials, lighting, textures, animation, loaders, shaders, post-processing, interaction, performance, React Three Fiber and asset pipeline. The repository README says the examples were checked against the published three@0.186.1 package: every import path and every THREE.* class used exists, and every JavaScript block parses as an ES module.
My take: the Common Mistakes lists are the most valuable part. The fundamentals skill alone flags Clock (deprecated in r183, use Timer), PCFSoftShadowMap (deprecated in r182), outputEncoding, the removed physicallyCorrectLights switch and the three/examples/jsm/ import path. Those are exactly the lines Claude reaches for without help.
Grab it from our Three.js Skills listing (download button plus a step-by-step install tab) or install it straight from GitHub with the commands in the next section.
2. cesartevisual Three.js Skills
The widest pack: 24 skills that go past the core API into the jobs around it, including physics, particles, accessibility, debugging, testing and visual QA, deployment, WebXR, spatial audio, BIM and GIS data, and a product-viewer skill for configurators. It is MIT-licensed and installs with npx skills add cesartevisual/threejs-skills. Honest answer: it is young (created September 2026) and its README says in-agent task and GPU compatibility are not certified, so treat it as a strong add-on for production concerns rather than your base layer.
3. Full Stack Skills Three.js pack
Eighteen skills that follow the shape of the three.js docs rather than tasks: camera, controls, helpers, lights, math, objects, renderers, scenes, node TSL, WebXR and more. It is Apache-2.0, part of a wider "Full Stack Skills" collection, and installs with npx skills add full-stack-skills/threejs-skills. Pick it if you like reference-style coverage of one module at a time. Do not install it on top of CloudAI-X in the same folder: both ship skills called threejs-animation, threejs-loaders and others (more on that in the pitfalls).
4. linegel Three.js WebGPU/TSL skill set
Twenty-seven skills for three.js r185 WebGPU and TSL work, aimed at showpiece scenes: spectral oceans, volumetric clouds, procedural planets, vegetation, rain and snow, water optics and a visual-validation skill. A router skill, threejs-choose-skills, picks the smallest set for a multi-system request. It is ISC-licensed. Use it when the brief is "make it look incredible", not "add a product viewer to my shop".
5. Dan Greenheck's WebGPU Three.js TSL skill
A single, deep skill (webgpu-threejs-tsl) with reference docs, examples (a particle system, an Earth shader with atmosphere) and templates for WebGPU projects and compute shaders. It has about 1,300 stars, was last aligned with three.js r183+ in April 2026, and ships a Claude Code plugin marketplace file, so it installs through /plugin. Its plugin.json declares MIT, but the repository has no LICENSE file, so check that before you redistribute it.
How to Install Three.js Skills in Claude Code
There are three routes. All of them end with the same thing on disk: skill folders, each holding a SKILL.md, in a place Claude Code reads. The location decides where the skill works:
~/.claude/skills/(personal): every project on your machine. Anthropic's docs note these do not load in Cowork or cloud sessions..claude/skills/in the repo (project): that repository only. Commit it and everyone on the team, plus cloud sessions for that repo, gets the same skills.- A plugin: wherever the plugin is enabled, invoked as
/plugin-name:skill-name.
Option 1: The skills CLI (fastest)
The skills CLI from skills.sh fetches a GitHub repo and writes the folders for your agent. Run it from your project root:
npx skills add cloudai-x/threejs-skills
It installs into the current project by default. Two useful variations, both documented in the skills CLI README: add -g to install for every project, and use --skill with -a claude-code to install a single skill for Claude Code only.
npx skills add cloudai-x/threejs-skills -g npx skills add cloudai-x/threejs-skills --skill threejs-react-three-fiber -a claude-code npx skills list npx skills update
Option 2: Manual copy (no extra tooling)
This is the method in the CloudAI-X README. Clone once, then copy into the personal or the project folder:
git clone https://github.com/CloudAI-X/threejs-skills.git # all your projects mkdir -p ~/.claude/skills && cp -r threejs-skills/skills/* ~/.claude/skills/ # or one project (run from the project root) mkdir -p .claude/skills && cp -r threejs-skills/skills/* .claude/skills/
Each folder is self-contained, so you can copy only the ones you need, for example threejs-fundamentals, threejs-loaders and threejs-react-three-fiber for a React product viewer.
Option 3: The plugin marketplace (for packs that ship one)
Some repositories include a .claude-plugin/marketplace.json. Dan Greenheck's WebGPU skill is one. Claude Code's plugin docs describe a two-step install: add the marketplace, then install the plugin by name@marketplace.
/plugin marketplace add dgreenheck/webgpu-claude-skill /plugin install webgpu-threejs-tsl@webgpu-threejs-tsl
In a session, /plugin install opens the plugin panel so you can review it and choose a scope before anything is installed.
Check that the skills loaded
- Start Claude Code in your project and open the
/skillsmenu. The Three.js skills should be listed. - Invoke one directly to test it: the folder name is the command, so
/threejs-fundamentalsloads that skill. - Install the library itself. Skills document the API; they do not bundle it. Run
npm install three, plus@react-three/fiberand@react-three/dreifor React projects.
Pro tip: Put the three.js version you actually installed in your project's CLAUDE.md, one line, so Claude reads it every session. Our guide to writing AGENTS.md and CLAUDE.md files shows where facts like this belong.
Example Prompts That Trigger the Right Three.js Skills
Skills load when your request matches their descriptions, so the best prompts name the job in the words the descriptions use: scene, glTF, shader, post-processing, React Three Fiber, slow. Each prompt below says which skills it should pull in. Swap the bracketed parts for your project.
1. A starter scene that runs first time
Pulls in threejs-fundamentals and threejs-interaction.
Starter Three.js Scene
Using three.js r186 with Vite and plain JavaScript, create a full-window scene with a rotating torus knot, a MeshStandardMaterial, one directional light with soft shadows on a ground plane, and OrbitControls with damping. Use renderer.setAnimationLoop and THREE.Timer, import addons from three/addons/, handle window resize and device pixel ratio, and dispose everything on teardown. Give me index.html, main.js and the npm install command.
Naming the version, the bundler and the renderer loop up front stops Claude from mixing eras. The teardown line matters later, when this scene lives inside a framework that mounts and unmounts it.
2. A glTF product viewer
Pulls in threejs-loaders, threejs-lighting and threejs-interaction.
glTF Product Viewer
Build a product viewer in three.js r186 for [models/product.glb], which uses Draco and KTX2 compression. Light it with an HDR environment map (use HDRLoader), add a contact shadow under the model, frame the camera to the model bounds, and limit OrbitControls so the user cannot go below the floor. Show a loading percentage with LoadingManager, and add hotspots that highlight a part on hover using Raycaster.
3. A scroll-driven 3D hero section
Pulls in threejs-fundamentals and threejs-animation.
Scroll-Driven 3D Hero
Create a landing-page hero where a 3D [laptop] model rotates and the camera dollies in as the user scrolls through three sections. Use three.js r186 and GSAP 3 ScrollTrigger to drive the camera, keep the canvas fixed behind the HTML, respect prefers-reduced-motion with a static fallback, and pause rendering when the canvas is off screen.
If the scroll choreography is the hard part, pair this with our GSAP AI prompts and the GSAP AI Skills pack, which do for GSAP 3 what the Three.js pack does here.
4. A custom shader effect
Pulls in threejs-shaders.
Fresnel Dissolve Shader
Write a three.js r186 material for a sphere with a fresnel rim glow in [#6366F1] and a noise-based dissolve controlled by a uniform from 0 to 1. Extend MeshStandardMaterial with onBeforeCompile so it keeps PBR lighting, and also give me the same effect as a TSL node material for WebGPURenderer. Add a small slider to animate the dissolve value.
5. Bloom and post-processing
Pulls in threejs-postprocessing.
Selective Bloom Pass
Add selective bloom to my three.js r186 scene so only meshes on layer 1 glow. Use EffectComposer with RenderPass, UnrealBloomPass and an OutputPass at the end, keep tone mapping correct, and resize the composer with the renderer. Explain each pass in one line.
6. React Three Fiber in Next.js
Pulls in threejs-react-three-fiber.
R3F Scene in Next.js
Build a React Three Fiber 9 component for a Next.js App Router page that shows [models/shoe.glb] on a turntable. Use drei for the loader, Environment and OrbitControls with makeDefault, set Canvas shadows to percentage, use frameloop demand and invalidate after changes, and load the canvas client-side only.
7. Fix a slow scene
Pulls in threejs-performance.
Three.js Performance Audit
My three.js scene drops below 30 fps on a mid-range phone. Read [src/scene.js] and audit it. Report draw calls, triangle count and texture memory from renderer.info, then fix the worst three problems: merge or instance repeated meshes, cap the pixel ratio, and reduce shadow cost. Show before and after numbers I can check myself.
8. Shrink a glTF before you ship it
Pulls in threejs-asset-pipeline and threejs-loaders.
glTF Compression Pipeline
Give me gltf-transform commands to inspect, validate and optimise [models/scene.glb] for the web with meshopt compression and KTX2 textures. Then update my loader code so it decodes both formats correctly, and add an npm script that runs the pipeline on every file in /models.
9. Migrate old three.js code
Pulls in several skills through their Common Mistakes lists.
Upgrade Legacy Three.js Code
This project was written for an old three.js release. Upgrade [src/] to three.js r186. Replace deprecated or removed APIs (for example Clock, outputEncoding, RGBELoader, PCFSoftShadowMap and three/examples/jsm imports), list every change in a table with the reason, and do not change behaviour.
Example Builds and the Skills Each One Uses
Here is how common projects map to the 13 CloudAI-X skills. Use it to decide which folders to copy if you do not want the full set.
| What you are building | Skills it leans on | Watch out for |
|---|---|---|
| Product configurator for a store | loaders, materials, lighting, interaction | Colour swaps that rebuild materials every click; reuse them |
| 3D portfolio or landing-page hero | fundamentals, animation, postprocessing | Rendering while the canvas is off screen |
| Browser game prototype | fundamentals, interaction, animation, performance | Allocating new vectors inside the frame loop |
| Data visualisation in 3D | geometry (instancing, points), interaction | One mesh per data point instead of an InstancedMesh |
| Shader art or WebGPU experiments | shaders, postprocessing (plus a TSL specialist) | Mixing GLSL and TSL patterns in one material |
| React or Next.js site with 3D | react-three-fiber, loaders, asset-pipeline | Server rendering the canvas |
Once the build looks right, most teams want a walkthrough video for a launch post or a client handover. A screen recording with an AI presenter explaining the controls is quicker than filming yourself.
The Tool Stack We Recommend for Three.js With Claude Code
| Layer | Tool | Why it is in the stack |
|---|---|---|
| Agent | Claude Code | Reads skills natively and edits your repo |
| Three.js knowledge | CloudAI-X threejs-skills | Current r186 API, Common Mistakes lists |
| WebGPU and TSL depth | webgpu-threejs-tsl or linegel set | Node materials and compute, only if you need them |
| Library | three (npm), plus R3F 9 and drei for React | Match the version the skills target |
| Build tool | Vite | Fast dev server, ES module imports that match the skills |
| Assets | gltf-transform | Draco, meshopt and KTX2 compression before shipping |
| Cheaper model in Claude Code | Z.ai GLM Coding Plan | Runs inside Claude Code for long iteration loops |
| Live docs | A docs MCP server | Backup for APIs newer than your skills |
Three.js work is iteration-heavy: tweak a light, reload, tweak again. Z.ai documents a setup for using its GLM Coding Plan inside Claude Code, which is one way to keep those long loops affordable while the skills still supply the API. For the docs layer, our list of the best MCP servers for Claude Code includes documentation servers that fill gaps when three.js ships a release your skills do not cover yet.
Common Pitfalls With Three.js Skills (and the Fixes)
- Installing two packs into one folder. CloudAI-X, cesartevisual and Full Stack Skills all ship folders such as
threejs-animationandthreejs-materials. Copying a second pack over the first silently replaces files. Pick one base pack, and add specialists whose names do not collide. - Version drift. CloudAI-X targets r186, while npm's latest
threeon 2 December 2026 was 0.187.0 (r187). Either install the release the skills target or tell Claude which version you run and ask it to check the migration guide for anything newer. - Too many overlapping skills. Every installed skill puts its description in context, and similar descriptions make it harder for Claude to pick the right one. Claude Code's
/doctorcheck flags unused skills against their context cost. Our context engineering patterns for Claude Code explain why lean context beats more context. - Expecting personal skills in the cloud. Skills in
~/.claude/skills/do not load in Cowork or cloud sessions. Commit the folders to.claude/skills/in the repo when the team or a cloud thread needs them. - Skills buried in a subfolder. A
.claude/skills/folder below where you started Claude Code only loads once Claude reads or edits a file there. Keep Three.js skills at the repo root, or run/add-diron the subfolder. - Editing a skill mid-task. Claude Code picks up file changes, but a skill that already loaded stays in the conversation as it was. Invoke it again, or start a fresh session, after you edit it.
- Not reading third-party skills. A skill is instructions your agent follows. CloudAI-X is Markdown only; other packs include scripts and examples. Skim them before installing, as you would any dependency.
Once you know what you want Claude to do differently in your own codebase (your folder layout, your shader conventions, your performance budget), write a small project skill of your own on top of the pack. Our tutorial on creating your first Claude skill takes about fifteen minutes.
Verdict: Which Three.js Skill Should You Install?
Install CloudAI-X threejs-skills first. It is free, MIT-licensed, the most used by a wide margin, rewritten for r186 in October 2026, and its Common Mistakes sections target the exact outdated code Claude tends to write. That covers scenes, models, shaders, post-processing, React Three Fiber, performance and asset compression.
Then add one specialist only if your work needs it: Dan Greenheck's skill or the linegel set for WebGPU and TSL, or a few cesartevisual skills (testing, accessibility, deployment) for production polish. Keep the total small, name the version in every prompt, and you will spend your time on the scene instead of on import errors.
Start with the Three.js Skills download and install guide, then paste prompt 1 above to confirm everything works.
Before you prompt a big scene, it helps to collect references and turn them into a tight brief: the mood, the camera moves, the materials, the performance target. An AI research agent can gather that and draft the brief you hand to Claude Code.
Frequently Asked Questions
8 questions answered
Written by
PromptsRush
December 2, 2026 · 18 min read
Keep reading
Keep your curiosity going.

34 Best GPT-6.2 Sol and Astra Prompts: A Cheat Sheet by Task
34 copy-ready GPT-6.2 Sol and Astra prompts organised by task: coding, frontend and 3D, writing, slides and workbooks, research, data analysis, agents and creative work, each tagged with the right model and reasoning effort.

Birthday Collage Prompt for ChatGPT: Photo Collage Templates
Copy 12 birthday collage prompts for ChatGPT and Gemini: 2x2 and 3x3 photo grids, a hero layout, photo booth strips from one photo, heart, travel map, contact sheet and family collages, plus edit prompts that fix one tile without redoing the rest.

Christmas AI Photo Prompts for ChatGPT and Gemini: Cards, Portraits and Posters
Copy 13 Christmas AI photo prompts for ChatGPT and Gemini: fireside and snowy portraits, family and couple shots, printable cards, movie and party posters, plus the five-block formula, card sizes and edit prompts that fix a misspelled greeting.