Skip to content
Kitbay
Skill

threejs

MITUpdated on Nov 2, 202664GitHub stars

A reference skill bundled with DevLabs for Three.js and React Three Fiber work, written mainly around the app's own pixel-art 3D office.

What the skill teaches

A reference skill bundled with DevLabs for Three.js and React Three Fiber work, written mainly around the app's own pixel-art 3D office. It tells the agent to check installed versions first (three 0.183, React Three Fiber 8, drei 9) and describes how the office scene is built: a single orthographic canvas whose render loop pauses when hidden, furniture stored as data and instanced, sprite agents moving on a grid, and textures drawn in code. Rules cover the frame budget and draw calls, memoising geometry and materials, disposing objects on unmount, batching text labels and keeping the warm palette without heavy post-processing. Reference files hold an API summary for three 0.183 and a performance checklist.

Capabilities

  • Check Three.js and R3F versions before edits
  • Keep a 3D scene within its frame budget
  • Avoid common React Three Fiber pitfalls
  • Dispose scene objects on unmount