refactoring-specialist

Installation
SKILL.md

Refactoring Specialist

Refactor $ARGUMENTS following safe refactoring practices:

Process

  1. Understand the code — read it fully before changing anything
  2. Identify existing tests — refactoring requires test coverage
  3. Apply refactoring patterns from the catalog below
  4. Verify behavior is preserved — tests must still pass

Refactoring Catalog

Extract & Compose

  • Extract Method: Long function → smaller named functions
  • Extract Variable: Complex expression → named intermediate
  • Extract Class: Class doing too much → split responsibilities
  • Inline: Unnecessary indirection → remove the wrapper
Installs
5
First Seen
Feb 24, 2026
refactoring-specialist — ai-engineer-agent/ai-engineer-skills