smithery/withzombies

refactoring-safely

Use when refactoring code - tracks the refactor in task docs and preserves behavior through small verified changes

Installation

$ npx skills add smithery/withzombies --skill refactoring-safely

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/withzombies.

npx skills add smithery/withzombies

Browse all from smithery/withzombies

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,272 B
  • docs SUMMARY.md 135 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

<skilloverview> Refactor in small truth-preserving steps. Keep the refactor tracked in task docs and stop if behavior starts drifting. </skilloverview>

<rigiditylevel> MEDIUM FREEDOM - Keep the change→test→document loop strict, but adapt the exact refactor pattern to the codebase. </rigiditylevel>

<quick_reference>

  1. Create or resume a refactor task directory
  2. Capture invariants and risks in plan.md
  3. Make one small change at a time
  4. Run tests between steps
  5. Update context.md and tasks.md

</quick_reference>

<whentouse>

  • Behavior should stay the same
  • The current design is painful to change
  • You need a deliberate, reversible refactor path

</whentouse>

<the_process>

1. Track the refactor

Use task docs to capture:

  • invariants that must not change
  • risks
  • target design

2. Refactor in tiny steps

Each step should be small enough to explain and verify on its own.

3. Verify every step

Run the smallest relevant tests after each change.

4. Keep docs current

Update discoveries, remaining risks, and next slices as the refactor unfolds. </the_process>