refactor
Installation
SKILL.md
Refactor Skill
Entry-point guard: This is a user-invoked command skill (
/refactor). If you are a spawned subagent, do NOT execute this skill — return to your assigned scope card.
Purpose
Safely restructure existing code while preserving behavior. Uses a different mindset than greenfield feature development: understand first, then change structure.
Requirement Elicitation
Determine refactoring source before proceeding:
Path A — Human-Specified
User provides a specific, actionable target:
- ✅
/refactor extract storage interface in task feature - ✅
/refactor split user handler into separate auth handler - ✅
/refactor migrate callbacks to async/await in notification service→ Proceed directly to Phase 1