core CLAUDE.md

Repository instructions for ReactUnity/core, a project that lets React interfaces run inside Unity 3D, including its package layout, workspace commands, and release process. A monorepo is a single repository containing several related packages and projects.

In plain words
What is it for?
Use it when changing ReactUnity packages, pnpm workspace membership, Unity packages, GitHub Actions workflows, releases, or documentation.
Why use it?
It explains which parts of the repository belong to the npm and Unity package groups and points out workflow details that should be read before changing CI. This reduces mistakes in a repository merged from several earlier projects.

Instructions file

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.

agentmods
npx agentmods add instructions/reactunity/core/claude-md
Clone the repo
git clone --depth 1 https://github.com/ReactUnity/core
Per session 6,014 This file is loaded in full into every session.
When invoked 6,014 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.06014 $0.06014
Opus 5 $0.03007 $0.03007
Sonnet 5 $0.01203 $0.01203
Haiku 4.5 $0.00601 $0.00601

Measured yesterday against content hash 01b94082bdd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

core CLAUDE.md 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 yesterday.

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.

CLAUDE.md · 216 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this repo is

ReactUnity: a React renderer that draws UI inside Unity3D (UGUI, UIToolkit, and the Unity Editor) without a DOM. This is a monorepo formed by merging ~10 previously separate ReactUnity repos (renderer, scripts, material, create, core, jint, quickjs, clearscript, docs, tests, full-sample (now kitchen-sink/), samples) with their histories preserved — see the chore: merge X into Y commits. Much of the layout only makes sense in that light, and the workflow files under .github/workflows/ carry detailed comments explaining why each piece is shaped the way it is. Read those before changing CI.

Two package universes

npm (packages/*) UPM / Unity (unity/*)
Members @reactunity/renderer, scripts, material, create com.reactunity.core, jint, quickjs, clearscript
Consumed by the user's React app the user's Unity project
Published by .github/workflows/release-npm.yml (Tegami + npm OIDC) .github/workflows/release-upm.yml (manual dispatch, orphan branch per package)

All eight share one version number (currently 0.22.0). Tegami bumps packages/*; the syncUnityVersions plugin in scripts/tegami.mts copies that version into the four unity/*/package.json manifests.

unity/*/package.json files are UPM manifests, not npm manifests. Their dependencies are Unity package names (com.unity.editorcoroutines). They are deliberately excluded from the pnpm workspace — adding them would send pnpm to the npm registry looking for Unity packages.

pnpm workspace membership

Defined in pnpm-workspace.yaml, which documents every inclusion and exclusion. Members are: packages/*, unity/core/.react/* (three React apps embedded in the core Unity package; the .react dot-prefix hides them from Unity's asset importer), kitchen-sink/react, and docs.

Read the full file on GitHub · 216 lines

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. yesterday First seen · 216 lines · 6,014 tokens per session scan A 01b94082bdd2

Subscribe to this mod's changes

core CLAUDE.md is an instructions file published in the GitHub repository ReactUnity/core (893 stars, last pushed 4d ago), licensed MIT. It adds 6,014 tokens to every session, about $0.0301 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-30.

Related

Other instructions, from other repositories

unity-cli-loop AGENTS.md

AGENTS.md instructions for hatayama/unity-cli-loop, covering architecture overview, repository map, cli / unity package compatibility, project runner pin and generated skill files.

hatayama/unity-cli-loop · 3,014 tokens

unity-ui-toolkit-design-system AGENTS.md

Instructions for sinanata/unity-ui-toolkit-design-system, covering agents.md, what this project is, golden rules (do not violate), use the design system in your project and repository layout.

sinanata/unity-ui-toolkit-design-system · 3,290 tokens

unity-ui-toolkit-design-system copilot-instructions.md

Instructions for sinanata/unity-ui-toolkit-design-system: This repository follows the cross-tool AGENTS.md standard. Read /AGENTS.md for the full guide: the ds- class naming, the token rules, the load-bearing USS import order, build and preview commands, and the pull-request checklist.

sinanata/unity-ui-toolkit-design-system · 258 tokens

unity-mesh-fracture AGENTS.md

Instructions for sinanata/unity-mesh-fracture, covering agents.md, what this project is, golden rules (do not violate), wire it into your project and public api.

sinanata/unity-mesh-fracture · 2,647 tokens

Aspid.FastTools CLAUDE.md

Instructions for VPDPersonal/Aspid.FastTools, covering обзор репозитория, сборка, архитектура, карта функциональности and соглашения по коду редактора.

VPDPersonal/Aspid.FastTools · 2,948 tokens

unity-cli CLAUDE.md

Instructions for bigdra50/unity-cli, covering claude.md, project overview, commands, install globally (provides: unity-cli, u, unity commands) and run relay server standalone.

bigdra50/unity-cli · 985 tokens