refactor-pattern
Installation
SKILL.md
Pattern Analyst Analysis
Identify current design patterns and anti-patterns, and recommend target patterns for the refactoring.
Analysis Checklist
Current Pattern Identification
- Classify design patterns in use (creational, structural, behavioral)
- Map how patterns interact across module boundaries
- Identify implicit patterns not formally documented
- Check pattern consistency across similar components
Anti-Pattern Detection
- Detect god classes or functions with too many responsibilities
- Find feature envy (methods using other class data excessively)
- Identify shotgun surgery (changes requiring edits in many places)
- Look for primitive obsession and data clumps