BjornMelin/dev-skills / plugins/design-motion/skills/r3f-scene-polish
r3f-scene-polish
VerifiedArt-directs an existing three.js or React Three Fiber scene to cinematic quality with postprocessing, HDRI and PBR lighting, contact shadows, transmission materials, and camera choreography. Use for look-development once the scene renders, not for scene setup or lifecycle.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.9 KB |
| agents/openai.yaml | config | 420 B |
| evals/evals.json | config | 4.5 KB |
| evals/trigger-queries.json | config | 2.5 KB |
| references/art-direction.md | markdown | 8.2 KB |
| references/motion-vocabulary.md | markdown | 7.2 KB |
| references/performance-accessibility.md | markdown | 1.6 KB |
| references/provenance.json | config | 2.4 KB |
| scripts/audit.mjs | script | 18.8 KB |
references/performance-accessibility.md
View on GitHub# Performance and Accessibility Gates
## R3F and three.js gates
- No React state in `useFrame` or high-frequency pointer handlers.
- Use delta time.
- Reuse temporary objects.
- Clamp DPR.
- Use demand rendering for mostly static scenes.
- Use instancing for repeated geometry.
- Reuse materials and geometries.
- Compress GLB and textures.
- Budget postprocessing passes.
- Budget dynamic shadows.
- Add low, medium, high, and reduced quality paths.
- Pause loops, particles, and shader time when hidden.
## Reanimated and Expo gates
- Gesture and hot animation logic runs on shared values and worklets.
- Avoid per-frame JS-thread state updates.
- Preserve velocity on release.
- Cancel and retarget animations on interruption.
- Use transform and opacity where possible.
- Budget shadows, blur, list cell animations, and layout transitions.
- Stop repeating animations offscreen.
- Validate on real iOS device and release build.
## Reduced-motion gates
- Disable camera travel, orbit, aggressive zoom, parallax, particles, loops, and sensor motion.
- Replace large movement with opacity, small transform, or instant state.
- Remove bounce and overshoot where it can cause discomfort.
- Keep pressed, selected, success, error, and focus states clear.
- Provide skip behavior for long hero intros.
## Accessibility gates
- Preserve readable text during motion.
- Avoid rapid flashes.
- Keep touch targets stable and large enough.
- Provide keyboard focus states for interactive elements.
- Do not hide critical state only in motion.
- Do not trap users in scroll-driven or gesture-only interactions.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |