refactor - Improve code structure without changing behavior
Refactors existing code to improve maintainability, readability, type safety, and design while preserving external behavior.
Tags
Updated: 2026-10-02Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Preserve external behavior
- Extract focused functions
- Rename variables
- Split large classes
- Improve type safety
- Remove code smells
- Apply design patterns
Inputs
- Existing source code
- Code smells
- Test suite
- Refactoring objective
Outputs
- Refactored source files
- Improved code structure
- Test results
