unity-reviewer

unity-reviewer is a skill for Claude Code, Codex from TheArcForge/UniClaude. It costs 43 tokens per session (1,781 once invoked), scanned A, original, MIT.

A code-review skill for Unity, the game-development platform, focused on C# scripts. It checks for common runtime bugs, memory leaks, Unity-specific behavior, performance problems, and correctness issues.

In plain words
What is it for?
Use it after changing Unity C# code to review event cleanup, destroyed-object checks, performance risks, and other Unity anti-patterns.
Why use it?
It helps catch errors that may only appear during gameplay, such as event listeners that remain after an object is destroyed or incorrect null checks.

Skill for Claude CodeCodex

Part of the uniclaude plugin — 11 skills shipped together

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 skills/thearcforge/uniclaude/unity-reviewer
Any agent
npx skills add TheArcForge/UniClaude --skill unity-reviewer
Clone the repo
git clone --depth 1 https://github.com/TheArcForge/UniClaude

Made for: Claude Code, Codex.

Or install uniclaude, the plugin that ships this one along with the rest of its 11 skills.

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 unity-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/thearcforge/uniclaude/unity-reviewer.svg)](https://agentmods.dev/skills/thearcforge/uniclaude/unity-reviewer)
Your own site
<a href="https://agentmods.dev/skills/thearcforge/uniclaude/unity-reviewer"><img src="https://agentmods.dev/badge/skills/thearcforge/uniclaude/unity-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,781 The whole file, excluding the scripts and references it only reads on demand.
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.00043 $0.01781
Opus 5 $0.00022 $0.00890
Sonnet 5 $0.00009 $0.00356
Haiku 4.5 $0.00004 $0.00178

Measured 5d ago against content hash 837f2fd66972, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

unity-reviewer 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 5d 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.

Sidecar~/skills/unity-reviewer/SKILL.md · 273 lines

How it starts

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

Unity Code Reviewer

Run through these checks after modifying or creating C# scripts. Organized by severity.

Critical (Will Break at Runtime)

CHECK: Missing Event Unsubscription

Wrong (common default):

void OnEnable() {
    GameEvents.OnPlayerDied += HandlePlayerDied;
}
// No OnDisable — listener persists after destroy, causes NullReferenceException

Right:

void OnEnable() {
    GameEvents.OnPlayerDied += HandlePlayerDied;
}
void OnDisable() {
    GameEvents.OnPlayerDied -= HandlePlayerDied;
}

Why it matters: Leaked subscriptions cause NullReferenceExceptions when the destroyed object's method is called. One of the most common Unity bugs.

CHECK: Unity Fake Null

Wrong (common default):

var go = GetComponent<SomeComponent>();
var result = go?.DoThing(); // C# null check — DOES NOT catch Unity destroyed objects

Right:

var go = GetComponent<SomeComponent>();
if (go != null) go.DoThing(); // Unity's == override catches destroyed objects

Why it matters: Unity overrides == to return true for destroyed objects, but C#'s ?. and ?? bypass this override. Object appears non-null to C# but is actually destroyed.

CHECK: Accessing Unity API from Background Thread

Wrong:

async Task LoadDataAsync() {
    var data = await FetchFromServer();
    transform.position = data.position; // CRASH: not on main thread
}

Right:

async Task LoadDataAsync() {
    var data = await FetchFromServer();
    await Awaitable.MainThreadAsync(); // Switch back to main thread
    transform.position = data.position;
}

Why it matters: Unity API is not thread-safe. Accessing transforms, GameObjects, or components from a background thread causes crashes or silent corruption.

CHECK: Destroy vs DestroyImmediate

Wrong:

void CleanUp() {
    DestroyImmediate(gameObject); // Dangerous outside editor scripts
}

Right:

void CleanUp() {
    Destroy(gameObject); // Deferred to end of frame, safe
}

Read the full file on GitHub · 273 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. 5d ago First seen · 273 lines · 43 tokens per session scan A 837f2fd66972

Subscribe to this mod's changes

unity-reviewer is a skill published in the GitHub repository TheArcForge/UniClaude (51 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 1,781 once invoked, about $0.0002 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.