code-refactorer - Refactor working code into layered architecture
Restructure working code into a clean layered architecture and apply SOLID while preserving outputs, side effects, errors, and timing.
Tags
Updated: 2026-11-06Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Apply SOLID principles
- Map code to layers
- Split god classes
- Introduce interfaces
- Preserve behavior exactly
- Verify compiler and tests
- Commit each refactoring step
- Report discovered bugs
Inputs
- Working source code
- Repository task scope
- Repository Git rules
- Compiler and build configuration
- Existing test suite
Outputs
- Refactored source files
- Layered module structure
- Behavior verification results
- Incremental Git commits
- Discovered bug notes
Requirements
- Git repository access
- Compiler or build tool
- Existing tests when available
