What problem does it solve? Refactoring code without a structured approach risks breaking behavior, losing test coverage, and creating unreviewable changes. This Skill provides proven patterns and safety checklists for restructuring code while preserving behavior. ## Core Features & Use Cases - Extract Patterns: Extract methods, classes, interfaces, modules, constants, and variables from bloated or duplicated code. - Rename Patterns: Safely rename variables, functions, classes, and modules with gradual deprecation strategies and dynamic-reference detection. - Move & Simplify Patterns: Relocate methods, fields, and classes between modules, and reduce complexity with guard clauses, polymorphism, and parameter objects. - Use Case: You inherit a 500-line utils.py with duplicated validation logic. Use this Skill to split it into cohesive modules, extract shared validation functions, and verify each step with tests. ## Quick Start Refactor the long process_order function in checkout.py by extracting validation, discount, and payment logic into separate methods while keeping all tests passing.