threejs-shaders · cesartevisual — Claude Code skill: what it does, how to install
threejs-shaders — a Claude Code skill for writing and debugging Three.js GLSL shaders, custom material effects, uniforms, and geometry deformation.
MIT 694 installs ★ 26 updated 2026-09-10
npx skills add cesartevisual/threejs-skills --skill threejs-shaders -a claude-codeWhat threejs-shaders does
The agent applies the skill when working on custom Three.js materials, vertex displacement, and GLSL shader code. Before writing code, it identifies the renderer, installed revision, shader language, and material extension mechanism. Effects are built incrementally from constant output to texture sampling and complex deformations, with full compile and link error checking.
The tool handles vertex displacement by updating normals, expanding bounds for culling, and aligning shadow materials. Uniforms remain stable with updated values instead of rebuilding materials per frame. Custom program cache keys and reproducible shader fixtures help maintain compatibility across revisions.
Edge cases such as mobile precision, resizing, transparent overlap, and extreme parameter values are checked during development. Fallback options for optional features preserve rendering safety when custom shaders are unavailable.
Pronounced constraints require checking compiled outputs and verifying compatibility between WebGL and WebGPU pipelines before deployment.
What it helps with
- write and debug Three.js GLSL shaders
- implement custom material effects and deformation
- manage uniforms and shader program caching
- handle vertex displacement and shadow rendering
Example prompts for the agent
- Write a custom water shader for Three.js using ShaderMaterial
- Add vertex deformation to the sphere material
- Update shader uniforms without rebuilding materials every frame
How to install threejs-shaders
1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-shaders -a claude-code2Manually: put the files in place
~/.claude/skills/threejs-shaders/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/threejs-shaders/
1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-shaders -a codex2Manually: put the files in place
.agents/skills/threejs-shaders/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-shaders -a cursor2Manually: put the files in place
.cursor/skills/threejs-shaders/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install cesartevisual/threejs-skills skills/threejs-shaders2Manually: put the files in place
.github/skills/threejs-shaders/SKILL.md1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-shaders -a gemini-cli2Platform CLI
gemini skills install https://github.com/cesartevisual/threejs-skills --path skills/threejs-shadersManually: put the files in place
.devin/skills/threejs-shaders/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-shaders -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about threejs-shaders
How to install threejs-shaders in Claude Code?
Run npx skills add cesartevisual/threejs-skills --skill threejs-shaders -a claude-code, then reference ~/.claude/skills/threejs-shaders/SKILL.md.
What does threejs-shaders do?
It helps write, debug, and optimize Three.js GLSL shaders, custom material effects, uniforms, and vertex deformations.
What is required to use threejs-shaders?
A project with Three.js installed and an AI coding environment supporting agent skills.
Source text
SKILL.md · MIT
--- name: threejs-shaders description: "Write and debug Three.js GLSL shaders, custom material effects, uniforms, and shader deformation." --- # Custom Shaders Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions. Identify the renderer, installed revision, shader language, and material extension mechanism before writing shader code. Use GLSL ShaderMaterial/RawShaderMaterial in a compatible pipeline; do not assume a WebGL shader is a drop-in WebGPU material. Write down spaces for every position, normal, light vector, and varying. Transform normals correctly under nonuniform scale. Keep uniforms stable and update their values rather than rebuilding materials per frame. Avoid unnecessary per-fragment work and dynamic shader permutations. Build effects incrementally: constant output, coordinates, texture sample, then the effect. Check compile/link logs with full errors enabled. Guard normalization of zero vectors, divisions near zero, and undefined smoothstep ranges. Derivatives require the appropriate stage and support. When displacing vertices, update normals or calculate suitable shading, expand bounds for culling, and consider matching depth/distance materials for shadows. CPU raycasting still sees CPU geometry unless a matching solution is provided. Treat onBeforeCompile and shader chunks as revision-sensitive. Use an appropriate custom program cache key when custom compile variations need distinct programs, and retain a reproducible shader fixture for upgrades. Verify display color/tone mapping at the output boundary. Check extreme parameter values, resizing, mobile precision, transparent overlap, shadows, and picking. Preserve an ordinary material fallback when the feature is optional. ## API reference Consult the [official documentation](https://threejs.org/docs/pages/ShaderMaterial.html) for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.
© cesartevisual · MIT · cesartevisual/threejs-skills
Similar skills
All skills for Game dev and 3D: Unity, Unreal, Godot, Blender →threejs-shaders by other authors comes first.