What problem does it solve? Unity projects often accumulate spaghetti code, bloated MonoBehaviours, and tightly coupled systems that become hard to maintain. This Skill detects architectural anti-patterns in your codebase and prescribes the correct Gang of Four or game-specific design pattern to fix them. ## Core Features & Use Cases - Anti-Pattern Detection: Scans open or recently modified files for red flags like 150+ line MonoBehaviours, enum switch chains, direct cross-system references, and Instantiate calls in gameplay loops. - Pattern Decision Engine: Maps detected signals to concrete patterns (FSM, Object Pool, Observer, Event Bus, Service Locator, DI) with primary and fallback options tailored to project lifecycle and layer (Framework vs Domain). - Proactive Intervention: Interrupts mid-task when it detects bidirectional coupling, new Singletons, or missing state machines, and proposes a refactor path. - Use Case: You ask the AI to refactor an enemy AI script with a 6-branch enum switch; it halts, diagnoses the missing state machine, and delivers an FSM skeleton with a tradeoff matrix and integration checklist. ## Quick Start Ask the AI to review your current Unity script for architectural problems and recommend the right design pattern with a C# skeleton.