# Threejs

> Threejs is an open-source agent skill for design and media. Guides an agent through building and debugging plain three.js r187 scenes and glTF models. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/shinyobjectz/raea-skills/tree/main/skills/threejs
- **Repository:** https://github.com/shinyobjectz/raea-skills
- **GitHub stars:** 38
- **License:** Apache-2.0
- **Skill name:** threejs
- **Collection:** https://github.com/shinyobjectz/raea-skills
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill covers the three.js r187 workflow for standalone pages: import maps, renderer and camera setup, the animation loop, resizing, orbit controls and the WebGPU renderer. It also covers loading glTF and GLB models with Draco, Meshopt and KTX2 decoders and playing their animations, plus materials, lights, shadows, environment lighting and tone mapping.

Each part is written as a set of symptom-to-fix notes, such as a black mesh, washed-out colour or missing or blocky shadows, with a Verify section to check the result. It also records traps found while loading a rigged Blender character, including bone names losing their dots, skinned meshes being culled too early and fitting shadow cameras to animated characters.

The skill is aimed at three.js work outside the raea framework; compositions built with React Three Fiber or TSL node materials are routed to a separate raea skill. The bundled parts are instruction documents, and the content does not describe any scripts.

## When your agent uses it

> Plain three.js r187 scenes: setup (import maps, renderer, camera, animation loop, resize, controls, WebGPU renderer), glTF and GLB loading with Draco, Meshopt and KTX2 and animation playback, and materials, lights, shadows, environment lighting and tone mapping, each with a symptom-to-fix list (a black mesh, washed-out colour, missing or blocky shadows). Use when writing or debugging a three.js page or scene outside raea. three.js inside a raea composition goes through the raea skill. From gamedev-skills' awesome-gamedev-agent-skills (Apache-2.0).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/threejs)
- [License: Apache-2.0](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/threejs)

## Features

- **Scene setup walkthrough:** Covers import maps, renderer, camera, animation loop, resizing, controls and the WebGPU renderer.
- **glTF and GLB loading:** Explains loading models with Draco, Meshopt and KTX2 decoders and playing their clips.
- **Materials and lighting:** Covers standard and physical materials, lights, shadows, environment lighting and tone mapping.
- **Symptom-to-fix troubleshooting:** Lists common rendering problems such as black meshes, washed-out colour and blocky shadows with fixes.
- **Blender character pitfalls:** Documents bone naming, skinned mesh culling and shadow fitting for animated characters.
- **Headless model checks:** Describes checking clips, bounds and names in Node before opening a browser page.

## Good for

- Set up a three.js scene with a camera, renderer and resize handling
- Load a Draco-compressed glTF model and play its animations
- Fix a three.js mesh that renders black
- Make shadows sharper for a directional light in a three.js scene
- Adjust tone mapping so an imported model's colours look right

## Install

### Claude Code

This skill ships in the `raea` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add shinyobjectz/raea-skills
/plugin install raea@raea
```

Or copy only this skill to `~/.claude/skills/threejs`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/threejs &&
cp -R "$tmp/skills/threejs" ~/.claude/skills/threejs &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/threejs` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/threejs` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/threejs &&
cp -R "$tmp/skills/threejs" ~/.agents/skills/threejs &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/threejs` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/threejs` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/threejs &&
cp -R "$tmp/skills/threejs" ~/.cursor/skills/threejs &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/threejs` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/shinyobjectz/raea-skills.git --path skills/threejs
```

Or copy the folder to `~/.gemini/skills/threejs` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/threejs`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/threejs &&
cp -R "$tmp/skills/threejs" ~/.copilot/skills/threejs &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/threejs` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git
```

Then copy `raea-skills/skills/threejs` into your agent's skills folder as `threejs`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Threejs apply?

It is meant for writing or debugging a three.js page or scene outside raea. three.js work inside a raea composition goes through the raea skill instead.

### Which three.js version does Threejs target?

It targets three.js r187 and records the release it was last checked against.

### Does Threejs include scripts?

No scripts are listed for this skill; it consists of instruction files and reference notes.

### How do I install Threejs in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/threejs to use it in all your projects, or to .claude/skills/threejs in one project. Or install the raea plugin, which includes it: /plugin marketplace add shinyobjectz/raea-skills, then /plugin install raea@raea.

### Does Threejs run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Threejs?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Threejs?

The closest alternatives to Threejs are Threejs gltf loading, Threejs scene setup, Threejs materials lighting, Game engine and Blender pbr materials.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Threejs gltf loading](https://ai-powered.com/skills/threejs-gltf-loading): Threejs gltf loading is an open-source agent skill for developer tools.
- [Threejs scene setup](https://ai-powered.com/skills/threejs-scene-setup): Threejs scene setup is an open-source agent skill for developer tools.
- [Threejs materials lighting](https://ai-powered.com/skills/threejs-materials-lighting): Threejs materials lighting is an open-source agent skill for developer tools.
- [Game engine](https://ai-powered.com/skills/game-engine): Game engine is an open-source agent skill for design and media.
- [Blender pbr materials](https://ai-powered.com/skills/blender-pbr-materials): Blender pbr materials is an open-source agent skill for design and media.
- [Blender](https://ai-powered.com/skills/blender): Blender is an open-source agent skill for design and media.
- [Render an avatar](https://ai-powered.com/skills/render-an-avatar): Render an avatar is an open-source agent skill for design and media.
- [Blender geometry nodes](https://ai-powered.com/skills/blender-geometry-nodes): Blender geometry nodes is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/threejs
