react-three-fiber

react-three-fiber is a skill for Claude Code from Gekkos-tech/agency-os. It costs 71 tokens per session (6,337 once invoked), scanned A, a copy of react-three-fiber, MIT.

A guide for building interactive three-dimensional scenes in React with React Three Fiber, a tool that connects React components to the Three.js 3D library. React is a JavaScript framework for building interfaces.

In plain words
What is it for?
Use it to build product configurators, portfolios, games, simulations, data visualizations, and other interactive 3D experiences.
Why use it?
It helps developers use familiar React components and state handling when adding 3D content to an application.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the motion-3d plugin — 6 skills shipped together

Good fit Use it to build product configurators, portfolios, games, simulations, data visualizations, and other interactive 3D experiences.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gekkos-tech/agency-os/react-three-fiber
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Gekkos-tech/agency-os --skill react-three-fiber
Clone the repo
git clone --depth 1 https://github.com/Gekkos-tech/agency-os

Made for: Claude Code.

Or install motion-3d, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for react-three-fiber

README.md
[![agentmods](https://agentmods.dev/badge/skills/gekkos-tech/agency-os/react-three-fiber/github.svg)](https://agentmods.dev/skills/gekkos-tech/agency-os/react-three-fiber)
Your own site
<a href="https://agentmods.dev/skills/gekkos-tech/agency-os/react-three-fiber"><img src="https://agentmods.dev/badge/skills/gekkos-tech/agency-os/react-three-fiber/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for react-three-fiber

Your own site · 80×15
<a href="https://agentmods.dev/skills/gekkos-tech/agency-os/react-three-fiber"><img src="https://agentmods.dev/badge/skills/gekkos-tech/agency-os/react-three-fiber.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,337 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.06337
Opus 5 $0.00036 $0.03168
Sonnet 5 $0.00014 $0.01267
Haiku 4.5 $0.00007 $0.00634

Measured 10d ago against content hash f9747e9e93bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

react-three-fiber scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (assets/starter_r3f/vite.config.js, scripts/component_generator.py, scripts/scene_setup.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to react-three-fiber — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/motion-3d/skills/react-three-fiber/SKILL.md · 1,080 lines

How it starts

The opening of the file, as written. The whole thing — 1,080 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React Three Fiber

Overview

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:

  • Building 3D experiences within React applications
  • Creating interactive product configurators or showcases
  • Developing 3D portfolios, galleries, or storytelling experiences
  • Building games or simulations in React
  • Adding 3D elements to existing React projects
  • When you need state management and React hooks with 3D graphics
  • When working with React frameworks (Next.js, Gatsby, Remix)

Key Benefits:

  • Declarative: Write 3D scenes like React components
  • React Integration: Full access to hooks, context, state management
  • Reusability: Create and share 3D component libraries
  • Performance: Automatic render optimization and reconciliation
  • Ecosystem: Works with Drei helpers, Zustand, Framer Motion, etc.
  • TypeScript Support: Full type safety for Three.js objects

Core Concepts

1. Canvas Component

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 settings
  • dpr - Device pixel ratio (default: [1, 2])
  • shadows - Enable shadow mapping (default: false)
  • frameloop - "always" (default), "demand", or "never"
  • flat - Disable color management for simpler colors
  • linear - Use linear color space instead of sRGB

2. Declarative 3D Objects

Three.js objects are created using JSX with kebab-case props:

Read the full file on GitHub · 1,080 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 1,080 lines · 71 tokens per session scan A f9747e9e93bf

Subscribe to this mod's changes

react-three-fiber is a skill published in the GitHub repository Gekkos-tech/agency-os (5 stars, last pushed 2mo ago), licensed MIT. It adds 71 tokens to every session and 6,337 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to react-three-fiber, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

frontend-dev-guidelines

Development guidelines for building front ends with Next.js 15, React 19, TypeScript, Shadcn/ui, and Tailwind CSS. They cover how pages, components, data fetching, routes, and project files should be organised.

aiskillstore/marketplace · 116 tokens

coding-standards

React 19 and TypeScript coding standards for Portfolio Buddy 2. Use when: writing new components, reviewing code, refactoring, or ensuring consistency. Contains component patterns, TypeScript rules, and best practices.

aiskillstore/marketplace · 48 tokens

remotion-render

Render videos from React/Remotion component code via inference.sh. Pass TSX code, get MP4. Supports all Remotion APIs: useCurrentFrame, useVideoConfig, spring, interpolate, AbsoluteFill, Sequence. Configurable resolution, FPS, duration, codec. Use for: programmatic video generation, animated graphics, motion design…

aiskillstore/marketplace · 123 tokens

portfolio-context

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

aiskillstore/marketplace · 60 tokens

react-best-practices

Use when reading or writing React components (.tsx, .jsx files with React imports).

aiskillstore/marketplace · 23 tokens

nextjs-on-cloudflare

Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext. Use when starting a Next.js project on Cloudflare, moving an existing app to Workers, choosing between vinext and OpenNext, or setting up vinext for Workers. For setup, migration, or deployment, install vinext's upstream skills with npx skills…

aiskillstore/marketplace · 96 tokens