refactoring - Refactor existing code safely with tests
Diagnose code smells, select Fowler refactorings, and apply them in small, tested steps without changing observable behavior.
Tags
Updated: 2026-09-28Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Diagnose code smells
- Select refactoring techniques
- Establish a test safety net
- Apply refactorings incrementally
- Run compilation and tests
- Review refactoring outcomes
Inputs
- Existing codebase
- Existing test suite
- Refactoring target
- Programming language
Outputs
- Refactored source code
- Additional automated tests
- Step-by-step refactoring guidance
- Compilation and test results
Requirements
- Access to the codebase
- Automated test capability
- Compilation or build capability
