Skills for Real Engineers. Straight from my .agents directory.
threejs-react-three-fiber
Agent skill fromCloudAI-X/threejs-skills
Building three.js scenes from React with React Three Fiber and drei: renderer setup, the scene graph as JSX, frame-loop, state and loading hooks, pointer events, and adaptive performance, on WebGL or with WebGPU and TSL. Use when writing React components that render three.js.
How to install threejs-react-three-fiber
npx skills add CloudAI-X/threejs-skills# or add only this skill to Claude Code: copy the folder
skills/threejs-react-three-fiber/
# into
~/.claude/skills/threejs-react-three-fiber/ (all projects)
.claude/skills/threejs-react-three-fiber/ (one project)
1# Three.js React Three Fiber23Targets three.js r186. Examples use WebGLRenderer; the WebGPU and TSL section uses WebGPURenderer.45## Quick Start67Targets `@react-three/fiber` 9.8 with React 19 and `@react-three/drei` 10.7. The Canvas creates and owns a WebGLRenderer, a scene and a camera; three.js objects become JSX elements. The Canvas fills its parent element, so give the parent a height. The component fragments below render inside a Canvas like this one; lit materials assume its lights.89```jsx10import { useRef } from "react";11import { Canvas, useFrame } from "@react-three/fiber";12import { OrbitControls } from "@react-three/drei";1314function Box() {15 const ref = useRef();16 useFrame((_, delta) => {17 ref.current.rotation.y += delta;18 });19 return (20 <mesh ref={ref} position={[0, 0.5, 0]} castShadow>21 <boxGeometry args={[1, 1, 1]} />22 <meshStandardMaterial color="#d9915b" />23 </mesh>24 );25}2627export default function App() {28 return (29 <Canvas shadows="percentage" camera={{ position: [3, 2, 4], fov: 50 }}>30 <color attach="background" args={["#111827"]} />31 <ambientLight intensity={0.4} />32 <directionalLight position={[3, 4, 2]} intensity={2} castShadow />33 <Box />34 <mesh rotation-x={-Math.PI / 2} receiveShadow>35 <planeGeometry args={[10, 10]} />36 <meshStandardMaterial color="#20293a" />37 </mesh>38 <OrbitControls makeDefault />39 </Canvas>40 );41}42```4344## Canvas Props4546```jsx47export function App() {48…
Excerpt shown under the repository's MIT license.
More skills in threejs-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
