
R3f Best Practices
React Three Fiber performance and ecosystem guidance covering 70+ prioritized rules across 12 categories.
- skills.sh installs
- 1.7K
- GitHub stars
- 77
- last updated
- Aug 21, 2026
What it does
- Covers re-render avoidance, useFrame animation, component patterns, Canvas setup, and Drei helpers
- Includes rule files (
rules/perf-never-set-state-in-useframe.md,rules/drei-use-gltf.md) plus a compiledR3F_BEST_PRACTICES.mddocument - Enforces patterns such as never calling setState in useFrame and using Zustand selectors instead of whole-store reads
- Designed for developers writing, reviewing, or optimizing code built on @react-three/fiber, drei, zustand, postprocessing, rapier, or leva
Install
$ npx -y skills add emalorenzo/three-agent-skills --skill r3f-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
React Three Fiber Best Practices
Comprehensive guide for React Three Fiber and the Poimandres ecosystem. Contains 70+ rules across 12 categories, prioritized by impact.
Sources & Credits
Additional tips from 100 Three.js Tips by Utsubo
When to Apply
Reference these guidelines when:
- Writing new R3F components
- Optimizing R3F performance (re-renders are the #1 issue)
- Using Drei helpers correctly
- Managing state with Zustand
- Implementing post-processing or physics
Ecosystem Coverage
- @react-three/fiber - React renderer for Three.js
- @react-three/drei - Useful helpers and abstractions
- @react-three/postprocessing - Post-processing effects
- @react-three/rapier - Physics engine
- zustand - State management
- leva - Debug GUI
Rule Categories by Priority
Details
- Repository
- github.com/emalorenzo/three-agent-skills
- Categories
- Frontend & UI Code, 3D, CAD & Modeling
- First seen
- May 16, 2026
More from emalorenzo/three-agent-skills
All 2Similar to R3f Best Practices
More Frontend & UI Code
three-best-practicesemalorenzo/three-agent-skills1.7K installsThree.js performance rules, shader and TSL guidance, and WebGPU setup distilled into one reference skill for agents.
frontend-react-best-practicessergiodxa/agent-skills1.2K installsReact performance rules and composition patterns covering re-renders, bundle size, and hydration pitfalls.
vercel-react-best-practicesvercel-labs/agent-skills905.6K installsPerformance guide of 70 React and Next.js rules, ordered by impact from waterfalls to advanced patterns.
react-native-r3fmindrally/skills695 installsExpert guidance for React Three Fiber scenes using React, Vite, Tailwind CSS, and Next UI conventions.
react-best-practicesmastra-ai/mastra2.8K installsAuthoritative React performance guide routing 27 rules across nine prioritized categories for writing and reviewing components.
three-jsmindrally/skills854 installsExpert Three.js and React Three Fiber guidance covering modern React, TypeScript, and rendering performance.