threejs-fundamentals is the starting point of the three.js skill set. It covers creating a scene from scratch: scene background and fog, perspective, orthographic, array and cube cameras, WebGLRenderer options and tone mapping, the Timer-based animation loop, and Object3D hierarchies and transforms.
It includes import map snippets for pages without a bundler, for both WebGLRenderer and WebGPURenderer, and a section for the WebGPU and TSL path.
What You Get
- A runnable quick start with renderer, camera, lit cube, Timer loop and resize handler
- Import maps for WebGL and WebGPU pages that run without a bundler
- Reference examples for perspective, orthographic, array and cube cameras
- Renderer configuration for antialiasing, pixel ratio, tone mapping and shadows
- Object3D guidance on hierarchy, world transforms, layers and traversal
Common Use Cases
- Creating a first three.js scene in a new project
- Fixing a stretched canvas by handling resize correctly
- Choosing between perspective and orthographic cameras
- Setting up tone mapping and pixel ratio on a renderer
- Arranging objects in groups and reading their world positions
What Makes It Unique
It is written against one pinned release, r186, with import paths and class names checked against the published package. It uses the Timer class and setAnimationLoop and flags outdated habits. It also sits first in a set of thirteen skills that share a layout and link to each other for loading, lighting, materials and performance.
Under The Hood
The skill is a single SKILL.md of explanation and JavaScript examples, with no scripts of its own, and it tells the agent to run no commands. The agent reads it and writes three.js code into your project. The import map examples point a browser page at three.js files on a public CDN, so pages built from them fetch the library when opened; the skill itself fetches nothing.