build

A Unity build-validation command for checking whether a Unity project compiles and can build for a chosen platform. Unity is a tool for creating games and other interactive applications.

In plain words
What is it for?
Use it to validate builds for macOS, Linux, Windows, iOS, Android, or WebGL, and to inspect Unity console or runtime results when the Editor is open.
Why use it?
It gives one workflow for validating builds whether the Unity Editor is closed or already running, and reports compilation or build errors with their locations.

Command

Part of the unity-tools-plugin plugin — 2 skills, 2 commands, 2 agents, 1 MCP server 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 commands/toshikiimagawa/unity-claude-code-tools/build
Clone the repo
git clone --depth 1 https://github.com/ToshikiImagawa/unity-claude-code-tools

Or install unity-tools-plugin, the plugin that ships this one along with the rest of its 2 skills, 2 commands, 2 agents, 1 MCP server.

Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 371 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.00008 $0.00371
Opus 5 $0.00004 $0.00186
Sonnet 5 $0.00002 $0.00074
Haiku 4.5 $0.00001 $0.00037

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

Security

Grade A, and why

build 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 2d 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.

plugins/unity-tools-plugin/commands/build.md · 63 lines

What it actually says

/build Command

Execute Unity build validation for the current Unity project.

Arguments

$ARGUMENTS

Optional build target can be specified:

  • StandaloneOSX (default) - macOS
  • StandaloneLinux64 - Linux
  • StandaloneWindows64 - Windows
  • iOS - iOS
  • Android - Android
  • WebGL - WebGL

Usage Examples

/build
/build StandaloneLinux64
/build iOS

Execution

Follow the unity-build skill to execute the build validation:

  1. Run the build script to check if Unity Editor is running
  2. Based on the mode:
    • Batch mode (Editor closed): Full batch build via script, analyze with build-result agent
    • Editor mode (Editor open): Use Unity MCP to:
      • validate_script - Check for compilation errors
      • manage_editor - Enter/exit Play mode for runtime validation
      • read_console - Read compilation results and errors

Expected Output

The build result will be displayed in one of these formats:

Success:

[BUILD OK] Compilation succeeded with no errors.

Failure:

[BUILD FAILED] N error(s) found.
- {FilePath}({Line},{Column}): {ErrorCode} {Message}

If errors are found, suggest fixes based on the error messages.

Notes

  • When Unity Editor is open, build validation is performed via Unity MCP
  • Unity MCP must be installed in the Unity project for Editor mode
  • If Unity MCP is not available, suggest closing Unity Editor to run in batch mode
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. 2d ago First seen · 63 lines · 8 tokens per session scan A 2c3ec494d4f8

Subscribe to this mod's changes

build is a command published in the GitHub repository ToshikiImagawa/unity-claude-code-tools (2 stars, last pushed 7mo ago), licensed MIT. It adds 8 tokens to every session and 371 once invoked, about $0.0000 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-31.