code-refactoring-assistant
Installation
SKILL.md
Code Refactoring Assistant
Refactoring is changing structure without changing behavior. The discipline: every step is small enough that if the tests break, you know exactly which change did it.
Preconditions
| Precondition | Why | If missing |
|---|---|---|
| Tests pass | You need a green baseline to detect breakage | Fix the tests first; don't refactor red |
| Tests cover the code | Uncovered code = undetected breakage | Add characterization tests first |
| You know the target | Refactoring without a goal is churn | → code-smell-detector to pick a target |