PR prefab and scene review — missing scripts, broken variants, raycasts, hierarchy. Triggers — 'review prefabs', 'prefab review', 'scene review', 'check prefabs'.
Install
npx skillscat add cuozg/oh-my-unity/unity-review-prefab Install via the SkillsCat registry.
unity-review-prefab
Review .prefab and .unity scene files changed in a GitHub PR for missing scripts, broken variants, raycast blockers, and hierarchy issues — using parallel subagents per file.
When to Use
- A PR adds or modifies prefabs or scene files
- Checking for missing MonoBehaviour references after a rename or delete
- Auditing UI canvas hierarchy for raycast-blocker leaks
Workflow
- Fetch PR — list changed files via
gh api repos/{owner}/{repo}/pulls/{pr}/files - Filter prefab/scene files — select
.prefaband.unityfiles - Spawn subagents — one
taskper file (parallel); each subagent receives the file path and checklist - Per-file checks — each subagent reads raw YAML; checks for missing scripts, broken variant bases, orphaned transforms, raycast blockers, and hierarchy depth
- Collect results — aggregate findings from all subagents
- Post comments — build payload and submit via
gh apifor each finding
Rules
- Spawn one subagent per
.prefab/.unityfile — do not process sequentially - Flag
m_Script: {fileID: 0}as CRITICAL (missing MonoBehaviour) - Flag prefab variant with missing base prefab GUID as CRITICAL
- Flag UI
ImageorPanelwithraycastTarget: 1and no interactable component as WARNING - Flag hierarchy depth > 8 levels as NOTE
- Flag transforms with non-uniform scale on rigidbody objects as WARNING
- Flag
activeSelf: 0on root prefab GameObjects as NOTE (likely unintentional) - Flag duplicate component types on the same GameObject (except colliders) as WARNING
- Aggregate per file before posting — one review comment block per file, not per finding
- Use severity prefix:
[CRITICAL],[WARNING],[NOTE]in every comment
Output Format
MANDATORY: Use unity-standards/references/review/pr-submission.md as the output template — JSON payload, event decision, batching rules, and gh CLI commands. All comments MUST be submitted in a single review POST call following that template exactly.
Prefab/scene comments posted to the GitHub PR, grouped by file. Print a local summary of subagent results and CRITICAL count.
Standards
Load unity-standards for prefab review criteria. Key references:
review/pr-submission.md— MANDATORY output template: JSON payload, event decision, batching, gh CLIreview/prefab-checklist.md— missing scripts, variants, nested prefabsreview/unity-lifecycle-risks.md— order-of-execution, null timing, scene load
Load via read_skill_file("unity-standards", "references/review/<file>").