refactor - Refactor code without changing behavior
Restructure code using Fowler's refactoring catalog to improve maintainability while preserving external behavior.
Tags
Updated: 2026-11-07Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Identify code smells
- Select Fowler techniques
- Extract and move code
- Simplify conditional logic
- Preserve external behavior
- Verify changes with tests
Inputs
- Source code
- Existing tests
- Codebase history
- Refactoring request
Outputs
- Refactored source code
- Characterization tests
- Test results
- Version-control commits
Requirements
- Clean version-control state
- Test execution environment
- Access to the target codebase
