New advertisers: 50% off your first month with code FIRSTMONTHSee slots

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
View on GitHub

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 compiled R3F_BEST_PRACTICES.md document
  • 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 -y

Installs 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 2

Similar to R3f Best Practices

More Frontend & UI Code