refactor

Installation
SKILL.md

Refactor Skill

Collaborating skills

  • TDD: skill: tdd for guiding through Red-Green-Refactor cycles and ensuring tests are in place before refactoring
  • Design Patterns: skill: design-pattern-adopter for guidance on applying design patterns effectively

Quick Reference

Code Smells Reference

Smell Detection Refactoring
Long function >20 lines Extract Method
Duplicated code Similar logic Extract Method, Pull Up
Long parameter list >3 params Introduce Parameter Object
Large class >10 methods Extract Class
Feature envy Method uses other class Move Method
Switch statements Type checking Replace with Polymorphism
Related skills

More from mguinada/agent-skills

Installs
16
First Seen
Feb 5, 2026