React Three Fiber (R3F) is a React renderer for Three.js that brings declarative, component-based 3D development to React applications. Instead of imperatively creating and managing Three.js objects, you build 3D scenes using JSX components that map directly to Three.js objects.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionreact-three-fiberExecute the skills CLI command in your project's root directory to begin installation:
Fetches react-three-fiber from freshtechbro/claudedesignskills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate react-three-fiber. Access via /react-three-fiber in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
19
total installs
19
this week
27
GitHub stars
0
upvotes
Run in your terminal
19
installs
19
this week
27
stars
React Three Fiber (R3F) is a React renderer for Three.js that brings declarative, component-based 3D development to React applications. Instead of imperatively creating and managing Three.js objects, you build 3D scenes using JSX components that map directly to Three.js objects.
When to Use This Skill:
Key Benefits:
The <Canvas> component sets up a Three.js scene, camera, renderer, and render loop.
import { Canvas } from '@react-three/fiber'
function App() {
return (
<Canvas
camera={{ position: [0, 0, 5], fov: 75 }}
gl={{ antialias: true }}
dpr={[1, 2]}
>
{/* 3D content goes here */}
</Canvas>
)
}
Canvas Props:
camera - Camera configuration (position, fov, near, far)gl - WebGL renderer settingsdpr - Device pixel ratio (default: [1, 2])shadows - Enable shadow mapping (default: false)frameloop - "always" (default), "demand", or "never"flat - Disable color management for simpler colorslinear - Use linear color space instead of sRGBThree.js objects are created using JSX with kebab-case props:
// THREE.Mesh + THREE.BoxGeometry + THREE.MeshStandardMaterial
<mesh position={[0, 0, 0]} rotation={[0, Math.PI / 4, 0]}>
<boxGeometry args={[1, 1, 1]} />
<meshStandardMaterial color="hotpink" />
</mesh>
Prop Mapping:
position → object.position.set(x, y, z)rotation → object.rotation.set(x, y, z)scale → object.scale.set(x, y, z)args → Constructor arguments for geometry/materialattach → Attach to parent property (e.g., attach="material")Shorthand Notation:
// Full notation
<mesh position={[1, 2, 3]} />
// Axis-specific (dash notation)
<mesh position-x={1} position-y={2} position-z={3} />
Execute code on every frame (animation loop):
import { useFrame } from '@react-three/fiber'
import { useRef } from 'react'
function RotatingBox() {
const meshRef = useRef()
useFrame((state, delta) => {
// Rotate mesh on every frame
meshRef.current.rotation.x += delta
meshRef.current.rotation.y += delta * 0.5
// Access scene state
const time = state.clock.elapsedTime
meshRef.current.position.y = Math.sin(time) * 2
})
return (
<mesh ref={meshRef}>
<boxGeometry />
<meshStandardMaterial color="orange" />
</mesh>
)
}
useFrame Parameters:
state - Scene state (camera, scene, gl, clock, etc.)delta - Time since last frame (for frame-rate independence)xrFrame - XR frame data (for VR/AR)Important: Never use setState inside useFrame - it causes unnecessary re-renders!
Access scene state and methods:
import { useThree } from '@react-three/fiber'
function CameraInfo() {
const { camera, gl, scene, size, viewport } = useThree()
// Selective subscription (only re-render on size change)
const size = useThree((state) => state.size)
// Get state non-reactively
const get = useThree((state) => state.get)
const freshState = get() // Latest state without triggering re-render
return null
}
Available State:
camera - Default camerascene - Three.js scenegl - WebGL renderersize - Canvas dimensionsviewport - Viewport dimensions in 3D unitsclock - Three.js clockpointer - Normalized mouse coordinatesinvalidate() - Manually trigger rendersetSize() - Manually resize canvasLoad assets with automatic caching and Suspense integration:
import { Suspense } from 'react'
import { useLoader } from '@react-three/fiber'
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader'
import { TextureLoader } from 'three'
function Model() {
const gltf = useLoader(GLTFLoader, '/model.glb')
return <primitive object={gltf.scene}Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
asyrafhussin/agent-skills
anthropics/claude-code
mblode/agent-skills
github/awesome-copilot
sickn33/antigravity-awesome-skills
leonxlnx/taste-skill
We added react-three-fiber from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
react-three-fiber reduced setup friction for our internal harness; good balance of opinion and flexibility.
Registry listing for react-three-fiber matched our evaluation — installs cleanly and behaves as described in the markdown.
react-three-fiber fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Registry listing for react-three-fiber matched our evaluation — installs cleanly and behaves as described in the markdown.
react-three-fiber fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Keeps context tight: react-three-fiber is the kind of skill you can hand to a new teammate without a long onboarding doc.
react-three-fiber has been reliable in day-to-day use. Documentation quality is above average for community skills.
Keeps context tight: react-three-fiber is the kind of skill you can hand to a new teammate without a long onboarding doc.
react-three-fiber fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
showing 1-10 of 39