Three.js Skills
Ten Three.js skill files that teach your AI agent the real r160+ API — scenes, materials, shaders, GLTF loaders, and post-processing.
Overview
Three.js Skills is a set of ten Agent Skill files that give AI coding agents accurate, current Three.js knowledge — scene setup, geometry, materials, lighting, textures, animation, loaders, shaders, post-processing, and interaction — audited against the official Three.js r160+ documentation.
What is Three.js?
Three.js is the most widely used JavaScript 3D library for the web. It wraps WebGL in a scene-graph API — Scene, PerspectiveCamera, WebGLRenderer, Mesh, MeshStandardMaterial — and ships hundreds of add-ons under three/addons/ for GLTF loading, camera controls, and post-processing. It powers product configurators, data visualisations, browser games, and interactive marketing sites.
What the skills cover
- threejs-fundamentals —
Scene,PerspectiveCameraandOrthographicCamera,WebGLRendererconfiguration, theObject3Dhierarchy,Vector3/Matrix4/Quaternion/Eulermath,Clock-driven loops, responsive canvas resizing, and proper disposal on cleanup. - threejs-geometry — built-in primitives, custom
BufferGeometryandBufferAttribute, interleaved buffers, path-based and text geometry,EdgesGeometry,Points,Line, andInstancedMeshfor high-count rendering. - threejs-materials —
MeshStandardMaterialandMeshPhysicalMaterialPBR (with glass and car-paint recipes), Basic/Lambert/Phong/Toon/Normal/Depth materials,ShaderMaterialvsRawShaderMaterial, and environment maps. - threejs-lighting —
AmbientLight,HemisphereLight,DirectionalLight,PointLight,SpotLight, andRectAreaLight; shadow-map setup and optimisation; contact shadows; image-based lighting; light probes and helpers. - threejs-textures — color space, wrapping modes, repeat/offset/rotation, filtering and mipmaps, data/canvas/video/compressed textures, cube maps, equirectangular-to-cubemap conversion, and HDR.
- threejs-animation —
AnimationClip,AnimationMixer,AnimationAction, keyframe track types and interpolation modes, skeletal animation and bone attachments, morph targets, and additive blending. - threejs-loaders —
GLTFLoaderwith Draco and KTX2,LoadingManagerprogress, HDR/EXR plusPMREMGenerator, OBJ/MTL/FBX/STL/PLY, and promisified multi-asset loading. - threejs-shaders — GLSL uniforms and varyings, vertex displacement, fresnel, rim lighting, noise and dissolve effects, gradients, and extending built-in materials with
onBeforeCompile. - threejs-postprocessing —
EffectComposer,UnrealBloomPassand selective bloom, FXAA and SMAA, SSAO, depth of field, film grain, vignette, pixelation, outline, and customShaderPasseffects like chromatic aberration. - threejs-interaction —
Raycasterclick and hover detection, touch input,OrbitControls/FlyControls/FirstPersonControls/PointerLockControls/MapControls,TransformControls,DragControls, and box-selection systems.
How it works
Each skill is a single SKILL.md with YAML frontmatter — a name and a description that states exactly when to activate it. Copy the folders into your project’s .claude/skills/ directory and the agent loads the matching file on demand: ask for "a GLTF model with Draco compression that plays its animations" and it pulls in threejs-loaders and threejs-animation.
Every file follows the same shape — Quick Start, Core Concepts, Common Patterns, Performance Tips, See Also — so the agent reads a runnable example first and the API detail underneath, and the See Also links let it pull in a related skill when a task spans two areas.
Who it is for
Front-end and creative developers building 3D on the web with Claude Code, Cursor, or any agent that reads the Agent Skills format. It assumes you know JavaScript and a bundler; it does not assume you know the Three.js API.
What you can build
Product configurators, 3D portfolios and landing pages, scroll-driven WebGL scenes, GLTF model viewers, browser games, architectural walkthroughs, particle systems, custom shader effects, and data visualisations in three dimensions.
Why it matters
Three.js renames things as it evolves: outputEncoding became outputColorSpace, examples/jsm/ imports became the three/addons/ alias, and the legacy lighting mode was removed. Models trained on years of mixed tutorials blend all of those eras together, so agents confidently emit constructor signatures, property names, and import paths that no longer exist — code that fails at the first run.
These ten files were audited against the r160+ documentation for correct class names, constructor signatures, property names, and import paths, so what your agent writes compiles the first time.
What's Included
- threejs-fundamentals — scene, cameras, renderer, Object3D hierarchy, math utilities, cleanup
- threejs-geometry — primitives, BufferGeometry, text and path shapes, Points, Lines, InstancedMesh
- threejs-materials — PBR, Physical, Toon, Normal, Depth, ShaderMaterial, environment maps
- threejs-lighting — all six light types, shadow setup and optimisation, IBL, light probes
- threejs-textures — color space, wrapping, filtering, video/canvas/compressed textures, cube maps, HDR
- threejs-animation — AnimationMixer, clips and actions, skeletal animation, morph targets, blending
- threejs-loaders — GLTF with Draco and KTX2, LoadingManager, PMREMGenerator, OBJ/FBX/STL/PLY, async patterns
- threejs-shaders — GLSL uniforms and varyings, fresnel, displacement, dissolve, onBeforeCompile injection
- threejs-postprocessing — EffectComposer, bloom, SSAO, DOF, FXAA/SMAA, outline, custom ShaderPass
- threejs-interaction — Raycaster picking, touch input, six control types, TransformControls, DragControls
- A consistent per-skill layout: Quick Start, Core Concepts, Common Patterns, Performance Tips, See Also
- Cross-references between skills so the agent can pull in a related file mid-task
Installation
1. Get the files
Clone the repository (or use the Download button above and unzip it):
git clone https://github.com/CloudAI-X/threejs-skills.gitThe repository README lists a different clone URL (
pinkforest/threejs-playground). Use the URL above — that is where these skill files live.
2. Copy the skills into your project
Claude Code loads skills from .claude/skills/:
mkdir -p .claude/skills
cp -R threejs-skills/skills/* .claude/skills/Keep only the ones you need — each folder is self-contained:
cp -R threejs-skills/skills/threejs-fundamentals .claude/skills/
cp -R threejs-skills/skills/threejs-shaders .claude/skills/Or add the repo as a submodule if you want to track upstream updates:
git submodule add https://github.com/CloudAI-X/threejs-skills.git vendor/threejs-skills3. Install Three.js in your project
The skills document the API; they do not bundle the library.
npm install three4. Use it
Start a new session and describe what you want in plain language:
Create a Three.js scene with a rotating cube, orbit controls, and a bloom pass.
The agent matches your request against each skill’s frontmatter description and loads only the relevant files.
Requirements
- An AI coding agent that reads the Agent Skills format (Claude Code, Cursor, or similar)
- A project using Three.js r160 or newer (npm install three)
- Working JavaScript knowledge and a bundler such as Vite or webpack
- Git, or the Download button on this page, to fetch the skill files
- A browser with WebGL support to run what you build
Changelog
Initial marketplace listing of the CloudAI-X Three.js skills collection (10 skills, audited against Three.js r160+).
FAQs
Related Skills
Frontend Design
Generate distinctive, production-grade frontend UIs — components, pages, dashboards, and landing pages — that avoid generic AI aesthetics.
Web Artifacts Builder
Build elaborate multi-component claude.ai artifacts with React, Tailwind CSS, and shadcn/ui, bundled to one HTML file.
MCP Builder
Build high-quality MCP servers in Python (FastMCP) or TypeScript (MCP SDK) with well-designed tools and evals.
Tailwind CSS v4 Docs Skill
Give your AI agent the official Tailwind CSS v4 docs on demand — synced locally, with a v4 gotchas list and an engineering playbook.
Official Skills for Next.js, React, and Vercel Deployments
Vercel's official agent skills that teach AI coding agents to build, optimize, and ship Next.js & React apps the right way
Supabase Agent Skills
Official Supabase skills that teach AI agents to build, query, and secure Supabase apps correctly.