threejs-impl-react-three-fiber

threejs-impl-react-three-fiber is a skill for Claude Code, Codex from Impertio-Studio/Three.js-Claude-Skill-Package. It costs 130 tokens per session (2,775 once invoked), scanned A, original, MIT.

A guide for building 3D scenes in React with React Three Fiber, a library that lets React describe Three.js scenes using components.

In plain words
What is it for?
Use it when creating interactive 3D scenes, handling animation loops, loading resources, mapping data to 3D elements, or adding events.
Why use it?
It helps avoid common setup and rendering mistakes when combining React with Three.js.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it when creating interactive 3D scenes, handling animation loops, loading resources, mapping data to 3D elements, or adding events.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/impertio-studio/three.js-claude-skill-package/threejs-impl-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 Impertio-Studio/Three.js-Claude-Skill-Package --skill threejs-impl-react-three-fiber
Clone the repo
git clone --depth 1 https://github.com/Impertio-Studio/Three.js-Claude-Skill-Package

Made for: Claude Code, Codex.

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 threejs-impl-react-three-fiber

README.md
[![agentmods](https://agentmods.dev/badge/skills/impertio-studio/three.js-claude-skill-package/threejs-impl-react-three-fiber.svg)](https://agentmods.dev/skills/impertio-studio/three.js-claude-skill-package/threejs-impl-react-three-fiber)
Your own site
<a href="https://agentmods.dev/skills/impertio-studio/three.js-claude-skill-package/threejs-impl-react-three-fiber"><img src="https://agentmods.dev/badge/skills/impertio-studio/three.js-claude-skill-package/threejs-impl-react-three-fiber.svg" alt="Measured on agentmods" height="20"></a>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,775 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 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.00130 $0.02775
Opus 5 $0.00065 $0.01388
Sonnet 5 $0.00026 $0.00555
Haiku 4.5 $0.00013 $0.00278

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

Security

Grade A, and why

threejs-impl-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 8d ago.

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.

skills/source/threejs-impl/threejs-impl-react-three-fiber/SKILL.md · 268 lines

How it starts

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

threejs-impl-react-three-fiber

Quick Reference

Canvas Component Props

Prop Type Default Purpose
gl Renderer props | (canvas) => Renderer {} WebGL renderer config or factory
camera Camera props | THREE.Camera { fov: 75, near: 0.1, far: 1000, position: [0,0,5] } Default camera
scene Scene props | THREE.Scene {} Scene configuration
shadows boolean | ShadowMapType false Enable shadow maps
raycaster Raycaster props {} Raycaster configuration
frameloop "always" | "demand" | "never" "always" Render loop strategy
resize ResizeOptions { scroll: true, debounce: { scroll: 50, resize: 0 } } Resize behavior
orthographic boolean false Use OrthographicCamera
dpr number | [min, max] [1, 2] Device pixel ratio
linear boolean false Linear color space
flat boolean false Disable tone mapping
legacy boolean false Disable color management
events EventManager R3F default Custom event manager
eventSource HTMLElement | React.RefObject Parent node Event capture element
eventPrefix string "offset" Coordinate prefix
onCreated (state: RootState) => void -- Post-init callback
onPointerMissed (event: PointerEvent) => void -- Click misses all meshes
fallback React.ReactNode -- DOM fallback during init

Frameloop Modes

Mode Behavior
"always" ALWAYS renders every frame via requestAnimationFrame
"demand" ONLY renders when invalidate() is called -- use for static scenes
"never" NEVER renders automatically -- caller MUST invoke advance(timestamp)

Critical Warnings

NEVER create Three.js objects inside useFrame -- this allocates memory every frame and causes GC pressure. ALWAYS create objects outside the callback or use useMemo.

Read the full file on GitHub · 268 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 268 lines · 130 tokens per session scan A ba2627006881

Subscribe to this mod's changes

threejs-impl-react-three-fiber is a skill published in the GitHub repository Impertio-Studio/Three.js-Claude-Skill-Package (12 stars, last pushed 2mo ago), licensed MIT. It adds 130 tokens to every session and 2,775 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

typescript-style

Validate TypeScript/React code against style and architectural conventions.

peteski22/agent-pragma · 14 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…

cloudflare/skills · 96 tokens

skillshare-ui-website-style

Skillshare frontend design system for the React dashboard (ui/) and Docusaurus website (website/). Use this skill whenever you: build or modify a dashboard page or component in ui/src/, style or layout website pages or custom CSS in website/, create new React components for the dashboard, add pages to the dashboard…

runkids/skillshare · 147 tokens

web-design-engineer

Build or redesign polished browser-rendered visual artifacts with HTML/CSS/JavaScript/React: pages, dashboards, prototypes, slide decks, animations, UI mockups, and data visualizations. Use for visual front-end creation, design-system exploration, design critique, or explicit browser acceptance / QA of a web artifact.…

ConardLi/garden-skills · 96 tokens

remotion-markup

Best practices for writing Remotion React Markup.

guanyang/open-agent-hub · 14 tokens

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance…

CherryHQ/cherry-studio · 67 tokens