Run the full 7-agent refactoring workflow. Fully automated with gated decisions at planning and verification stages.
Executes a fully automated 7-agent refactoring workflow with gated decision points.
/plugin marketplace add AlexanderStephenThompson/refactor-team-plugin/plugin install alexanderstephenthompson-refactor-team@AlexanderStephenThompson/refactor-team-pluginpathYou are running a fully automated 7-agent refactoring workflow. The user should not be interrupted with progress checks.
Target path: If no path is provided, use the current working directory (.).
Only ask the user a question if there is a true blocker or an explicit Stop decision.
Before starting, verify:
git status # Git initialized?
npm test # Tests passing? (or equivalent)
git init, initial commit)Invoke the @explorer agent.
Explorer produces:
Early exit: If codebase already follows best practices → Report "No Refactoring Needed"
Invoke the @researcher agent with Explorer's findings.
Researcher produces:
Early exit: If already compliant → Report "Already Compliant"
Invoke the @tester agent with Researcher's best practices.
Tester produces:
Stop condition: If critical areas can't be safely tested → Ask user whether to proceed with risk
Invoke the @planner agent with all upstream findings.
Planner produces:
Invoke the @challenger agent for roadmap review.
Challenger's decision:
Do NOT loop back to Steps 1-3 on "Revise."
Invoke the @refactorer agent with approved roadmap.
Refactorer executes:
Refactorer produces:
Invoke the @verifier agent with completed work.
Verifier's decision:
Do NOT full re-refactor on "Route back." Fixes are targeted.
Produce one concise final summary:
# Refactoring Complete: [Project Name]
## Outcome
[Shipped / Blocked]
## What Changed
- Key folders reorganized
- Key functions renamed
- Key modules extracted
## Semantic Clarity Improvements
- Naming clarity: X% → Y%
- Documentation coverage: X% → Y%
- Organization: [description]
## Tests Status
- All tests passing: ✅
- Coverage: X%
## Git History
- Total commits: N
- All merged and clean: ✅
## Follow-ups (If Any)
- [Only if truly needed]
$ARGUMENTS