Agent skill Web motion
Three.js Shaders
Create a visual effect for a web page or interactive component.
Install the skill
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 --yesCheck 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-shadersSelect 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 manualWhat 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- Repository
CloudAI-X/threejs-skills
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
- Add a small GLSL surface effect on WebGL
- 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
Check the current scene
Check the current scene
Prompt · Step 1Use 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.Apply the documented technique
Add a small GLSL surface effect on WebGL
Prompt · Step 2Use 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.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 3Use 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.