End-to-End Orchestration Skill
When to Invoke
ALWAYS auto-invoke at the start of any BMAD project:
- User says "start project", "new project", "initialize BMAD", "begin"
- User says "what's next?", "where am I?", "check status", "workflow status"
- User begins describing a product idea without mentioning BMAD explicitly
- At the beginning of ANY product development conversation
- User asks for guidance on the development process
Special auto-behaviors:
- If no workflow-status.md exists → automatically run initialization workflow
- If workflow-status.md exists → read current status and recommend next action
- If user mentions a specific phase → route to the appropriate skill
- If user is mid-project → check phase completion and suggest next step
Routing intelligence based on user intent:
FIRST: Assess complexity level (0-4)
- Level 0-1 (bug fix, small change, simple feature) → Route to OpenSpec
- Level 2-4 (new product, complex feature, architecture) → Route to BMAD
For OpenSpec work (Level 0-1):
- Mentions "bug", "fix", "small change", "quick" → openspec-change-proposal
- Has proposal, says "implement", "apply" → openspec-change-implementation
- Change complete, says "archive", "close" → openspec-change-closure
For BMAD work (Level 2-4):
- Mentions "idea", "brainstorm", "explore" → bmad-discovery-research
- Mentions "PRD", "requirements", "plan" → bmad-product-planning
- Mentions "UX", "UI", "design" → bmad-ux-design
- Mentions "architecture", "tech stack", "build" → bmad-architecture-design
- Mentions "test strategy", "QA", "ATDD" → bmad-test-strategy
- Mentions "stories", "breakdown", "backlog" → bmad-story-planning
- Mentions "implement story", "code", "develop" → bmad-development-execution
Critical decision: OpenSpec vs BMAD
- Small, well-defined, existing codebase → OpenSpec
- Greenfield, complex, or needs discovery → BMAD
- When in doubt, ask user about complexity level
Do NOT invoke when:
- User is clearly asking for a specific skill (let that skill handle it)
- User is in the middle of implementing code (appropriate skill is active)
- User is asking technical questions unrelated to workflow
Auto-Activation Behavior
This skill applies specialized routing heuristics whenever it auto-invokes:
1. Conversation Start Detection
When a conversation begins and the user mentions:
- Product development topics
- Project ideas or features
- Building or creating something
- BMAD or OpenSpec methodology
Auto-action: Initialize workflow files if none exist and recommend the right path.
2. Status Check Detection
When user asks:
- "Where am I?"
- "What's next?"
- "What should I do now?"
- "Check workflow status"
Auto-action: Read workflow-status.md, summarize phase progress, and suggest next skill.
3. Phase Transition Detection
When a downstream skill completes its phase:
- Analyst delivers discovery brief → confirm Planning readiness
- PM delivers PRD/epics → prepare Solutioning
- Architecture delivers decision doc → move to Implementation
Auto-action: Update workflow status and queue the appropriate next capability.
4. Routing Intelligence
Based on user intent, automatically route to:
- Mentions "idea", "brainstorm" → bmad-discovery-research
- Mentions "PRD", "requirements" → bmad-product-planning
- Mentions "UX", "UI" → bmad-ux-design
- Mentions "architecture", "tech stack" → bmad-architecture-design
- Mentions "test strategy", "QA" → bmad-test-strategy
- Mentions "stories", "backlog" → bmad-story-planning
- Mentions "implement", "code" → bmad-development-execution
- Mentions "small change", "bug" → openspec-change-proposal
5. Safety Checks
Before routing, verify:
If checks fail, halt routing and request the missing prerequisites.
Mission
Serve as the global orchestrator for all product development work, intelligently routing between BMAD (Level 2-4 complex projects) and OpenSpec (Level 0-1 lightweight changes). Assess scope, initialize appropriate state management, and sequence skills through correct phase gates for optimal workflow efficiency.
Inputs Required
- project_summary: current objective, level, and stakeholder context
- artifacts_index: list of delivered files and their status
- status_files:
docs/bmad-workflow-status.md, docs/sprint-status.yaml, or equivalents if they exist
Outputs
- workflow-status.md - Project status tracking document (generated from
assets/workflow-status-template.md.template)
- Updated workflow and sprint status records via
scripts/workflow_status.py and scripts/sprint_status.py
- Recommendation for the next skill to activate with rationale and prerequisites
- Logged artifacts and blockers for stakeholder visibility
Template location: .claude/skills/main-workflow-router/assets/workflow-status-template.md.template
Process
Assess Complexity & Choose Workflow
- Determine project level (0-4) from user description
- Level 0-1: Route to OpenSpec (propose → implement → archive)
- Level 2-4: Route to BMAD (analysis → planning → solutioning → implementation)
- When ambiguous: Ask clarifying questions about scope and complexity
Initialize State Management
- For BMAD: Create/update
docs/bmad-workflow-status.md and docs/sprint-status.yaml
- For OpenSpec: Scaffold change workspace in
openspec/changes/<change-id>/
- Use helper scripts:
workflow_status.py, sprint_status.py, scaffold_change.py
Review Context & Prerequisites
- Check existing artifacts from previous phases
- Validate gate criteria from preceding skills
- Identify missing prerequisites or blockers
Route to Next Skill
- For OpenSpec: openspec-change-proposal → openspec-change-implementation → openspec-change-closure
- For BMAD: Route through phases (analyst → pm → ux/architecture/tea → stories → dev)
- Communicate required inputs and outstanding risks
Update State & Report Progress
- Update workflow status files
- Log completed artifacts and next actions
- Highlight blockers and recommend remediation
- Escalate from OpenSpec to BMAD if scope grows beyond Level 1
Quality Gates
All items in CHECKLIST.md must be satisfied to progress between phases. Never advance without required artifacts.
Error Handling
- When status files are absent, run initialization scripts and request missing information.
- If prerequisites are not met, halt progression and notify the responsible skill with specific gaps.
- Downgrade to lightweight workflows (e.g., OpenSpec) when project level is 0-1 and BMAD overhead is unnecessary.
1---2name: main-workflow-router3description: Routes work to OpenSpec (L0-1) or BMAD (L2-4). Tracks status and guides through phases.4---5
6# End-to-End Orchestration Skill
7
8## When to Invoke
9
10**ALWAYS auto-invoke at the start of any BMAD project:**
11- User says "start project", "new project", "initialize BMAD", "begin"
12- User says "what's next?", "where am I?", "check status", "workflow status"
13- User begins describing a product idea without mentioning BMAD explicitly
14- At the beginning of ANY product development conversation
15- User asks for guidance on the development process
16
17**Special auto-behaviors:**
18- If no workflow-status.md exists → automatically run initialization workflow
19- If workflow-status.md exists → read current status and recommend next action
20- If user mentions a specific phase → route to the appropriate skill
21- If user is mid-project → check phase completion and suggest next step
22
23**Routing intelligence based on user intent:**
24
25**FIRST: Assess complexity level (0-4)**
26- Level 0-1 (bug fix, small change, simple feature) → Route to OpenSpec
27- Level 2-4 (new product, complex feature, architecture) → Route to BMAD
28
29**For OpenSpec work (Level 0-1):**
30- Mentions "bug", "fix", "small change", "quick" → openspec-change-proposal
31- Has proposal, says "implement", "apply" → openspec-change-implementation
32- Change complete, says "archive", "close" → openspec-change-closure
33
34**For BMAD work (Level 2-4):**
35- Mentions "idea", "brainstorm", "explore" → bmad-discovery-research
36- Mentions "PRD", "requirements", "plan" → bmad-product-planning
37- Mentions "UX", "UI", "design" → bmad-ux-design
38- Mentions "architecture", "tech stack", "build" → bmad-architecture-design
39- Mentions "test strategy", "QA", "ATDD" → bmad-test-strategy
40- Mentions "stories", "breakdown", "backlog" → bmad-story-planning
41- Mentions "implement story", "code", "develop" → bmad-development-execution
42
43**Critical decision: OpenSpec vs BMAD**
44- Small, well-defined, existing codebase → OpenSpec
45- Greenfield, complex, or needs discovery → BMAD
46- When in doubt, ask user about complexity level
47
48**Do NOT invoke when:**
49- User is clearly asking for a specific skill (let that skill handle it)
50- User is in the middle of implementing code (appropriate skill is active)
51- User is asking technical questions unrelated to workflow
52
53## Auto-Activation Behavior
54
55This skill applies specialized routing heuristics whenever it auto-invokes:
56
57### 1. Conversation Start Detection
58When a conversation begins and the user mentions:
59- Product development topics
60- Project ideas or features
61- Building or creating something
62- BMAD or OpenSpec methodology
63
64**Auto-action:** Initialize workflow files if none exist and recommend the right path.
65
66### 2. Status Check Detection
67When user asks:
68- "Where am I?"
69- "What's next?"
70- "What should I do now?"
71- "Check workflow status"
72
73**Auto-action:** Read workflow-status.md, summarize phase progress, and suggest next skill.
74
75### 3. Phase Transition Detection
76When a downstream skill completes its phase:
77- Analyst delivers discovery brief → confirm Planning readiness
78- PM delivers PRD/epics → prepare Solutioning
79- Architecture delivers decision doc → move to Implementation
80
81**Auto-action:** Update workflow status and queue the appropriate next capability.
82
83### 4. Routing Intelligence
84Based on user intent, automatically route to:
85- Mentions "idea", "brainstorm" → bmad-discovery-research
86- Mentions "PRD", "requirements" → bmad-product-planning
87- Mentions "UX", "UI" → bmad-ux-design
88- Mentions "architecture", "tech stack" → bmad-architecture-design
89- Mentions "test strategy", "QA" → bmad-test-strategy
90- Mentions "stories", "backlog" → bmad-story-planning
91- Mentions "implement", "code" → bmad-development-execution
92- Mentions "small change", "bug" → openspec-change-proposal
93
94### 5. Safety Checks
95Before routing, verify:
96- [ ] Required artifacts from previous phase exist
97- [ ] Quality gates in CHECKLIST.md are satisfied
98- [ ] No unresolved blockers in workflow-status.md
99
100If checks fail, halt routing and request the missing prerequisites.
101
102## Mission
103Serve as the global orchestrator for all product development work, intelligently routing between BMAD (Level 2-4 complex projects) and OpenSpec (Level 0-1 lightweight changes). Assess scope, initialize appropriate state management, and sequence skills through correct phase gates for optimal workflow efficiency.
104
105## Inputs Required
106- project_summary: current objective, level, and stakeholder context
107- artifacts_index: list of delivered files and their status
108- status_files: `docs/bmad-workflow-status.md`, `docs/sprint-status.yaml`, or equivalents if they exist
109
110## Outputs
111- **workflow-status.md** - Project status tracking document (generated from `assets/workflow-status-template.md.template`)
112- Updated workflow and sprint status records via `scripts/workflow_status.py` and `scripts/sprint_status.py`
113- Recommendation for the next skill to activate with rationale and prerequisites
114- Logged artifacts and blockers for stakeholder visibility
115
116**Template location:** `.claude/skills/main-workflow-router/assets/workflow-status-template.md.template`
117
118## Process
119
1201. **Assess Complexity & Choose Workflow**
121 - Determine project level (0-4) from user description
122 - Level 0-1: Route to OpenSpec (propose → implement → archive)
123 - Level 2-4: Route to BMAD (analysis → planning → solutioning → implementation)
124 - When ambiguous: Ask clarifying questions about scope and complexity
125
1262. **Initialize State Management**
127 - For BMAD: Create/update `docs/bmad-workflow-status.md` and `docs/sprint-status.yaml`
128 - For OpenSpec: Scaffold change workspace in `openspec/changes/<change-id>/`
129 - Use helper scripts: `workflow_status.py`, `sprint_status.py`, `scaffold_change.py`
130
1313. **Review Context & Prerequisites**
132 - Check existing artifacts from previous phases
133 - Validate gate criteria from preceding skills
134 - Identify missing prerequisites or blockers
135
1364. **Route to Next Skill**
137 - For OpenSpec: openspec-change-proposal → openspec-change-implementation → openspec-change-closure
138 - For BMAD: Route through phases (analyst → pm → ux/architecture/tea → stories → dev)
139 - Communicate required inputs and outstanding risks
140
1415. **Update State & Report Progress**
142 - Update workflow status files
143 - Log completed artifacts and next actions
144 - Highlight blockers and recommend remediation
145 - Escalate from OpenSpec to BMAD if scope grows beyond Level 1
146
147## Quality Gates
148All items in `CHECKLIST.md` must be satisfied to progress between phases. Never advance without required artifacts.
149
150## Error Handling
151- When status files are absent, run initialization scripts and request missing information.
152- If prerequisites are not met, halt progression and notify the responsible skill with specific gaps.
153- Downgrade to lightweight workflows (e.g., OpenSpec) when project level is 0-1 and BMAD overhead is unnecessary.