npx skills add ...
npx skills add freshtechbro/claudedesignskills --skill threejs-webgl
Comprehensive skill for Three.js 3D web development. Use this skill when building interactive 3D scenes, WebGL/WebGPU applications, product configurators, 3D visualizations, or immersive web experiences. Triggers on tasks involving Three.js, 3D rendering, scenes, cameras, meshes, materials, lights, animations, textures, or WebGL/WebGPU rendering.
npx skills add freshtechbro/claudedesignskills --skill threejs-webgl
Three.js is the industry-standard JavaScript library for creating 3D graphics in web browsers using WebGL and WebGPU. This skill provides comprehensive guidance for building performant, interactive 3D experiences including scenes, cameras, renderers, geometries, materials, lights, textures, and animations.
Three.js uses a hierarchical scene graph where all 3D objects are organized in a tree structure:
Every Three.js application requires these core elements:
For hundreds/thousands of identical objects, use InstancedMesh (see pattern above).
Three.js automatically culls objects outside the camera's view. Ensure objects have correct bounding spheres:
Always update camera aspect ratio and projection matrix when window resizes.
Remember to enable shadows on renderer, lights, and objects.
material.polygonOffset = true with material.polygonOffsetFactorAlways call .dispose() on geometries, materials, textures, and renderers when no longer needed.
This skill includes bundled resources to accelerate Three.js development:
api_reference.md: Quick API reference for core classes (Scene, Camera, Renderer, etc.)materials_guide.md: Comprehensive material types and propertiesoptimization_checklist.md: Performance optimization strategiessetup_scene.py: Generate boilerplate Three.js scene setup codetexture_optimizer.py: Batch optimize textures for web (resize, compress)gltf_validator.py: Validate glTF models before usestarter_scene/: Complete HTML/JS boilerplate projectshaders/: Custom GLSL shader examples (vertex, fragment)hdri/: Environment maps for PBR lightingdraco/: DRACO decoder for compressed modelsUse GPUComputationRenderer for particle simulations, cloth physics, etc.
Use this skill when:
For React integration, use the react-three-fiber skill. For animation, combine with the gsap-scrolltrigger skill. For UI animations, use the motion-framer skill.