# 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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1900 installs · ★ 130
- Author: EnzeD
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/EnzeD/r3f-skills/tree/HEAD/skills/r3f-postprocessing/SKILL.md
- Updated: 2026-08-31
- HTML: https://affpapa.org/en/nevibecode/skills/r3f-postprocessing

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add EnzeD/r3f-skills --skill r3f-postprocessing -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/r3f-postprocessing/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/r3f-postprocessing/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add EnzeD/r3f-skills --skill r3f-postprocessing -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/r3f-postprocessing/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add EnzeD/r3f-skills --skill r3f-postprocessing -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/r3f-postprocessing/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install EnzeD/r3f-skills r3f-postprocessing
```

2. **Manually: put the files in place**
- File: `.github/skills/r3f-postprocessing/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add EnzeD/r3f-skills --skill r3f-postprocessing -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/EnzeD/r3f-skills --path skills/r3f-postprocessing
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/r3f-postprocessing/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add EnzeD/r3f-skills --skill r3f-postprocessing -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/EnzeD/r3f-skills/tree/HEAD/skills/r3f-postprocessing/SKILL.md

## When to use it
- 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
- 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

## Similar
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs
- [hyperframes](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes.md) — skill · 1200000 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs

From the same set: [enzed/r3f-skills](https://affpapa.org/en/nevibecode/by/enzed/r3f-skills.md) — 6 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
