build-unity

build-unity is a command for Claude Code from solanabr/solana-ai-kit. It costs 17 tokens per session (697 once invoked), scanned A, original, MIT.

A command that builds a Unity game for WebGL, desktop, or PSG1, a supported PlaySolana game target. Unity is a game engine, and Solana is the blockchain integration used by the project.

In plain words
What is it for?
Use it to verify the Unity project and version, inspect available build targets, check for Solana.Unity-SDK or PlaySolana, and run pre-build checks.
Why use it?
It checks that the project and relevant Solana SDKs are present before starting a build, helping reveal setup problems early.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to verify the Unity project and version, inspect available build targets, check for Solana.Unity-SDK or PlaySolana, and run pre-build checks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/solanabr/solana-ai-kit/build-unity
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/solanabr/solana-ai-kit

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/build-unity/github.svg)](https://agentmods.dev/commands/solanabr/solana-ai-kit/build-unity)
Your own site
<a href="https://agentmods.dev/commands/solanabr/solana-ai-kit/build-unity"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/build-unity/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 build-unity

Your own site · 80×15
<a href="https://agentmods.dev/commands/solanabr/solana-ai-kit/build-unity"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/build-unity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 697 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.00017 $0.00697
Opus 5.5 $0.00007 $0.00279
Sonnet 5.5 $0.00003 $0.00139
Haiku 4.5 $0.00002 $0.00070

Measured 25d ago against content hash 77c8124f4595, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-unity 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 25d 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/commands/build-unity.md · 23 lines

How it starts

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

Build the Unity project for the target in $ARGUMENTS: webgl (default), win64, osx, android or psg1. References: solana-game SKILL.md, unity-sdk.md (wallet login per platform), playsolana.md (PSG1 build configuration).

Steps

  1. Find the editor for the version in ProjectSettings/ProjectVersion.txt: macOS /Applications/Unity/Hub/Editor/<version>/Unity.app/Contents/MacOS/Unity, Windows C:\Program Files\Unity\Hub\Editor\<version>\Editor\Unity.exe, Linux ~/Unity/Hub/Editor/<version>/Editor/Unity. The unity-editor command exists only in GameCI images.
  2. Check that Packages/manifest.json lists com.solana.unity-sdk (plus com.playsolana.sdk for PSG1) and that the target's platform module (WebGL or Android Build Support) is installed.
  3. Use Assets/Editor/BuildScript.cs if it exists. Otherwise create it with one static method per target that builds the enabled scenes from EditorBuildSettings.scenes into Build/<Platform>/ and calls EditorApplication.Exit(1) when report.summary.result != BuildResult.Succeeded. Without that call, batchmode exits 0 on a failed build.
  4. Run <Unity> -quit -batchmode -nographics -projectPath . -buildTarget <target> -executeMethod BuildScript.<Method> -logFile build.log (-logFile - streams to stdout). CLI target names are WebGL, Win64, OSXUniversal, Linux64 and Android, unlike the C# enum (BuildTarget.StandaloneWindows64, BuildTarget.StandaloneOSX). On failure, search build.log for error CS and the build report errors.
  5. PSG1 builds for Android: ARM64 only (which requires the IL2CPP backend), minimum API level 30, portrait orientation (1080x1240), Vulkan plus GLES3, package ID com.playsolana.games.<game>, and the PLAYSOLANA_PSG1 scripting define. Set these in the build method; playsolana.md has the settings snippet. Add PSG1 code paths only when the user targets PSG1.

Read the full file on GitHub · 23 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. 25d ago Changed · -354 lines · +4 tokens per session 77c8124f4595
  2. 1mo ago First seen · 377 lines · 13 tokens per session scan A a8a535379a0f

Subscribe to this mod's changes

build-unity is a command published in the GitHub repository solanabr/solana-ai-kit (104 stars, last pushed 26d ago), licensed MIT. It adds 17 tokens to every session and 697 once invoked, about $0.0001 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.