Orchestrate Command
Sequential agent workflow for complex tasks.
Usage
/orchestrate [workflow-type] [task-description]
Workflow Types
feature
Full feature implementation workflow:
code
planner -> tdd-guide -> code-reviewer -> security-reviewer
bugfix
Bug investigation and fix workflow:
code
explorer -> tdd-guide -> code-reviewer
refactor
Safe refactoring workflow:
code
architect -> code-reviewer -> tdd-guide
security
Security-focused review:
code
security-reviewer -> code-reviewer -> architect
Execution Pattern
For each agent in the workflow:
- •Invoke agent with context from previous agent
- •Collect output as structured handoff document
- •Pass to next agent in chain
- •Aggregate results into final report
Handoff Document Format
Between agents, create handoff document:
markdown
## HANDOFF: [previous-agent] -> [next-agent] ### Context [Summary of what was done] ### Findings [Key discoveries or decisions] ### Files Modified [List of files touched] ### Open Questions [Unresolved items for next agent] ### Recommendations [Suggested next steps]
Final Report Format
code
ORCHESTRATION REPORT ==================== Workflow: feature Task: Add user authentication Agents: planner -> tdd-guide -> code-reviewer -> security-reviewer SUMMARY ------- [One paragraph summary] AGENT OUTPUTS ------------- Planner: [summary] TDD Guide: [summary] Code Reviewer: [summary] Security Reviewer: [summary] FILES CHANGED ------------- [List all files modified] TEST RESULTS ------------ [Test pass/fail summary] SECURITY STATUS --------------- [Security findings] RECOMMENDATION -------------- [SHIP / NEEDS WORK / BLOCKED]
Arguments
$ARGUMENTS:
- •
feature <description>- Full feature workflow - •
bugfix <description>- Bug fix workflow - •
refactor <description>- Refactoring workflow - •
security <description>- Security review workflow - •
custom <agents> <description>- Custom agent sequence
Tips
- •Start with planner for complex features
- •Always include code-reviewer before merge
- •Use security-reviewer for auth/payment/PII
- •Keep handoffs concise - focus on what next agent needs
- •Run verification between agents if needed