Systematic safe refactoring with verification at each step. Resolves DRY violations, splits large files, extracts patterns, removes dead code, and aligns conventions — all while preserving behavior. Use when the user says "refactor", "clean up", "extract", "simplify", "DRY this up", or after rem-audit/rem-review-code identifies issues to fix.
$npx -y skills add darbin/claudecraft --skill rem-refactorInstalls into the current project.
Run `npx skills use "https://github.com/darbin/claudecraft" --skill "darbin/claudecraft/rem-refactor"` 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/darbin/claudecraft" that are relevant to the current task. Run `npx skills add "https://github.com/darbin/claudecraft"` and select the relevant skills, then follow their instructions.