What problem does it solve?
This Skill addresses the challenge of improving code structure and maintainability without introducing regressions or altering functionality, ensuring code quality and reducing technical debt.
Core Features & Use Cases
- Safe Refactoring: Enforces a disciplined approach with passing tests as a prerequisite.
- Incremental Changes: Guides users to make one structural change at a time.
- Behavior Preservation: Ensures that refactoring does not change the code's functional output.
- Use Case: When code becomes difficult to read or extend, this skill helps systematically improve its design by applying techniques like extract function or rename variable, all while guaranteeing existing functionality remains intact.
Quick Start
Use the refactor skill to extract the validation logic from the CreateUser function into a new, separate function.