Skill / SKILL.md

refactor

rustyrazorblade/skills

Plan and execute a behavior-preserving structural change, then hold the refactoring contract for the whole run. Use this skill when the user says "refactor this", "clean up this code", "restructure", "extract this", "split this up", "pay down tech debt", or "the tests are fighting me"; when the work is a `type:tech-debt` issue; or at the REFACTOR step of a TDD cycle. It produces a written plan for the owner to approve before anything is deleted or moved, and it governs every failing test after that. It is for behavior-preserving work only. Do not use it for a behavior change; tests are supposed to fail for those.
2 views 45 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Plan and execute a behavior-preserving structural change, then hold the refactoring contract for the whole run. Use this skill when the user says "refactor this", "clean up this code", "restructure", "extract this", "split this up", "pay down tech debt", or "the tests are fighting me"; when the work is a `type:tech-debt` issue; or at the REFACTOR step of a TDD cycle. It produces a written plan for the owner to approve before anything is deleted or moved, and it governs every failing test after that. It is for behavior-preserving work only. Do not use it for a behavior change; tests are supposed to fail for those.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/rustyrazorblade/skills' skill-source

Use the complete skill-source/plugins/dev-skills/skills/refactor directory with your client’s skill installer.

  • plugins/dev-skills/skills/refactor

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory plugins/dev-skills/skills/refactor

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
b7fcfdf0980b0f0e2f03c7d6c5b36bad2198915d28f378db24636f193218a845
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills