/unity-cli:unity-verifyfrom unity-cli
Verifies Unity code changes by triggering refresh, polling for compilation, checking errors, and running tests. Auto-triggers on edits to .cs, .shader, .compute, and assembly definition files.
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 が起動/アクティブであること)
コード変更するたびに実行。unity-shared の Quick Verify (#quick-verify) を参照。skill 経由のコマンドは必ず -i <instance> を付ける (unity-shared #インスタンス指定)。
u -i <instance> console clear
→ u -i <instance> refresh
→ isCompiling ポーリング (2s 間隔, 最大 30s)
→ u -i <instance> console get -l E,W | head -50
u console get の出力に対して以下のテーブルで判定。出力ゼロ行 = エラー無しとして扱う (空 = OK)。
| 出力内容 | 判定 | 次のアクション |
|---|---|---|
| 空 (0 行) | クリーン | 完了。次工程 (Full Verify 等) に進める |
[ERROR] 行のみ無し + [WARN] 行あり | クリーン (Warning 許容) | Warning を 1〜3 行に要約してユーザー報告、続行 |
[ERROR] 行あり | エラー | 下記「修正ループ」へ |
-l E,W は Error + Warning 両方を取得する。Warning だけなら続行可、Error が 1 件でもあれば停止して修正ループに入る。
最大 3 回までの「修正 → Quick Verify 再実行」サイクル。
_ (例: _Broken*.cs) または "Test" "Fixture" 等を含むintentional, TODO, FIXME, tuning 等の意図的破壊を示唆する語があるユーザーが要求した場合のみ。Quick Verify + EditMode テスト。
Quick Verify 実行
→ クリーン (Error 0、Warning は許容) なら u -i <instance> tests run edit → 結果確認
→ Fail あり: 報告、修正して Quick Verify から再実行 (修正ループの規定に従う)
要求された場合のみ。Play Mode でランタイムエラーを検出。
u -i <instance> console clear
→ u -i <instance> play
→ isPlaying ポーリング
→ 3秒待機
→ u -i <instance> console get -l +E+X
→ u -i <instance> stop
報告のみ。自動修正せずユーザーに判断を委ねる。
以下の編集後に Quick Verify を自動実行:
.cs / .shader / .compute.asmdef / .asmrefpackage.json / manifest.json)スキップ: コメントのみの変更、プロジェクト外ファイル、ユーザー指示。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 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-debugランタイムエラー・NullReference・コンソールログの調査ワークフロー。
Use for: "エラー調査", "NullReference", "デバッグ", "コンソール確認", "ログ確認"
/unity-perfパフォーマンス計測ワークフロー。プロファイリング、GC 分析、最適化提案。
Use for: "パフォーマンス", "プロファイル", "FPS", "GC", "最適化", "ボトルネック"
/unity-sceneシーン構築ワークフロー。オブジェクト配置、コンポーネント設定、Prefab化、シーン保存。
Use for: "シーン構築", "オブジェクト配置", "Prefab化", "コンポーネント設定"
npx claudepluginhub bigdra50/unity-cli --plugin unity-cliOther plugins' skills for the same job