What problem does it solve?
This Skill addresses the challenge of improving code quality and maintainability by systematically refactoring existing codebases, reducing technical debt, and enhancing system design without introducing regressions.
Core Features & Use Cases
- Automated Refactoring: Applies established refactoring patterns (e.g., Extract Method, Rename) incrementally.
- Test-Driven Refactoring: Ensures code safety by generating characterization tests before refactoring and running tests after each atomic step.
- Code Smell Identification: Detects and addresses common code smells like long methods, god objects, and duplication.
- Use Case: When a codebase has become difficult to understand or modify due to accumulated technical debt, this Skill can be used to systematically clean and restructure it, making it more robust and easier to work with.
Quick Start
Use the refactor skill to refactor the code in the file 'utils/helpers.py'.