react-three-fiber-game

react-three-fiber-game is a skill for Codex from fanfan-de/anybox. It costs 47 tokens per session (883 once invoked), scanned A, original, MIT.

A guide for building three-dimensional browser games inside a React application. React is a JavaScript library for building user interfaces, while React Three Fiber connects it to Three.js for drawing 3D scenes.

In plain words
What is it for?
Use it for 3D games, editors, configurators, maps, and other React products that contain interactive 3D scenes and interface overlays.
Why use it?
It gives the game and the surrounding React interface a shared way to manage state without forcing menus and other interface elements into the 3D canvas.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it for 3D games, editors, configurators, maps, and other React products that contain interactive 3D scenes and interface overlays.

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

Made for: 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 react-three-fiber-game

README.md
[![agentmods](https://agentmods.dev/badge/skills/fanfan-de/anybox/react-three-fiber-game/github.svg)](https://agentmods.dev/skills/fanfan-de/anybox/react-three-fiber-game)
Your own site
<a href="https://agentmods.dev/skills/fanfan-de/anybox/react-three-fiber-game"><img src="https://agentmods.dev/badge/skills/fanfan-de/anybox/react-three-fiber-game/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-game

Your own site · 80×15
<a href="https://agentmods.dev/skills/fanfan-de/anybox/react-three-fiber-game"><img src="https://agentmods.dev/badge/skills/fanfan-de/anybox/react-three-fiber-game.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 883 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
  • NVIDIA SkillSpector pass 7 Sept 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.00047 $0.00883
Opus 5 $0.00023 $0.00441
Sonnet 5 $0.00009 $0.00177
Haiku 4.5 $0.00005 $0.00088

Measured 7d ago against content hash 45e5aa86ff3a, 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-game 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 7d 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.

plugins/Anybox-Plugins/game-studio/skills/react-three-fiber-game/SKILL.md · 88 lines

How it starts

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

React Three Fiber Game

Overview

Use this skill when the 3D runtime lives inside a React application. This is the default React-native 3D path in the plugin and should be preferred over vanilla Three.js when the app shell, settings, storefront, editor surface, or surrounding product already uses React.

Recommended stack:

  • @react-three/fiber
  • three
  • @react-three/drei
  • @react-three/rapier
  • @react-three/postprocessing
  • @react-three/a11y when accessibility-sensitive interaction matters
  • DOM overlays in the normal React tree

Use This Skill When

  • the project already uses React
  • the 3D scene must share state with the rest of the app
  • declarative scene composition is a net gain
  • the team wants pmndrs helpers instead of building every helper layer by hand

Do Not Use This Skill When

  • the app is not React-based
  • the project wants a cleaner imperative runtime with minimal React coordination
  • the problem is asset packaging rather than runtime composition

Best Fit Scenarios

  • 3D configurators and tool-rich browser products
  • React apps with embedded game or scene surfaces
  • 3D menus, editors, or world maps in an existing React app
  • 3D game UIs that depend on shared app state and non-canvas shells

Core Rules

  1. Keep simulation state outside render components.
    • React components should describe scene composition, not become the source of truth for gameplay rules.
  2. Use React state and scene state deliberately.
    • Shared UI state can live in app state.
    • High-frequency simulation should not force the whole app through unnecessary React churn.
  3. Use pmndrs helpers intentionally.
    • Drei for controls, loaders, helpers, environments, and common scene primitives.
    • @react-three/rapier for physics integration.
    • @react-three/postprocessing for optional effects.
    • @react-three/a11y when the interaction model benefits from accessible scene semantics.
  4. Keep HUD, settings, and menus in DOM by default.
  5. Keep starter scaffolds visually restrained.
    • Start with one compact objective or status surface and transient prompts.
    • Keep notes, maps, and multi-step checklists collapsed until opened.
    • Do not surround the Canvas with equally weighted glass cards.

Read the full file on GitHub · 88 lines

Files

What ships with it

1 file 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. 7d ago First seen · 88 lines · 47 tokens per session scan A 45e5aa86ff3a

Subscribe to this mod's changes

react-three-fiber-game is a skill published in the GitHub repository fanfan-de/anybox (57 stars, last pushed 27d ago), licensed MIT. It adds 47 tokens to every session and 883 once invoked, about $0.0002 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-09-03.