refactor-code

Installation
SKILL.md

Refactor Code

Systematic approach to refactoring code safely.

Triggers

  • Function > 50 lines
  • File > 300 lines
  • Duplicate code (3+ instances)
  • Complex conditionals (> 3 levels deep)
  • any types
  • Hard to test or understand

Steps

1. Write Tests First

Test current behavior comprehensively before changing anything.

Related skills
Installs
6
GitHub Stars
22
First Seen
Apr 9, 2026