refactor-guide

Installation
SKILL.md

Refactoring Guide

Refactoring Principles

  1. Tests first - Never refactor without test coverage
  2. Small steps - One change at a time, commit frequently
  3. Behavior unchanged - Refactoring ≠ feature change
  4. Clear purpose - Know WHY you're refactoring

When to Refactor

Good reasons:

  • Adding a feature is harder than it should be
  • Bug fixes keep touching the same code
  • Code is hard to understand after a break
  • Duplicate code across multiple places
  • Performance requires structural change
Related skills
Installs
3
First Seen
Feb 19, 2026