refactor - Improve code structure without changing behavior
Gradually refactors existing code to improve maintainability, readability, type safety, and architecture while preserving external behavior.
Tags
Updated: 2026-12-03Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Extract functions
- Rename variables
- Break down large functions
- Improve type safety
- Eliminate code smells
- Apply design patterns
- Preserve external behavior
- Enforce layer separation
Inputs
- Existing codebase
- Refactoring target
- Test suite
- Architecture constraints
Outputs
- Refactored source files
- Updated test files
- Improved code structure
Requirements
- Codebase access
- Permission to modify files
