| name | plan-refactoring |
| description | Identify highest-ROI refactoring targets |
| usage | /plan-refactoring [path] |
| arguments | [{"name":"paths","description":"Paths to analyze","required":false,"default":"."}] |
Plan Refactoring Skill
Find refactoring targets in: {{.paths}}
Quick Start
omen -f json outline --compact --top 50
omen -f json hotspot -n 10
omen -f json clones --min-tokens 50
omen -f json satd | jq '.items[] | select(.category == "design")'
omen -f json impact --symbol <symbol-name> --depth 2
Priority Matrix
| Finding | Effort | ROI |
|---|
| Hotspot with clones | Medium | High |
| God component | High | High |
| Isolated clone | Low | Medium |
| Low-churn debt | Low | Low |
Effort Guide
- Extract function: 30min - 2hr
- Split class: 2hr - 1 day
- Break cycle: 1-3 days
- Extract module: 1-2 weeks
Sequencing
- Quick wins: hotspot + low complexity
- Clone extraction
- God components (dedicated sprint)