unity-debug

unity-debug is a skill for Claude Code from bigdra50/unity-cli. It costs 51 tokens per session (602 once invoked), scanned A, original, MIT.

A workflow for investigating runtime errors in the Unity game-development editor, including null references and console messages.

In plain words
What is it for?
Use it to read Unity console errors, inspect scene hierarchies and components, find missing assets or references, clear logs, and verify the resulting fix.
Why use it?
It gives a structured way to classify errors and inspect the relevant scene, components, assets, and logs instead of debugging from incomplete information.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **PREREQUISITE:** `../unity-shared/SKILL.md`(Relay Server 経由で Unity Editor が起動/アクティブであること).

Part of the unity-cli plugin — 9 skills, 1 hook shipped together

Good fit Use it to read Unity console errors, inspect scene hierarchies and components, find missing assets or references, clear logs, and verify the resulting fix.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/bigdra50/unity-cli
agentmods
npx agentmods add skills/bigdra50/unity-cli/unity-debug

Made for: Claude Code.

Or install unity-cli, the plugin that ships this one along with the rest of its 9 skills, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/bigdra50/unity-cli/unity-debug/github.svg)](https://agentmods.dev/skills/bigdra50/unity-cli/unity-debug)
Your own site
<a href="https://agentmods.dev/skills/bigdra50/unity-cli/unity-debug"><img src="https://agentmods.dev/badge/skills/bigdra50/unity-cli/unity-debug/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-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/bigdra50/unity-cli/unity-debug"><img src="https://agentmods.dev/badge/skills/bigdra50/unity-cli/unity-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 602 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.00051 $0.00602
Opus 5.5 $0.00020 $0.00241
Sonnet 5.5 $0.00010 $0.00120
Haiku 4.5 $0.00005 $0.00060

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

Security

Grade A, and why

unity-debug 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 3mo 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.

skills/unity-debug/SKILL.md · 58 lines

What it actually says

unity-debug

PREREQUISITE: ../unity-shared/SKILL.md(Relay Server 経由で Unity Editor が起動/アクティブであること)

skill 経由のコマンドは必ず -i <instance> を付ける (unity-shared #インスタンス指定)。

調査フロー

1. エラー取得      u -i <instance> console get -l E,X | head -20
2. エラー分類      → コンパイルエラー / ランタイムエラー / Missing 系
3. コンテキスト収集  u -i <instance> scene hierarchy / u -i <instance> component inspect / u -i <instance> screenshot
4. 原因特定 → 修正 → /unity-verify で検証

エラー分類と対応

エラー種別 対応
CS0XXX (コンパイルエラー) コード修正 → /unity-verify
NullReferenceException u -i <instance> scene hierarchy + u -i <instance> component inspect で参照確認
MissingReferenceException u -i <instance> asset info でアセット存在確認
MissingComponentException u -i <instance> component list で確認 → u -i <instance> component add

コンソール操作

u -i <instance> console get                   # 全ログ
u -i <instance> console get -l E | head -10   # Error のみ、先頭10件
u -i <instance> console get -l E,W            # Error + Warning
u -i <instance> console clear                 # ログクリア

状態確認

u -i <instance> screenshot          # エディタのスクリーンショット
u -i <instance> scene hierarchy     # 現在のシーン構造
u -i <instance> state               # Play/Pause/Compile 状態

コンパイルエラーが解決しない場合は /unity-verify に切り替える。

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. 3mo ago First seen · 58 lines · 51 tokens per session scan A 871c0dc681b0

Subscribe to this mod's changes

unity-debug is a skill published in the GitHub repository bigdra50/unity-cli (39 stars, last pushed 5mo ago), licensed MIT. It adds 51 tokens to every session and 602 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

unity-debug compared with skills from other repositories

unity-debug next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
unity-debugbigdra50/unity-cliSkill395mo agoMITA51Claude Code
uloop-get-project-infohatayama/unity-cli-loopSkill612todayMITA34Claude Code, Codex
aibridge-code-indexliyingsong99/AIBridgeSkill23024d agoMITA70Claude Code, Codex
aibridge-development-workflowliyingsong99/AIBridgeSkill23024d agoMITA86Codex
find-and-setup-analysis-rulenowsprinting/unity-coding-skillsSkill203d agoUnlicenseA120Claude Code
resolve-diagnosticsnowsprinting/unity-coding-skillsSkill203d agoUnlicenseA72Claude Code
gamedev-physicsericrisco/rsc-harnessSkill7072d agoMITA102Claude Code, Codex