Code Refactoring Planner
Analyzes code smells and creates a safe, incremental refactoring plan with test coverage requirements.
Plan a refactoring for {{codebase_description}}. Problem areas: {{problem_areas}}. Test coverage: {{test_coverage}}. Create: (1) code smell inventory with type (long method, god class, feature envy, etc.), (2) refactoring technique for each smell (extract method, introduce parameter object, etc.), (3) dependency graph showing safe refactoring order, (4) test-first approach: which tests to write before refactoring, (5) incremental steps that each leave the code working, (6) estimated effort per s...