React three fiber game

From fanfan-de/anybox · View interactive version

React three fiber game is an AI agent skill from the GitHub repository fanfan-de/anybox. Build React-hosted 3D browser games with React Three Fiber. Use when the user wants pmndrs-based scene composition, shared React state, and 3D HUD integration inside a React app.

How to use this skill

Skill file

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:

Use This Skill When

Do Not Use This Skill When

Best Fit Scenarios

Core Rules

  1. Keep simulation state outside render components.
  1. Use React state and scene state deliberately.
  1. Use pmndrs helpers intentionally.
  1. Keep HUD, settings, and menus in DOM by default.
  2. Keep starter scaffolds visually restrained.

Architectural Guidance

Anti-Patterns

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.