threejs-fundamentals
Skill by CloudAI-X
Explains how to set up a Three.js scene from scratch, including scenes and fog, cameras, the renderer and tone mapping, the animation loop and object transforms. It is for developers building 3D scenes with WebGL or WebGPU.
Install threejs-fundamentals
Built from the published package, never by AI.
git clone --depth 1 https://github.com/CloudAI-X/threejs-skills /tmp/threejs-skills && mkdir -p ~/.claude/skills && cp -r /tmp/threejs-skills/skills/threejs-fundamentals ~/.claude/skills/threejs-fundamentalsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/CloudAI-X/threejs-skills /tmp/threejs-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/threejs-skills/skills/threejs-fundamentals ~/.gemini/antigravity-cli/skills/threejs-fundamentalsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install threejs-fundamentals in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
threejs-fundamentals is an agent skill that covers the core setup of a Three.js scene. It explains how to set a background color and fog on a scene, and how to configure PerspectiveCamera, OrthographicCamera, ArrayCamera and CubeCamera. It also covers WebGLRenderer options, pixel ratio, tone mapping and shadow maps, plus a frame loop, the Object3D hierarchy, transforms and core math classes such as Vector3, Matrix4, Quaternion and Euler.
The skill targets three.js r186. Its examples use WebGLRenderer, and a separate section covers WebGPURenderer with TSL, including the import map entries it needs. It is written for developers who are creating a scene from scratch, configuring a camera or renderer, handling resize, or arranging objects.
Written from the project's SKILL.md and checked against it.
What it can do
- Scene background and fogSets a solid background color and linear or exponential fog on a scene.
- Camera setupExplains PerspectiveCamera, OrthographicCamera, ArrayCamera and CubeCamera configuration.
- Renderer configurationCovers WebGLRenderer options, pixel ratio, tone mapping and shadow map types.
- Animation loopShows a frame loop using THREE.Timer and renderer.setAnimationLoop.
- Object hierarchyCovers Object3D, Group and Mesh, parenting with add and attach, layers and visibility.
- TransformsExplains position, rotation, quaternion and scale, plus world-space queries.
- Math utilitiesCovers common Vector3, Matrix4, Quaternion and Euler operations.
- WebGPU and TSL setupShows WebGPURenderer setup with the three/webgpu and three/tsl import map entries.
What you need
- Three.js r186 (three@0.186.0)
- A browser that loads ES modules, through an import map or a bundler
- Import map entries for three/webgpu and three/tsl when using WebGPURenderer
Try asking
- Set up a Three.js scene with a cube, a directional light and a resize handler
- Configure a Three.js PerspectiveCamera and WebGLRenderer with ACES tone mapping
- Show me how to parent objects and keep their world transform in Three.js
Good to know
- Most examples use WebGLRenderer; only the WebGPU and TSL section uses WebGPURenderer.
- ArrayCamera viewport units differ between WebGLRenderer and WebGPURenderer.
- A plain unmapped texture as scene background is drawn as a flat quad, not a skybox.
- Lambert and Phong materials receive scene environment lighting on WebGLRenderer only.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/threejs-fundamentals/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md23 KB
Alternatives to threejs-fundamentals
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
threejs-fundamentals: common questions
Which Three.js version does this skill target?
It targets three.js r186. The import map examples load three@0.186.0 from jsDelivr.
Does it cover WebGPU?
Yes. A section covers WebGPU and TSL and uses WebGPURenderer, with its own import map entries.
Which renderer do the examples use?
Most examples use WebGLRenderer. The WebGPU and TSL section uses WebGPURenderer.
How do I install threejs-fundamentals?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is threejs-fundamentals free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is threejs-fundamentals safe to use?
It scores 86 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to threejs-fundamentals?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
