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.
git clone --depth 1 https://github.com/playcanvas/reactWrote 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/rules/playcanvas/react/playcanvas-react)<a href="https://agentmods.dev/rules/playcanvas/react/playcanvas-react"><img src="https://agentmods.dev/badge/rules/playcanvas/react/playcanvas-react/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/rules/playcanvas/react/playcanvas-react"><img src="https://agentmods.dev/badge/rules/playcanvas/react/playcanvas-react.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.00559 | $0.00559 |
| Opus 5.5 | $0.00224 | $0.00224 |
| Sonnet 5.5 | $0.00112 | $0.00112 |
| Haiku 4.5 | $0.00056 | $0.00056 |
Grade A, and why
.playcanvas-react 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 1mo 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.
What it actually says
Overview of @playcanvas/react
@playcanvas/react is a fully featured thin wrapper around the PlayCanvas API. You use it to build 3D content
📚 Full Docs
🔗 GitHub Repo
🧩 API Reference
Structure
// Core
import { Application, Entity } from '@playcanvas/react'
// Components add behaviors to Entities
import { Light, Camera, Render, Gsplat, Screen, Collision, RigidBody, Anim } from '@playcanvas/react/components'
// Hooks add functionality
import { useModel, useSplat, useAppEvent, useParent, useApp } from '@playcanvas/react/hooks'
Rules for 3D Content
When generating 3D content with @playcanvas/react, follow these conventions:
- Always wrap components at the root in an
<Application />to initialize the engine. <Entity />defines a transform node — use it forposition,rotation, andscale. It does not render anything on its own.- Use components from
@playcanvas/react/componentsto add functionality (e.g.,<Camera />,<Light />,<Render />). - Load assets using hooks like
useModel(src)anduseSplat(src). - Materials must be created using the
useMaterial()hook. - Use numeric arrays for colors and vectors:
- Colors:
[1, 0, 0] - Position/rotation/scale:
[0, 0, 0]
- Colors:
Examples
📸 A Camera
Transform goes on <Entity />, camera settings go on <Camera />.
<Entity position={[0, 0, 4]}>
<Camera fov={30}/>
</Entity>
A Light
<Entity position={[0, 0, 4]}>
<Light type='directional' />
</Entity>
A Primitive
<Entity position={[0, 0, 4]}>
<Render type='sphere' />
</Entity>
An Asset
export const Car = () => {
const { asset } = useModel('./car.glb');
if (!asset) return null;
return (
<Entity>
<Render type="asset" asset={asset} />
</Entity>
);
};
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.
- 1mo ago First seen · 84 lines · 559 tokens per session scan A 03de0bf71080
.playcanvas-react is a cursor rule published in the GitHub repository playcanvas/react (541 stars, last pushed 18d ago), licensed MIT. It adds 559 tokens to every session, about $0.0022 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-08-30.
Other cursor rules, from other repositories
editor-ui
Editor React UI vs editor-core separation, selection, viewport, and dirty/undo rules. Apply when editing apps/editor or packages/editor-core.
002-components
React Three Fiber Component Rules.
meta-quest-agentic-tools
Use Meta Quest Agentic Tools for Meta Quest and Horizon OS samples.
techguide
Global rules always followed.
webgpu-r3f-tsl
Entry point for React Three Fiber + WebGPU + TSL guidance. Covers Canvas/renderer setup, node materials in JSX, node-graph memoization, and TSL syntax fundamentals. Auto-attaches on JS/TS/JSX/TSX files in projects using three/webgpu with R3F.
compute-shaders
GPU compute shaders in React Three Fiber + WebGPU using TSL. Covers instanced array buffers, parallel simulation, particle systems, atomic operations, workgroup barriers, and dispatching from useEffect/useFrame. Use when writing compute passes, particle systems, or GPU-side simulations in R3F.