refactoring-patterns

Installation
SKILL.md

Refactoring Patterns

Systematically improve code without changing its behavior.

The Refactoring Workflow

  1. Identify a code smell or pain point
  2. Ensure you have tests (write them first if not)
  3. Apply one refactoring at a time
  4. Test after each change (green = continue, red = revert)
  5. Commit — small, focused, descriptive
  6. Repeat

Extract Method

When: A method does multiple things or is too long. How: Find a cohesive block → extract to new method → call it.

Installs
11
GitHub Stars
464
First Seen
May 16, 2026
refactoring-patterns — cosmicstack-labs/mercury-agent-skills