Skill library

Agent skill Web motion

Three.js Geometry

Use spatial graphics, scenes or materials to support a web experience.

  • 3D / WebGL
  • Three.js

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add CloudAI-X/threejs-skills --skill threejs-geometry --agent claude-code --yes

Check this file in your project.claude/skills/threejs-geometry/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add CloudAI-X/threejs-skills --skill threejs-geometry

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Bring an existing Three.js project and a local preview. Check the installed version and renderer first.

View operation manual

What this skill helps with

  • Use spatial graphics, scenes or materials to support a web experience.

Good for

  • 3D on the web
Inputs
One shared shape and material, an item list and transforms
Exercise
Render repeated scene elements with InstancedMesh
Acceptance
Compare original and instanced views at the same camera angle. Verify every item retains its expected transform and compare renderer.info.render.calls under the same fixture.
Skill name
threejs-geometry

Keep the change to a scene you can compare

Open-ended request

Make the whole 3D scene better.

Without a baseline and scoped inputs, you cannot tell which adjustment solved the problem.

A reproducible outcome

  1. Render repeated scene elements with InstancedMesh
  2. One shared shape and material, an item list and transforms

threejs-geometry operation manual

Render repeated scene elements with InstancedMesh

One shared shape and material, an item list and transforms

  1. Check the current scene

    Check the current scene

    Prompt · Step 1
    Use CloudAI-X’s threejs-geometry and read the installed SKILL.md. The scope is [Project and preview route]. Inspect [Repeated props scene] and count meshes that genuinely share geometry and material. Record current draw calls and how positions and rotations are derived.
  2. Apply the documented technique

    Render repeated scene elements with InstancedMesh

    Prompt · Step 2
    Use CloudAI-X’s threejs-geometry and read the installed SKILL.md. The scope is [Project and preview route]. Represent [Shared prop] with InstancedMesh. Apply each item’s matrix using setMatrixAt and mark instanceMatrix.needsUpdate after changes. Preserve per-item transforms and recompute bounds when changing placement requires it.
  3. Verify the rendered behavior

    Verify the rendered behavior

    • Compare original and instanced views at the same camera angle. Verify every item retains its expected transform and compare renderer.info.render.calls under the same fixture.
    Prompt · Step 3
    Use CloudAI-X’s threejs-geometry and read the installed SKILL.md. The scope is [Project and preview route]. Compare original and instanced views at the same camera angle. Verify every item retains its expected transform and compare renderer.info.render.calls under the same fixture.

Look up a specific implementation problem

Ask the assistant to use the current preview and installed dependency as evidence.

What inputs are required?threejs-geometry
Command or reference
SKILL.md
Examples
One shared shape and material, an item list and transforms
How do I verify the real effect?Browser
Command or reference
Render repeated scene elements with InstancedMesh
Examples
Compare original and instanced views at the same camera angle. Verify every item retains its expected transform and compare renderer.info.render.calls under the same fixture.

Troubleshooting and FAQ

Why may an example fail in my project?

Confirm Three.js and its addons use matching versions and check the renderer required by that example.

How do I judge the result?

Compare original and instanced views at the same camera angle. Verify every item retains its expected transform and compare renderer.info.render.calls under the same fixture.