Skip to main content
skill CX Codex

r3f-postprocessing — Claude Code skill for R3F postprocessing

A skill that walks the agent through postprocessing in React Three Fiber: glow on chosen meshes, depth of field, SSAO. Useful when the render looks off and you cannot pin down why.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add EnzeD/r3f-skills --skill r3f-postprocessing -a claude-code
Open on GitHub

What r3f-postprocessing does

The skill covers the WebGL pipeline: which composer to reach for, how selection ties into effects, and what happens to color after the scene is drawn. It ships a working example built on EffectComposer, Selection and SelectiveBloom. Two boxes glow equally in the scene, yet the bloom pass picks up only the selected one.

Ownership of the final frame is spelled out. Running a manual gl.render next to the composer overwrites or doubles the output. Depth of field gets its own note: target is a world-space point, not a mesh reference, and focusDistance={0} is not autofocus. SSAO will not run unless enableNormalPass is set on EffectComposer.

Versions matter. The sample assumes Fiber 9.7 with React 19, @react-three/postprocessing 3.1 and postprocessing 6.39. Piling on whatever newer packages are current, or quietly bumping a project, is what the skill tells you not to do. Check peer dependencies of the renderer you actually have.

Verification is concrete: switch effects on and off, pick an object, resize, unmount and mount again under Strict Mode. TypeScript cannot vouch for the final color or for selected-only behavior.

What it helps with

  • Make only the clicked object glow while its neighbors stay dark
  • Place effects in the right order around tone mapping
  • Work out why DepthOfField ignores the point you aimed at
  • Add SSAO without losing ambient occlusion to a missing normal pass
  • Stop a second render call from clobbering the composer output

Example prompts for the agent

  • Set up an EffectComposer scene where bloom comes only from the object under the cursor
  • Add SSAO to the pipeline and turn on enableNormalPass for EffectComposer
  • Configure DepthOfField so focus lands on the far box

How to install r3f-postprocessing

1Skills CLI (Vercel)

npx skills add EnzeD/r3f-skills --skill r3f-postprocessing -a claude-code

2Manually: put the files in place

~/.claude/skills/r3f-postprocessing/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/r3f-postprocessing/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about r3f-postprocessing

How do I install r3f-postprocessing in Claude Code?

Run npx skills add EnzeD/r3f-skills --skill r3f-postprocessing -a claude-code, then confirm the file sits at ~/.claude/skills/r3f-postprocessing/SKILL.md.

What does r3f-postprocessing do?

It guides the agent through setting up postprocessing effects in React Three Fiber: bloom, object selection, ambient occlusion and depth of field. It targets composer pipelines rather than material shaders on a mesh.

Does it cover the WebGPU renderer in Three.js?

No. The composer described here is WebGL-only. Three.js WebGPURenderer needs node effects and RenderPipeline instead, and that backend has to be checked on its own.

Similar skills

Everything for Frontend and UI →

From the same set6

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor