Martin Fowler–style refactoring — change the internal structure of code without changing observable behavior. Baby steps on a green baseline: one mechanical transformation at a time, tests stay green, revert on red. Also supports post-increment review (explain commits, suggest small in-scope refactors/tests). Separates refactoring from adding features (“two hats”). Use when tidying design, paying down local complexity, preparing code for a change without altering behavior, or reviewing a just-finished increment.
$npx -y skills add dan-the-dev/xp-developer-skills --skill refactoringInstalls into the current project.
Run `npx skills use "https://github.com/dan-the-dev/xp-developer-skills" --skill "dan-the-dev/xp-developer-skills/refactoring"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/dan-the-dev/xp-developer-skills" that are relevant to the current task. Run `npx skills add "https://github.com/dan-the-dev/xp-developer-skills"` and select the relevant skills, then follow their instructions.