Skip to content
Skill

Threejs gltf loading

Loads glTF/GLB models into three.js with compressed assets and clip animation

Threejs gltf loading is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
38
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Threejs gltf loading

This skill guides an agent through importing glTF and GLB models into a three.js r187 scene and getting their animations to play. It covers GLTFLoader setup, attaching DRACO, Meshopt and KTX2 decoders for compressed geometry and textures, and driving clips with an AnimationMixer, including cross-fades between actions. It also explains how to frame a loaded model and find named parts so game or app code can control them.

The skill suggests running the gltf-transform CLI to inspect and validate a file before writing loader code, then sets up the matching decoders. It includes a runtime probe that checks for a non-zero mesh count and an advancing mixer, and a troubleshooting list for common failures such as invisible or mis-scaled models, decoder files returning 404, and clones sharing one skeleton.

It expects a JavaScript or TypeScript three.js project and the gltf-transform command-line tool available through npx. Scene setup and lighting are handled by sibling skills, and a reference file covers progress bars, many animated copies and exporter checklists.

When your agent uses it

Loads glTF/GLB models into three.js r187 and plays their animations: GLTFLoader, DRACO, Meshopt and KTX2 decoders, AnimationMixer cross-fades and SkeletonUtils clones. Use when a model is invisible or tiny, decoder files 404, animations never play, or clones share one skeleton. Not for scene setup (`threejs-scene-setup`) or lighting (`threejs-materials-lighting`).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (15 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

Or copy only this skill to ~/.claude/skills/threejs-gltf-loading:

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

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

Claude Code docs on skills

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

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

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

Codex docs on skills

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

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

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

Cursor docs on skills

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

gemini skills install https://github.com/shinyobjectz/raea-skills.git --path skills/threejs/pack/threejs-gltf-loading

Or copy the folder to ~/.gemini/skills/threejs-gltf-loading yourself.

Gemini CLI docs on skills

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

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

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

VS Code docs on skills

Get the folder:

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

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

The SKILL.md format

What it does

GLTFLoader setup
Loads glTF and GLB files and returns the scene graph and animation clips.
Compression decoders
Attaches DRACO, Meshopt and KTX2 decoders for compressed geometry and textures.
Animation mixing
Plays clips with AnimationMixer and cross-fades between actions.
File inspection and validation
Uses gltf-transform to list extensions, clips and texture sizes, and to validate output.
Named part lookup
Finds nodes by name and keeps named parts intact when optimizing models.
Troubleshooting guide
Lists common loader, decoder and skeleton-sharing problems with fixes.

Good for

  • Load a character model and play its run and idle animations
  • Add DRACO or Meshopt decoding so a compressed model loads in the browser
  • Cross-fade between animation clips when a character changes state
  • Fix a model that appears invisible or far too small in the scene
  • Spawn many animated enemies that each move independently
  • Shrink a glTF file while keeping named parts available for code

Threejs gltf loading FAQ

Which three.js version does this target?

The patterns target three.js r187, and the skill notes that existing projects keep their pinned release unless the user asks to upgrade.

What does the skill need before Threejs gltf loading runs?

It expects a JavaScript or TypeScript three.js project. The inspection and optimization steps use the gltf-transform CLI through npx, and the runtime probe may be run through Playwright or the browser console.

When should I use Threejs gltf loading instead of the scene setup skill?

Use it for importing models, playing clips and fixing models that do not appear. Renderer, camera and loop setup belong to threejs-scene-setup, and lighting and materials belong to threejs-materials-lighting.

Why do my cloned models animate together?

A plain clone shares the skeleton. The skill recommends SkeletonUtils.clone for skinned meshes and a separate mixer for each clone.

How do I install Threejs gltf loading in Claude Code?

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

Does Threejs gltf loading 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 gltf loading?

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 gltf loading?

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

Where this comes from

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

More from shinyobjectz/raea-skills

  1. Check and consult a project's generated vocabulary before naming anything

    • Open source
    • 38 GitHub stars
    • Knowledge and memory
  2. Blank template for authoring new raea skills with a standard section layout

    • Open source
    • 38 GitHub stars
    • Developer tools
  3. Lets an agent write and render video, motion graphics and 3D scenes as React code

    • Open source
    • 38 GitHub stars
    • Design and media
  4. Routes Bevy 0.20 tasks to the right sibling skill and pins the engine version

    • Open source
    • 38 GitHub stars
    • Developer tools
  5. Guides an agent through accessibility design and audits for Bevy 0.20 games

    • Open source
    • 38 GitHub stars
    • Developer tools
  6. Guides an agent through Bevy 0.20 animation: graphs, blending, events and easing

    • Open source
    • 38 GitHub stars
    • Developer tools