Skill library

Agent skill Web motion

Three.js Shaders

Create a visual effect for a web page or interactive component.

  • Visual effects
  • 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-shaders --agent claude-code --yes

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

Other ways to install
  • Choose an assistant interactively

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

    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

  • Create a visual effect for a web page or interactive component.

Good for

  • Interactive visual effects
Inputs
WebGL-rendered mesh, time or input uniform and fallback
Exercise
Add a small GLSL surface effect on WebGL
Acceptance
Check shader compile output, inspect the visual at a fixed uniform value and exercise its change. Verify it can be disabled cleanly and record the exact vendor renderer used.
Skill name
threejs-shaders

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. Add a small GLSL surface effect on WebGL
  2. WebGL-rendered mesh, time or input uniform and fallback

threejs-shaders operation manual

Add a small GLSL surface effect on WebGL

WebGL-rendered mesh, time or input uniform and fallback

  1. Check the current scene

    Check the current scene

    Prompt · Step 1
    Use CloudAI-X’s threejs-shaders and read the installed SKILL.md. The scope is [Project and preview route]. Identify the renderer used by [Mesh] before choosing shader code. Read the installed ShaderMaterial guidance and identify the vertex inputs and color-space settings.
  2. Apply the documented technique

    Add a small GLSL surface effect on WebGL

    Prompt · Step 2
    Use CloudAI-X’s threejs-shaders and read the installed SKILL.md. The scope is [Project and preview route]. Use ShaderMaterial on [Preview mesh] to test a single effect driven by [Uniform]. Update the uniform value without recreating the material. Keep a simple original material path for fallback and scope the changes to the preview.
  3. Verify the rendered behavior

    Verify the rendered behavior

    • Check shader compile output, inspect the visual at a fixed uniform value and exercise its change. Verify it can be disabled cleanly and record the exact vendor renderer used.
    Prompt · Step 3
    Use CloudAI-X’s threejs-shaders and read the installed SKILL.md. The scope is [Project and preview route]. Check shader compile output, inspect the visual at a fixed uniform value and exercise its change. Verify it can be disabled cleanly and record the exact vendor renderer used.

Look up a specific implementation problem

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

What inputs are required?threejs-shaders
Command or reference
SKILL.md
Examples
WebGL-rendered mesh, time or input uniform and fallback
How do I verify the real effect?Browser
Command or reference
Add a small GLSL surface effect on WebGL
Examples
Check shader compile output, inspect the visual at a fixed uniform value and exercise its change. Verify it can be disabled cleanly and record the exact vendor renderer used.

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?

Check shader compile output, inspect the visual at a fixed uniform value and exercise its change. Verify it can be disabled cleanly and record the exact vendor renderer used.