threejs
Skill1 starsChanged 2 months agoUnlicenseView on GitHub
Three.js 3D graphics development covering fundamentals, geometry, materials, lighting, textures, animation, loaders, shaders, interaction, and postprocessing. Use when building 3D web experiences, creating WebGL content, working with Three.js scenes, or needing help with 3D rendering concepts.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- getedgehq/skillstheir own version, first seen Oct 4, 2026
- juninmd/skillstheir own version, first seen Sep 15, 2026
- Leo-Atienza/atlas-claudetheir own version, first seen Jul 24, 2026
- duongthinh03/portfoliotheir own version, first seen Jun 24, 2026
- jhy0285/monofieldtheir own version, first seen May 29, 2026
- truongtv22/theone-training-skillstheir own version, first seen Nov 19, 2025
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- mrgoonie/claudekit-skills★ 2.2ksame name
- duongthinh03/portfolio★ 85same name
- jhy0285/monofield★ 4same name
- Leo-Atienza/atlas-claude★ 4same name
- getedgehq/skills★ 3same name
- juninmd/skills★ 2same name
- truongtv22/theone-training-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository71 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ad-copy-writerSkill
- ae-inspect-describeSkill
- algorithmic-artSkill
- animation-directorSkill
- brainstorming-and-ideatingSkill
- brainstorming-research-ideasSkill
- brainstormingSkill
- brief-to-tasksSkill
- canvas-designSkill
- cli-designSkill
- cli-output-hierarchySkill
- commit-messageSkill
- craft-uiSkill
- creative-directorSkill
- design-briefSkill
- design-flowSkill
- design-mock-auditSkill
- design-reviewSkill
- design-system-patternsSkill
- design-tokensSkill
- deslopifySkill
- diagnoseSkill
- doc-restructureSkill
- eval-criticSkill
- formatting-open-markdownsSkill
- frontend-designSkill
- frontend-slidesSkill
- gdocs-tab-writerSkill
- gemini-apiSkill
- gif-creationSkill
- github_repo_researchSkill
- grill-meSkill
- grill-with-docsSkill
- hallmarkSkill
- handoffSkill
- html-presentationSkill
- humanizerSkill
- improve-codebase-architectureSkill
- information-architectureSkill
- install-skill-from-githubSkill
- markdown-output-hierarchySkill
- marketing-psychologySkill
- merge-latestSkill
- modern-web-performanceSkill
- motion-designSkill
- pdf-readerSkill
- pm-brainstormingSkill
- pm-discovery-brainstormSkill
- product-marketingSkill
- prototypeSkill
- pull-requestSkill
- ralph_loopSkill
- react-best-practicesSkill
- skill-creatorSkill
- skill-optSkill
- steve-voiceSkill
- systematic-debuggingSkill
- tastemaker-styleSkill
- tech-doc-codelabSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
All scene objects inherit from Object3D.
- Very specific: line 271
Use InstancedMesh for many identical objects
- Very specific: line 275
Use renderer.info to monitor draw calls and triangles
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Three.js Skills
A comprehensive guide to Three.js 3D graphics development. Covers the full spectrum from scene setup to advanced postprocessing.
Fundamentals
Scene Setup
import * as THREE from "three";
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, width / height, 0.1, 1000);
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(width, height);
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
document.body.appendChild(renderer.domElement);
function animate() {
requestAnimationFrame(animate);
renderer.render(scene, camera);
}
animate();Cameras
- PerspectiveCamera(fov, aspect, near, far) — realistic perspective
- OrthographicCamera(left, right, top, bottom, near, far) — no perspective distortion, good for 2D/isometric
Object3D Hierarchy
All scene objects inherit from Object3D. Key properties: - position (Vector3),
rotation (Euler), scale (Vector3) - add(child), remove(child) —
parent-child transforms - traverse(callback) — walk the subtree
Geometry
Built-in Geometries
new THREE.BoxGeometry(width, height, depth);
new THREE.SphereGeometry(radius, widthSegments, heightSegments);
new THREE.PlaneGeometry(width, height);
new THREE.CylinderGeometry(radiusTop, radiusBottom, height);
new THREE.TorusGeometry(radius, tube, radialSegments, tubularSegments);BufferGeometry (Custom)
const geometry = new THREE.BufferGeometry();
const vertices = new Float32Array([...]);
geometry.setAttribute("position",
new THREE.BufferAttribute(vertices, 3));
geometry.computeVertexNormals();InstancedMesh (Performance)
const mesh = new THREE.InstancedMesh(geometry, material, count);
const matrix = new THREE.Matrix4();
for (let i = 0; i < count; i++) {
matrix.setPosition(x, y, z);
mesh.setMatrixAt(i, matrix);
}
mesh.instanceMatrix.needsUpdate = true;Materials
Standard PBR
new THREE.MeshStandardMaterial({
color: 0xff0000,
roughness: 0.5,
metalness: 0.5,
map: texture, // albedo
normalMap: normalTex, // surface detail
envMap: envTexture, // reflections
});Material Types (simple → complex)
- MeshBasicMaterial — unlit, fastest
- MeshPhongMaterial — Blinn-Phong shading
- MeshStandardMaterial — PBR (recommended default)
- MeshPhysicalMaterial — PBR + clearcoat, transmission, sheen
- ShaderMaterial — custom GLSL
Lighting
Light Types
new THREE.AmbientLight(0x404040); // uniform fill
new THREE.DirectionalLight(0xffffff, 1); // sun-like, parallel rays
new THREE.PointLight(0xffffff, 1, 100); // omnidirectional
new THREE.SpotLight(0xffffff, 1, 100, angle); // cone
new THREE.HemisphereLight(sky, ground, 1); // sky+groundShadows
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
light.castShadow = true;
light.shadow.mapSize.set(2048, 2048);
mesh.castShadow = true;
ground.receiveShadow = true;Textures
Loading
const loader = new THREE.TextureLoader();
const texture = loader.load("texture.jpg");
texture.colorSpace = THREE.SRGBColorSpace; // for color textures
texture.wrapS = texture.wrapT = THREE.RepeatWrapping;
texture.repeat.set(2, 2);Environment Maps
import { RGBELoader } from "three/addons/loaders/RGBELoader.js";
new RGBELoader().load("env.hdr", (texture) => {
texture.mapping = THREE.EquirectangularReflectionMapping;
scene.environment = texture;
scene.background = texture;
});Animation
AnimationMixer (GLTF animations)
const mixer = new THREE.AnimationMixer(model);
const action = mixer.clipAction(clip);
action.play();
// In render loop:
mixer.update(delta);Procedural Animation
const clock = new THREE.Clock();
function animate() {
const elapsed = clock.getElapsedTime();
mesh.position.y = Math.sin(elapsed) * 0.5;
mesh.rotation.y += 0.01;
}Loaders
GLTF/GLB (Recommended 3D format)
import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";
import { DRACOLoader } from "three/addons/loaders/DRACOLoader.js";
const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath("/draco/");
const gltfLoader = new GLTFLoader();
gltfLoader.setDRACOLoader(dracoLoader);
gltfLoader.load("model.glb", (gltf) => {
scene.add(gltf.scene);
// gltf.animations — AnimationClip[]
});Shaders
ShaderMaterial
new THREE.ShaderMaterial({
uniforms: {
uTime: { value: 0 },
uColor: { value: new THREE.Color(0xff0000) },
},
vertexShader: `
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
}
`,
fragmentShader: `
uniform float uTime;
varying vec2 vUv;
void main() {
gl_FragColor = vec4(vUv, sin(uTime) * 0.5 + 0.5, 1.0);
}
`,
});Interaction
Raycasting
const raycaster = new THREE.Raycaster();
const pointer = new THREE.Vector2();
window.addEventListener("click", (event) => {
pointer.x = (event.clientX / window.innerWidth) * 2 - 1;
pointer.y = -(event.clientY / window.innerHeight) * 2 + 1;
raycaster.setFromCamera(pointer, camera);
const intersects = raycaster.intersectObjects(scene.children);
if (intersects.length > 0) {
const hit = intersects[0];
// hit.object, hit.point, hit.face, hit.distance
}
});OrbitControls
import { OrbitControls } from "three/addons/controls/OrbitControls.js";
const controls = new OrbitControls(camera, renderer.domElement);
controls.enableDamping = true;
// In render loop: controls.update();Postprocessing
EffectComposer
import { EffectComposer } from "three/addons/postprocessing/EffectComposer.js";
import { RenderPass } from "three/addons/postprocessing/RenderPass.js";
import { UnrealBloomPass } from "three/addons/postprocessing/UnrealBloomPass.js";
const composer = new EffectComposer(renderer);
composer.addPass(new RenderPass(scene, camera));
composer.addPass(new UnrealBloomPass(
new THREE.Vector2(width, height), 1.5, 0.4, 0.85
));
// Replace renderer.render() with:
composer.render();Performance Tips
- Use
InstancedMeshfor many identical objects - Merge static geometries with
BufferGeometryUtils.mergeGeometries() - Limit shadow-casting lights and shadow map resolution
- Dispose textures, geometries, and materials when removing objects
- Use
renderer.infoto monitor draw calls and triangles - Set
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2))
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

