What problem does it solve? Mechanical refactoring (extract-method, extract-helper) often fails to meet engineering-grade standards, leaving codebases inconsistent and hard to extend. This Skill replaces ad-hoc cleanup with a disciplined, architecture-first workflow that enforces type-system constraints, intent-revealing APIs, interface-based dependencies, and whole-project consistency. ## Core Features & Use Cases - Six Quality Gates: Enforces type-system constraints over runtime validation, intent-revealing API names, interface-based dependencies, orchestration/implementation separation, whole-project consistency, and Razor-first parity. - Plan-Approve-Execute Workflow: Maps the full project scope, writes a phased refactoring plan in docs/refactoring/, gets explicit user approval, then executes with build/test verification after each phase. - Detailed Reference Procedures: Includes value-type migration cascades (string to strong ID, double to Ratio), Blazor component extraction patterns, a quality checklist, and a plan template. - Use Case: A user rejects mechanical dedup on a Blazor dock layout project and asks for Microsoft-level engineering quality; the agent reverts the rejected changes, writes a multi-phase plan covering value-type migration and orchestrator extraction, then executes with a final whole-project consistency pass. ## Quick Start Ask the agent to refactor the entire project to engineering-grade quality with a written plan for approval before any code changes.