refactor
Installation
SKILL.md
Refactor Skill
Purpose
Improve code structure, readability, and maintainability WITHOUT changing external behavior. Refactoring is the disciplined practice of restructuring existing code -- altering its internal structure without altering its external behavior.
The cardinal rule: After refactoring, the system does exactly what it did before. Only the code is different.
Workflow
Phase 1: Assessment
- Read the target code thoroughly. Understand what it does, how it does it, and why it is structured the way it is.