/unity-cli:unity-debugfrom unity-cli
Debugs Unity runtime errors (NullReference, MissingReference) and console logs using unity-cli. Classifies errors, inspects scene hierarchy and components, and verifies fixes.
Ships in unity-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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 に切り替える。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bigdra50/unity-cli --plugin unity-cli9 skills in this plugin
/unity-apiUnity API の探索と実行。u api schema で検索、u api call で任意の public static メソッドを呼ぶ。
Use for: "Unity API 呼び出し", "u api call", "schema 検索", "CLI 非対応操作のフォールバック"
/unity-assetアセット管理ワークフロー。依存関係調査、参照整合性チェック、パッケージ管理。
Use for: "アセット依存", "参照切れ", "パッケージ管理", "不要アセット"
/unity-buildビルドワークフロー。検証 → 設定確認 → ビルド実行 → エラー対応。
Use for: "ビルド", "ビルド実行", "プラットフォーム設定", "ビルドエラー"
/unity-perfパフォーマンス計測ワークフロー。プロファイリング、GC 分析、最適化提案。
Use for: "パフォーマンス", "プロファイル", "FPS", "GC", "最適化", "ボトルネック"
Other plugins' skills for the same job