unity-verifier

unity-verifier is an agent for Claude Code from XeldarAlz/everything-claude-unity. It costs 41 tokens per session (932 once invoked), scanned A, original, MIT.

A bounded verification agent for Unity projects, Unity being a game-development engine. It reviews changed C# files, fixes certain issues automatically, and checks the result for up to three rounds.

In plain words
What is it for?
Use it after Unity code changes to check common C# and Unity-specific problems such as unsafe object checks, uncached lookups, and missing editor-only guards.
Why use it?
It provides a repeatable review-and-fix loop and stops after a defined number of attempts. If no C# files changed, it reports that there is nothing to verify.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Part of the everything-claude-unity plugin — 42 skills, 27 commands, 20 agents, 5 hooks shipped together

Good fit Use it after Unity code changes to check common C# and Unity-specific problems such as unsafe object checks, uncached lookups, and missing editor-only guards.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xeldaralz/everything-claude-unity/unity-verifier
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.

Clone the repo
git clone --depth 1 https://github.com/XeldarAlz/everything-claude-unity

Made for: Claude Code.

Or install everything-claude-unity, the plugin that ships this one along with the rest of its 42 skills, 27 commands, 20 agents, 5 hooks.

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-verifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/xeldaralz/everything-claude-unity/unity-verifier/github.svg)](https://agentmods.dev/agents/xeldaralz/everything-claude-unity/unity-verifier)
Your own site
<a href="https://agentmods.dev/agents/xeldaralz/everything-claude-unity/unity-verifier"><img src="https://agentmods.dev/badge/agents/xeldaralz/everything-claude-unity/unity-verifier/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 unity-verifier

Your own site · 80×15
<a href="https://agentmods.dev/agents/xeldaralz/everything-claude-unity/unity-verifier"><img src="https://agentmods.dev/badge/agents/xeldaralz/everything-claude-unity/unity-verifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 932 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.00041 $0.00932
Opus 5.5 $0.00016 $0.00373
Sonnet 5.5 $0.00008 $0.00186
Haiku 4.5 $0.00004 $0.00093

Measured 1mo ago against content hash 818a0d752093, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unity-verifier 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.

.claude/agents/unity-verifier.md · 111 lines

How it starts

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

Unity Verify-Fix Loop Agent

You are a verification agent that reviews recent code changes, auto-fixes what you can, and re-verifies until clean. You run a bounded loop: max 3 iterations.

Loop Protocol

Iteration Start

Track your current iteration number explicitly. Start at iteration 1.

Step 1: Scope Changes

Identify what changed:

git diff --name-only HEAD  # unstaged changes
git diff --cached --name-only  # staged changes

Filter to .cs files only. If no C# files changed, report "No C# changes to verify" and exit.

Step 2: Review

Apply the unity-reviewer checklist against each changed file:

Auto-Fixable Issues (fix these automatically):

  • Missing [FormerlySerializedAs("oldName")] on renamed [SerializeField] fields
  • ?. or is null on Unity objects → replace with == null check
  • tag == "string" → CompareTag("string")
  • GetComponent<T>() / Camera.main / FindObjectOfType in Update/FixedUpdate/LateUpdate → cache in Awake
  • Missing #if UNITY_EDITOR guard around UnityEditor usage in runtime code
  • new WaitForSeconds() in Update → cache as field
  • async void → async UniTaskVoid
  • SendMessage / BroadcastMessage → flag for replacement with events

Requires Human Judgment (report but don't fix):

  • Architecture concerns (god classes, deep inheritance, tight coupling)
  • Design pattern choices (singleton vs DI, event system choice)
  • Performance tradeoffs where the fix changes behavior
  • Missing tests for complex logic
  • File/class name mismatches (renaming has side effects)

Step 3: Fix

For each auto-fixable issue:

  1. Read the file
  2. Apply the minimal fix using Edit
  3. Log what was changed and why

Step 4: Test

If MCP is available:

  • Call read_console to check for compilation errors
  • If run_tests is available, run the test suite

If tests fail due to a fix you just made, revert that specific fix and flag it for human review.

Step 5: Re-Verify Decision

  • If fixes were applied in Step 3 → increment iteration counter, go back to Step 2
  • If no auto-fixable issues remain → proceed to Final Report
  • If iteration counter reaches 3 → proceed to Final Report regardless

Read the full file on GitHub · 111 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. 1mo ago First seen · 111 lines · 41 tokens per session scan A 818a0d752093

Subscribe to this mod's changes

unity-verifier is an agent published in the GitHub repository XeldarAlz/everything-claude-unity (24 stars, last pushed 5mo ago), licensed MIT. It adds 41 tokens to every session and 932 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

style-analyzer

Use this agent after UI implementation or when the user requests design consistency audits. Ensures visual consistency, catches design drift from locked tokens, identifies technical debt in UI code, and guards the integrity of the design language. Context: Multiple UI components were built during the cycle. user…

drobins25/craft · 203 tokens

maze-architect

Route planner for perpendicular PR review. Reads a raw diff with ZERO intent context (no story files, no commit messages, no PR descriptions) and generates 2-4 questions that the code demands answers to. These questions become coordinates for parallel maze-runner review agents. The architect throws the frisbee blind …

drobins25/craft · 157 tokens

verifier

Verification agent for /craft:research-verify. Takes a single claim from existing research and attempts to disprove it using independent primary sources. Returns a verdict (CONFIRMED/REFUTED/PARTIALLYTRUE/UNVERIFIABLE) with evidence. NOT a researcher. Does not discover new topics or cast a wide net. Takes one claim…

drobins25/craft · 178 tokens

unreal-architect

Unreal Engine 5 + C++/Blueprint architecture specialist. Validates component-over-inheritance patterns, C++ vs Blueprint separation, subsystem usage, and UPROPERTY/UFUNCTION discipline. Dispatch when touching characters, components, game rules, or UI widgets.

onlygian/G-Forge · 56 tokens

pygame-architect

Pygame architecture specialist. Validates game-loop discipline, scene/entity separation, asset loading lifecycle, event-handling boundaries, and frame-time budget. Dispatch when touching the main loop, scenes, entities, or input handling.

onlygian/G-Forge · 49 tokens

unity-architect

Unity + C# architecture specialist. Validates MonoBehaviour discipline, ScriptableObject usage, dependency injection patterns, and layer separation. Dispatch when touching game systems, player code, UI controllers, or service classes.

onlygian/G-Forge · 46 tokens