What problem does it solve? Codebases accumulate technical debt: long functions, duplicated logic, magic numbers, and god classes that make features hard to add and bugs easy to introduce. This Skill provides a structured playbook for cleaning up code incrementally while preserving existing behavior. ## Core Features & Use Cases - Code Smell Catalog: Identifies and fixes 10 common smells including long methods, duplicated code, feature envy, primitive obsession, and nested conditionals, each with before/after examples. - Refactoring Techniques: Covers extract method, introducing type safety, guard clauses, and design patterns like Strategy and Chain of Responsibility. - Safe Process Workflow: Enforces a test-first, small-steps, commit-often methodology with a quality checklist. - Use Case: When a user says "clean up this 200-line function" or "this class does too much", the Skill guides breaking it into focused units, verifying tests pass after each step. ## Quick Start Ask the AI to refactor a specific file or function to reduce duplication and improve readability without changing its behavior.