// Choose and execute orchestration commands (/solo for straightforward tasks, /spec for planning, /conduct for complex features with SPEC.md). Covers decision tree, sub-agents, validation standards, and best practices. Use when planning complex tasks or understanding orchestration patterns.
| name | Orchestration Workflow |
| description | Choose and execute orchestration commands (/solo for straightforward tasks, /spec for planning, /conduct for complex features with SPEC.md). Covers decision tree, sub-agents, validation standards, and best practices. Use when planning complex tasks or understanding orchestration patterns. |
| allowed-tools | Read |
Purpose: Decision framework for choosing and executing orchestration commands based on task complexity.
See also: reference.md for detailed phase-by-phase workflows, sub-agent descriptions, and troubleshooting.
Do you have a clear, straightforward task?
├─ YES → /solo
│ ├─ Generates minimal spec internally
│ ├─ Delegates to sub-agents
│ ├─ Tests + validates (6 reviewers)
│ └─ Fast iteration (~10-20k tokens)
│
└─ NO → Need to explore/plan first?
├─ YES → /spec
│ ├─ Investigation
│ ├─ Challenge mode
│ ├─ Spikes
│ ├─ Creates .spec/SPEC.md
│ └─ Then → /conduct
│
└─ Have .spec/SPEC.md already?
└─ YES → /conduct
├─ 7 phases (full orchestration)
├─ Worktree variants
├─ 6 reviewers per component
└─ Comprehensive (~50k+ tokens)
Golden rule: Start simple (try /solo first), escalate if needed.
| Aspect | /solo | /spec | /conduct |
|---|---|---|---|
| Use Case | Straightforward tasks | Investigation & planning | Complex multi-component features |
| Prerequisites | None | None | .spec/SPEC.md (from /spec) |
| Spec Format | Minimal (BUILD_taskname.md) | Creates full SPEC.md | Reads existing SPEC.md |
| Sub-Agents | 8-10 total | N/A (just main agent) | 15-30+ total |
| Reviewers | 6 reviewers | N/A | 6 reviewers per component |
| Token Budget | 10-20k tokens | Varies | 50k+ tokens |
| File Scope | 1-3 files | N/A | Multi-component |
| Validation | Same rigor as /conduct | Spikes in /tmp | Same rigor as /solo |
YES to /solo:
NO to /solo (escalate to /conduct):
Generate Minimal Spec - Create .spec/BUILD_taskname.md
~/.claude/templates/spec-minimal.mdImplementation - Spawn implementation-executor
Validation & Fix Loop - Get it working first
Testing - Lock in behavior
Documentation Validation - Ensure accuracy
CLAUDE.md Optimization - Check hierarchical best practices
Complete - Update BUILD spec with gotchas, final summary
Total: 8-10 agents
NO SKIMPING - Same rigor as /conduct:
YES to /spec:
Output: .spec/SPEC.md ready for /conduct
See reference.md for detailed steps in each phase.
3 Optional Sections: 11. Testing Strategy (recommended - see testing-standards skill) 12. Custom Roles 13. Evolution Log
CRITICAL for /conduct:
.spec/
├── MISSION.md # Goal (50-100 lines, never changes)
├── CONSTRAINTS.md # Hard requirements
├── DISCOVERIES.md # Learnings (<50 lines, prune regularly)
├── ARCHITECTURE.md # Design (50-100 lines, evolves)
├── ASSUMPTIONS.md # Explicit assumptions to validate
├── SPIKE_RESULTS/ # Immutable spike results
├── SPEC.md # Final spec for /conduct (10+ sections)
├── SPEC_1_component.md # Component 1 phase spec
├── SPEC_2_component.md # Component 2 phase spec
└── ...
YES to /conduct:
Prerequisites: .spec/SPEC.md MUST exist (from /spec) - REQUIRED
If no SPEC.md: Tell user to run /spec first, then STOP.
See reference.md for detailed steps in each phase.
When: Multiple valid approaches, architectural uncertainty, high-risk changes
Process:
~/.claude/scripts/git-worktree variant-a variant-b~/.claude/scripts/git-worktree --cleanup| Category | Agents | Total |
|---|---|---|
| Implementation | skeleton-builder, test-skeleton-builder, implementation-executor, test-implementer | 4 |
| Validation | security-auditor, performance-optimizer, code-reviewer (3x), code-beautifier | 6 |
| Fixing | fix-executor | 1 |
| Analysis | investigator, merge-coordinator, general-builder | 3 |
Total: 15-30+ agents (scales with component count)
See reference.md for detailed agent descriptions.
Same rigor as /solo - NO SHORTCUTS:
See: testing-standards skill or ~/.claude/docs/TESTING_STANDARDS.md
3-Layer Pyramid:
Coverage Targets: Unit ≥95%, Integration ≥85%, E2E critical paths
Both /solo and /conduct use 6 reviewers:
Fix-Validate Loop:
Documentation Validation:
When: After each major step/phase
Format: [type]([scope]): [description] + body (why, not what) + Claude Code footer
Examples: feat(auth): add JWT, fix(auth): resolve audit findings, test(auth): 95% coverage
| Agent | Purpose | Category |
|---|---|---|
| skeleton-builder | Create production file skeletons | Implementation |
| test-skeleton-builder | Create test file skeletons | Implementation |
| implementation-executor | Implement full functionality | Implementation |
| test-implementer | Implement comprehensive tests | Implementation |
| security-auditor | Security vulnerabilities | Validation |
| performance-optimizer | Performance bottlenecks | Validation |
| code-reviewer | Quality, clarity, best practices (3x) | Validation |
| code-beautifier | DRY, magic numbers, dead code | Validation |
| documentation-reviewer | Doc accuracy | Validation |
| fix-executor | Fix validation issues, test failures | Fixing |
| investigator | Deep investigation, variant analysis | Analysis |
| merge-coordinator | Merge best parts of variants | Analysis |
| general-builder | General tasks, doc updates | Analysis |
All inherit: Read, Write, Edit, Bash, Grep, Glob
See reference.md for detailed agent descriptions and usage patterns.
| Command | Artifacts |
|---|---|
| /solo | .spec/BUILD_taskname.md, PROGRESS.md |
| /spec | .spec/MISSION.md, CONSTRAINTS.md, DISCOVERIES.md, ARCHITECTURE.md, ASSUMPTIONS.md, SPIKE_RESULTS/, SPEC.md, SPEC_N_component.md |
| /conduct | .spec/SPEC.md (from /spec), SPEC_N_component.md, DISCOVERIES.md, PROGRESS.md |
Format: BLOCKED: [Component] - [Issue] | Attempts: [what tried] | Options: [A, B, C] | Recommendation: [yours]
If more components needed, complex dependencies, or multiple approaches exist:
See reference.md for detailed escalation format and examples.
~/.claude/templates/ for exact formats| Scenario | Command |
|---|---|
| Straightforward task, 1-3 files | /solo |
| Need to explore/plan architecture | /spec |
| Have SPEC.md, ready to implement | /conduct |
| Complex feature, no spec yet | /spec → /conduct |
| Uncertain which to use | Start /solo, escalate if needed |
~/.claude/commands/solo.md (309 lines)~/.claude/commands/spec.md (337 lines)~/.claude/commands/conduct.md (278 lines)~/.claude/templates/spec-minimal.md (for /solo)~/.claude/templates/spec-full.md (for /conduct)~/.claude/templates/agent-responses.md (all agent response templates)~/.claude/templates/operational.md (algorithms & procedures)~/.claude/docs/TESTING_STANDARDS.md (comprehensive guide)Bottom line: Start with /solo for straightforward tasks. Use /spec to plan complex features, then /conduct to execute. Trust delegation, validate thoroughly, escalate when blocked.