What problem does it solve? Legacy codebases accumulate code smells like long methods, duplicated logic, and tangled conditionals that slow down development and hide bugs. This Skill provides a disciplined catalog of named refactoring transformations so you can restructure code safely, one small verified step at a time, without changing observable behavior. ## Core Features & Use Cases - Smell-Driven Diagnosis: Identify code smells across five families (Bloaters, OO Abusers, Change Preventers, Dispensables, Couplers) and map each to its prescribed refactoring. - Named Transformation Catalog: Apply proven refactorings such as Extract Method, Move Method, Replace Conditional with Polymorphism, and Introduce Special Case, organized across composing methods, moving features, organizing data, and simplifying conditionals. - Safe Workflow Discipline: Follow the test-refactor-test-commit cycle, the Rule of Three, and patterns like Branch by Abstraction and Parallel Change for large-scale changes. - Use Case: When reviewing a 300-line legacy class with nested switch statements, use this Skill to identify the smells, score the code 0-10, and produce a step-by-step refactoring plan with test guards at each stage. ## Quick Start Ask the AI to review this class for code smells and apply the appropriate refactoring patterns to reach a 10/10 structural quality score.