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.
npx skills add bullish0x/GameStudio --skill r3f-component-patternsgit clone --depth 1 https://github.com/bullish0x/GameStudioWrote 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.
[](https://agentmods.dev/skills/bullish0x/gamestudio/r3f-component-patterns)<a href="https://agentmods.dev/skills/bullish0x/gamestudio/r3f-component-patterns"><img src="https://agentmods.dev/badge/skills/bullish0x/gamestudio/r3f-component-patterns/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.
<a href="https://agentmods.dev/skills/bullish0x/gamestudio/r3f-component-patterns"><img src="https://agentmods.dev/badge/skills/bullish0x/gamestudio/r3f-component-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00024 | $0.03507 |
| Opus 5.5 | $0.00010 | $0.01403 |
| Sonnet 5.5 | $0.00005 | $0.00701 |
| Haiku 4.5 | $0.00002 | $0.00351 |
Grade A, and why
r3f-component-patterns 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 564 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React Three Fiber Component Patterns
When to Use
Use this skill when:
- Building reusable 3D components with R3F
- Structuring React Three.js applications
- Implementing component composition
- Creating custom R3F hooks
- Optimizing React component performance
Core Principles
- Declarative: Define 3D scenes with JSX
- Reusable: Create component libraries
- Composable: Build complex scenes from simple parts
- Type-Safe: Full TypeScript support
- Performance: Use React.memo and useMemo
- Props-Driven: Configure via props, not imperative code
Implementation
1. Basic Component Patterns
// components/Box.tsx
import { useRef } from 'react';
import { useFrame } from '@react-three/fiber';
import { Mesh } from 'three';
interface BoxProps {
position?: [number, number, number];
color?: string;
scale?: number;
rotationSpeed?: number;
onClick?: () => void;
}
export function Box({
position = [0, 0, 0],
color = 'hotpink',
scale = 1,
rotationSpeed = 1,
onClick,
}: BoxProps) {
const meshRef = useRef<Mesh>(null);
useFrame((state, delta) => {
if (meshRef.current) {
meshRef.current.rotation.y += delta * rotationSpeed;
}
});
return (
<mesh ref={meshRef} position={position} scale={scale} onClick={onClick}>
<boxGeometry args={[1, 1, 1]} />
<meshStandardMaterial color={color} />
</mesh>
);
}
2. Compound Components
// components/Player.tsx
import { useRef } from 'react';
import { Group } from 'three';
interface PlayerProps {
position?: [number, number, number];
color?: string;
}
export function Player({ position = [0, 0, 0], color = 'blue' }: PlayerProps) {
const groupRef = useRef<Group>(null);
return (
<group ref={groupRef} position={position}>
{/* Body */}
<mesh position={[0, 1, 0]} castShadow>
<boxGeometry args={[1, 2, 1]} />
<meshStandardMaterial color={color} />
</mesh>
{/* Head */}
<mesh position={[0, 2.5, 0]} castShadow>
<sphereGeometry args={[0.5, 16, 16]} />
<meshStandardMaterial color={color} />
</mesh>
{/* Arms */}
<mesh position={[-0.75, 1, 0]} castShadow>
<boxGeometry args={[0.3, 1.5, 0.3]} />
<meshStandardMaterial color={color} />
</mesh>
<mesh position={[0.75, 1, 0]} castShadow>
<boxGeometry args={[0.3, 1.5, 0.3]} />
<meshStandardMaterial color={color} />
</mesh>
</group>
);
}
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.
- 2mo ago First seen · 564 lines · 24 tokens per session scan A 1638f06f5242
r3f-component-patterns is a skill published in the GitHub repository bullish0x/GameStudio (29 stars, last pushed 5mo ago), licensed MIT. It adds 24 tokens to every session and 3,507 once invoked, about $0.0001 per session on Opus 5.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.
r3f-component-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| r3f-component-patternsbullish0x/GameStudio | Skill | 29 | 5mo ago | MIT | A | 24 | Claude Code |
| generic-react-ux-designertravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 69 | Claude Code |
| generic-react-feature-developertravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 53 | Claude Code |
| generic-react-code-reviewertravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 71 | Claude Code |
| generic-react-design-systemtravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 59 | Claude Code |
| ar-vr-xrtravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 50 | Claude Code |
| agent-react-experttravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 11 | Claude Code |