From prefab-sentinel
Applies four-stage variant edits (preflight/dry-run/confirm/runtime) to Unity Prefabs, Scenes, and Assets without corruption. Triggers on patch, set_property, revert_overrides, or Prefab Variant changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/prefab-sentinel:variant-safe-editThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
MCP ツールを直接呼び出す(CLI は廃止済み)。
MCP ツールを直接呼び出す(CLI は廃止済み)。
Provide a deterministic, fail-fast workflow for variant edits with auditability and reference safety.
inspect_variant と validate_refs で事前診断する。patch_apply の dry-run モードで差分を確認する。error / critical で停止。修正を safe_fix または decision_required に分類する。change_reason 必須)。validate_runtime を実行する。inspect_variant — Prefab Variant のオーバーライドチェーン分析validate_refs — 壊れた参照のスキャンpatch_apply — パッチ計画の検証・適用(plan_json で JSON 文字列入力、dry_run/confirm モード)validate_runtime — UdonSharp コンパイル + ClientSim 検証revert_overrides — Variant の特定オーバーライドを削除set_property — シンボルパスでフィールド値を設定Unity Editor 起動中の Editor Bridge を介してパッチ適用・ランタイム検証を実行する(エディタを閉じる必要はない):
export UNITYTOOL_BRIDGE_WATCH_DIR=/path/to/EditorBridge
export UNITYTOOL_UNITY_TIMEOUT_SEC=30
適用後の目視確認:
editor_select → editor_frame で対象を表示editor_screenshot で視覚確認error or critical; do not auto-apply decision_required.UNITYTOOL_BRIDGE_WATCH_DIR; if unavailable, stop after dry-run.validate_refs で broken GUID / fileID が出たら /prefab-sentinel:prefab-reference-repair に切り替える(候補が複数あれば decision_required で保留)。validate_runtime で Udon / ClientSim 例外が出たら /prefab-sentinel:udon-log-triage で分類とアセットマッピングに移る。/prefab-sentinel:guide と docs/tools.md を参照する。npx claudepluginhub tyunta/prefab-sentinel --plugin prefab-sentinelDiagnoses and repairs broken references, Variant overrides, and wiring errors in Unity Prefabs, Scenes, and Assets via MCP tools. Includes Editor Bridge setup for write operations.
Controls the Unity Editor from the terminal via the `ucp` CLI. Automates scenes, GameObjects, assets, builds, tests, packages, and profiling over a WebSocket/JSON-RPC bridge.
Creates and modifies Unity scene and prefab files by writing editor scripts. Use when adding GameObjects, building uGUI hierarchies, or wiring up components in .unity or .prefab files.