threejs-postprocessing · cesartevisual — Claude Code skill for Three.js effects
This Claude Code skill adds or debugs Three.js postprocessing. It handles tasks involving bloom, antialiasing, ambient occlusion, depth effects, and render-target composition.
MIT 651 installs ★ 26 updated 2026-09-10
npx skills add cesartevisual/threejs-skills --skill threejs-postprocessing -a claude-codeWhat threejs-postprocessing does
The skill guides changes to a Three.js postprocessing pipeline and helps diagnose problems in one. It starts by identifying the renderer family in use: WebGL EffectComposer, pmndrs postprocessing, or a WebGPU node pipeline. Their interfaces differ, so the project should keep to one pipeline for its backend.
It covers pass order, intermediate color space, target precision, depth, alpha behavior, and the final display conversion. Bloom guidance uses HDR scene values and a deliberate threshold; antialiasing is chosen for the finished composition rather than assumed to cover offscreen targets. Full-resolution render targets need a budget, and costly passes can be reduced or disabled on weaker devices.
The skill also addresses resizing and disposing passes and targets when a pipeline changes. Suggested checks include comparing enabled and disabled effects, testing bright and dark content, alpha edges, resizing, and effect cost on the target device. For exact API signatures, it points to Three.js documentation, or to installed types and source when docs cannot be accessed. It follows the versions and architecture already present in the project.
What it helps with
- add thresholded bloom to a Three.js scene
- choose a postprocessing pipeline that fits the renderer backend
- apply antialiasing to the final composition and offscreen targets
- resize passes and release render targets when replacing a pipeline
- check depth data, alpha handling, and output color conversion
Example prompts for the agent
- Add bloom to this Three.js scene without making the whole interface glow.
- Debug the ambient occlusion pass and check whether the camera provides compatible depth data.
- Check postprocessing resize behavior and dispose of passes when the pipeline is replaced.
How to install threejs-postprocessing
1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-postprocessing -a claude-code2Manually: put the files in place
~/.claude/skills/threejs-postprocessing/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/threejs-postprocessing/
1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-postprocessing -a codex2Manually: put the files in place
.agents/skills/threejs-postprocessing/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-postprocessing -a cursor2Manually: put the files in place
.cursor/skills/threejs-postprocessing/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install cesartevisual/threejs-skills skills/threejs-postprocessing2Manually: put the files in place
.github/skills/threejs-postprocessing/SKILL.md1Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-postprocessing -a gemini-cli2Platform CLI
gemini skills install https://github.com/cesartevisual/threejs-skills --path skills/threejs-postprocessingManually: put the files in place
.devin/skills/threejs-postprocessing/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-postprocessing -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-postprocessing
How do I install threejs-postprocessing in Claude Code?
Run npx skills add cesartevisual/threejs-skills --skill threejs-postprocessing -a claude-code. The skill file is installed at ~/.claude/skills/threejs-postprocessing/SKILL.md.
What does threejs-postprocessing do?
It helps add and debug Three.js effects such as bloom, antialiasing, ambient occlusion, depth effects, and render-target composition. It also covers pipeline setup and resource cleanup.
How do the Three.js postprocessing pipelines differ?
WebGL EffectComposer, pmndrs postprocessing, and WebGPU node pipelines have different contracts. The skill recommends identifying the renderer and keeping each requested backend on one coherent pipeline.
Source text
SKILL.md · MIT
--- name: threejs-postprocessing description: "Add or debug Three.js bloom, antialiasing, ambient occlusion, depth effects, and render-target composition." --- # Postprocessing Pipelines 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 existing renderer and composer family before adding passes. Three.js WebGL EffectComposer, pmndrs postprocessing, and WebGPU node pipelines have different contracts. Choose one coherent pipeline for the requested backend. Write down the render order, intermediate color space, target precision, depth requirements, alpha behavior, and final display conversion. Apply tone mapping/output conversion once in the appropriate place. Compare against direct rendering before stacking effects. Use HDR scene values and a deliberate threshold for selective bloom. Avoid making the entire interface glow to disguise weak lighting. Depth-dependent effects need compatible depth data and sensible camera planes. Antialiasing must fit the final composition rather than assuming canvas MSAA smooths offscreen targets. Resize all passes and targets with viewport and quality changes. Budget full-resolution targets and reduce effect resolution or disable expensive passes on weaker devices. Preserve HTML readability and transparent-canvas composition if the design uses it. Dispose owned passes and render targets, including replacement pipelines. Verify disabled/enabled comparison, bright and dark content, alpha edges, resize, and effect cost on the target device. Keep effect tuning separate from fixing incorrectly tagged textures. ## API reference Consult the [official documentation](https://threejs.org/docs/pages/EffectComposer.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-postprocessing by other authors comes first.