r3f-3d-scene

r3f-3d-scene is a skill for Claude Code, Codex from vucinatim/air-jam. It costs 50 tokens per session (397 once invoked), scanned A, original, MIT.

Rules for building 3D Air Jam game scenes with React Three Fiber, a React library for displaying Three.js 3D graphics. They cover scene layout, lighting, shadows, particles, models and when to use physics.

In plain words
What is it for?
Use them when creating or reviewing 3D gameplay scenes, choosing between simple movement and physics simulation, placing models, tuning lighting and setting up shadows or effects.
Why use it?
They keep visual composition separate from game rules and help prevent scenes from becoming an unstructured collection of rendering code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use them when creating or reviewing 3D gameplay scenes, choosing between simple movement and physics simulation, placing models, tuning lighting and setting up shadows or effects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vucinatim/air-jam/r3f-3d-scene
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 vucinatim/air-jam --skill r3f-3d-scene
Clone the repo
git clone --depth 1 https://github.com/vucinatim/air-jam

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 r3f-3d-scene

README.md
[![agentmods](https://agentmods.dev/badge/skills/vucinatim/air-jam/r3f-3d-scene/github.svg)](https://agentmods.dev/skills/vucinatim/air-jam/r3f-3d-scene)
Your own site
<a href="https://agentmods.dev/skills/vucinatim/air-jam/r3f-3d-scene"><img src="https://agentmods.dev/badge/skills/vucinatim/air-jam/r3f-3d-scene/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 r3f-3d-scene

Your own site · 80×15
<a href="https://agentmods.dev/skills/vucinatim/air-jam/r3f-3d-scene"><img src="https://agentmods.dev/badge/skills/vucinatim/air-jam/r3f-3d-scene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 397 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.00050 $0.00397
Opus 5 $0.00025 $0.00198
Sonnet 5 $0.00010 $0.00079
Haiku 4.5 $0.00005 $0.00040

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

Security

Grade A, and why

r3f-3d-scene 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 11d 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.

packages/cli/template-assets/bootstrap/skills/r3f-3d-scene/SKILL.md · 52 lines

What it actually says

R3F 3D Scene

Use this skill for 3D host gameplay surfaces built with React Three Fiber and Three.js.

Read First

  1. docs/airjam/r3f-3d-scene.md
  2. docs/airjam/generated/state-and-rendering.md
  3. docs/airjam/generated/project-structure.md

Core Rule

Treat R3F as a rendering layer.

Keep:

  1. gameplay rules in domain/system modules
  2. runtime orchestration in engine/adapters
  3. scene composition and visual presentation in the 3D layer

Scene Quality Rules

  1. establish a deliberate lighting recipe early
  2. define world origin, ground level, and object placement conventions clearly
  3. keep shadows intentionally tuned to the actual play area
  4. use particles and post effects as accents, not camouflage for weak art direction

Physics Rule

Use Rapier when the game really benefits from rigid-body style simulation, collision response, or stacked interactions.

If gameplay only needs simple movement, overlap checks, or authored responses, prefer a lighter custom movement/collision model.

Asset Rule

  1. keep model scale and grounding consistent
  2. prefer curated materials and textures over random defaults
  3. use custom shaders only when they materially improve the look or mechanic

Anti-Patterns

  1. React state driving per-frame scene simulation
  2. giant untuned shadow maps with clipped or blurry shadows
  3. floating models fixed by random per-scene offsets
  4. adding a full physics engine where simple authored logic would be clearer
  5. piling on particles, bloom, or shaders before the base scene reads well
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. 11d ago First seen · 52 lines · 50 tokens per session scan A b2497b437fe7

Subscribe to this mod's changes

r3f-3d-scene is a skill published in the GitHub repository vucinatim/air-jam (6 stars, last pushed 2d ago), licensed MIT. It adds 50 tokens to every session and 397 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

pn-threejs-core

Guides Three.js scenes, cameras, lighting, asset loading, animation, physics, and performance. Use when working on Three.js; covers scene structure, R3F/Drei patterns, WebGPU migration (r171+), TSL shaders, and compute shaders.

perniemann/pnCore · 59 tokens

nextjs-pages-router

Set up tRPC in Next.js Pages Router with createNextApiHandler, createTRPCNext, withTRPC HOC, SSR via ssr option and ssrPrepass, SSG via createServerSideHelpers with getStaticProps, and server-side helpers for getServerSideProps prefetching.

trpc/trpc · 67 tokens

react-query-setup

Set up @trpc/tanstack-react-query with createTRPCContext(), TRPCProvider, useTRPC() hook, queryOptions/mutationOptions factories, query invalidation via queryClient.invalidateQueries with queryFilter, and type inference with inferInput/inferOutput.

trpc/trpc · 60 tokens

migrate-oxlint

Guide for migrating a project from ESLint to Oxlint. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's linter from ESLint to Oxlint.

oxc-project/oxc · 44 tokens

magic-ui

Use this skill when users want to add, customize, or troubleshoot Magic UI components in React/Next.js projects. It covers component selection, shadcn registry installation (@magicui/), integration patterns, and practical quality checks for accessibility and maintainability.

magicuidesign/magicui · 56 tokens

frontend-conventions

Coding conventions, architecture patterns, and testing rules for the SkillHub React frontend. Ensures agents follow Feature-Sliced Design and use the generated OpenAPI types.

iflytek/skillhub · 36 tokens