Skip to content
SkillModel-led5,893 tokens in use

threejs-fundamentals

Gives an AI coding agent current three.js r186 knowledge of scene setup, cameras, renderer options, the animation loop and object transforms.

4,322 stars on the repository MIT LicenseCloudAI-X/threejs-skills · skills/threejs-fundamentals
npx skills add cloudai-x/threejs-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing threejs-fundamentals costs

70tokens idle
5,893tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter12/15
  • Structure17/25
  • Examples15/15
  • Output10/15
  • Size11/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Fair
  • Development activity68
  • Maintenance40
  • Community52
  • Maturity32
  • Momentum40

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.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers