refactoring

Installation
SKILL.md

Refactoring Skill

Improve code structure and quality while preserving behavior.

Core Principle

Tests are your safety net. Never refactor without tests.

The Refactoring Cycle

  1. Ensure tests exist and pass
  2. Make ONE small change
  3. Run tests (must still pass)
  4. Commit (keep changes isolated)
  5. Repeat

Each step must be reversible. If tests fail, revert and try smaller change.

Pre-Refactoring Checklist

Related skills
Installs
17
GitHub Stars
152
First Seen
Jan 22, 2026