Skip to main content
skill CX Codex

r3f-loaders — Claude Code skill: what it does, how to install

Guides 3D asset loading and reuse in React Three Fiber. Helps set up hooks, preloading, scene cloning, and fallback UI.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add EnzeD/r3f-skills --skill r3f-loaders -a claude-code
Open on GitHub

What r3f-loaders does

This skill teaches coding agents how to fetch and manage 3D assets in React Three Fiber. It focuses on modern setups such as Fiber 9 and React 19. The guidance directs the model to pick useGLTF for glTF files and useLoader for alternate formats. It also covers addon import locations in recent Three.js releases.

It explains how to duplicate scenes without wasting memory. Duplicated meshes share geometry and materials via Drei Clone. If an instance needs unique textures, you clone only those specific properties. For separate animation mixers, the instructions recommend SkeletonUtils.clone to retain independent control.

Decoders like Draco or KTX2 must be configured prior to triggering network fetches. Because Suspense only pauses on unresolved promises, failed requests need a dedicated error boundary. Clearing the cache with useGLTF.clear does not fully free GPU memory, so resource disposal requires deliberate management.

What it helps with

  • import GLB assets with useGLTF safely
  • replicate 3D meshes while sharing geometry via Drei Clone
  • initialize Draco and KTX2 decoders before network requests
  • isolate asset fetch failures using dedicated error boundaries

Example prompts for the agent

  • Show how to load a GLB model with useGLTF and place several clones in the scene.
  • Configure KTX2Loader for compressed textures in React Three Fiber.
  • How do I catch 3D asset fetch failures using an Error Boundary?

How to install r3f-loaders

1Skills CLI (Vercel)

npx skills add EnzeD/r3f-skills --skill r3f-loaders -a claude-code

2Manually: put the files in place

~/.claude/skills/r3f-loaders/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/r3f-loaders/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about r3f-loaders

How do I install r3f-loaders in Claude Code?

Run npx skills add EnzeD/r3f-skills --skill r3f-loaders -a claude-code. This command registers the skill in your agent configuration.

What does r3f-loaders do?

It provides patterns for importing 3D models in React Three Fiber. The skill helps agents handle caching, decoder setup, and cleanup properly.

How does r3f-loaders suggest handling duplicate models?

It advises using Drei Clone or SkeletonUtils.clone instead of calling loader hooks multiple times. Clones share cached geometries and textures to save resources.

Similar skills

Everything for Frontend and UI →

From the same set3

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor