react-three-fiber

react-three-fiber is a skill for Claude Code from freshtechbro/claudedesignskills. It costs 71 tokens per session (6,337 once invoked), scanned A, original, MIT.

A way to build Three.js 3D scenes as React components. Three.js is a JavaScript library for displaying 3D graphics in the browser, and React Three Fiber connects it to React’s component and state systems.

In plain words
What is it for?
Use it for product configurators, 3D portfolios, interactive galleries, browser games, simulations, and data visualizations inside React, Next.js, Gatsby, or Remix projects.
Why use it?
It lets React developers manage 3D objects alongside the rest of a React application instead of maintaining a separate style of code for the scene. Components can be reused and connected to application data and interactions.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it for product configurators, 3D portfolios, interactive galleries, browser games, simulations, and data visualizations inside React, Next.js, Gatsby, or Remix projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/freshtechbro/claudedesignskills/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 freshtechbro/claudedesignskills --skill react-three-fiber
Clone the repo
git clone --depth 1 https://github.com/freshtechbro/claudedesignskills

Made for: Claude Code.

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/freshtechbro/claudedesignskills/react-three-fiber/github.svg)](https://agentmods.dev/skills/freshtechbro/claudedesignskills/react-three-fiber)
Your own site
<a href="https://agentmods.dev/skills/freshtechbro/claudedesignskills/react-three-fiber"><img src="https://agentmods.dev/badge/skills/freshtechbro/claudedesignskills/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/freshtechbro/claudedesignskills/react-three-fiber"><img src="https://agentmods.dev/badge/skills/freshtechbro/claudedesignskills/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. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk pass 27 Feb 2026
How audits are shown
Origin original No closer match found 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-09, 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

Copies of this mod

3 near-identical copies found in the catalogue:

.claude/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 freshtechbro/claudedesignskills (873 stars, last pushed 9mo 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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.