What problem does it solve? Codebases accumulate God classes, duplicated business rules, and scattered permission checks that silently drift and break when requirements change. This Skill performs surgical refactoring that reduces complexity without changing observable behavior, verified by a green test suite before and after every change. ## Core Features & Use Cases - Safe Sequence Refactoring: Applies a risk-ordered workflow (Lock, Extract, Centralize, Split, Cleanup) so structural changes never mix with behavioral changes in the same commit. - Mikado Method Planning: Maps the dependency graph and fixes leaf dependencies first, reverting instead of pushing through when a change breaks. - Business-Risk Diagnosis: Uses a code smell matrix to name the concrete business consequence of each smell, such as authorization drift from duplicated access checks, rather than citing aesthetics. - Use Case: When discount logic is duplicated across CartService, InvoiceService, and ReportService with slight variations, the Skill locks current behavior with tests, extracts a single DiscountCalculator, and swaps call sites one at a time with verification after each. ## Quick Start Ask the assistant to refactor the duplicated discount logic in the cart, invoice, and report services into a single shared service without changing any behavior.