@devo-bmad-custom/agent-orchestration 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/package.json +1 -1
  2. package/src/.agents/skills/tmux-commands/SKILL.md +353 -0
  3. package/src/bmm/data/project-context-template.md +26 -26
  4. package/src/bmm/teams/default-party.csv +20 -20
  5. package/src/bmm/workflows/2-plan-workflows/create-prd/data/domain-complexity.csv +14 -14
  6. package/src/bmm/workflows/2-plan-workflows/create-prd/data/prd-purpose.md +197 -197
  7. package/src/bmm/workflows/2-plan-workflows/create-prd/data/project-types.csv +10 -10
  8. package/src/bmm/workflows/2-plan-workflows/create-prd/templates/prd-template.md +10 -10
  9. package/src/bmm/workflows/3-solutioning/create-architecture/data/domain-complexity.csv +12 -12
  10. package/src/bmm/workflows/4-implementation/code-review/instructions.xml +226 -226
  11. package/src/bmm/workflows/4-implementation/correct-course/checklist.md +288 -288
  12. package/src/bmm/workflows/4-implementation/correct-course/instructions.md +207 -207
  13. package/src/bmm/workflows/4-implementation/retrospective/instructions.md +1444 -1444
  14. package/src/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +55 -55
  15. package/src/bmm/workflows/4-implementation/sprint-status/instructions.md +230 -230
  16. package/src/bmm/workflows/bmad-quick-flow/quick-spec/tech-spec-template.md +74 -74
  17. package/src/bmm/workflows/document-project/instructions.md +130 -130
  18. package/src/bmm/workflows/document-project/templates/project-scan-report-schema.json +160 -160
  19. package/src/bmm/workflows/document-project/workflows/deep-dive-instructions.md +298 -298
  20. package/src/bmm/workflows/document-project/workflows/deep-dive.yaml +31 -31
  21. package/src/bmm/workflows/document-project/workflows/full-scan-instructions.md +1106 -1106
  22. package/src/bmm/workflows/document-project/workflows/full-scan.yaml +31 -31
  23. package/src/bmm/workflows/qa-generate-e2e-tests/checklist.md +33 -33
  24. package/src/bmm/workflows/qa-generate-e2e-tests/instructions.md +110 -110
  25. package/src/core/agents/bmad-master.md +56 -56
  26. package/src/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +187 -187
  27. package/src/core/workflows/party-mode/steps/step-03-graceful-exit.md +168 -168
  28. package/src/.agents/skills/ui-ux-pro-custom/data/swift-ios-skills/vision-framework/SKILL.md +0 -475
  29. package/src/.agents/skills/ui-ux-pro-custom/data/swift-ios-skills/vision-framework/references/vision-requests.md +0 -736
  30. package/src/.agents/skills/ui-ux-pro-custom/data/swift-ios-skills/vision-framework/references/visionkit-scanner.md +0 -738
  31. package/src/.agents/skills/ui-ux-pro-custom/data/swift-ios-skills/weatherkit/SKILL.md +0 -410
  32. package/src/.agents/skills/ui-ux-pro-custom/data/swift-ios-skills/weatherkit/references/weatherkit-patterns.md +0 -567
  33. package/src/.agents/skills/ui-ux-pro-custom/data/swift-ios-skills/widgetkit/SKILL.md +0 -497
  34. package/src/.agents/skills/ui-ux-pro-custom/data/swift-ios-skills/widgetkit/references/widgetkit-advanced.md +0 -871
  35. package/src/.agents/skills/ui-ux-pro-custom/data/typography.csv +0 -58
  36. package/src/.agents/skills/ui-ux-pro-custom/data/ui-reasoning.csv +0 -101
  37. package/src/.agents/skills/ui-ux-pro-custom/data/ux-guidelines.csv +0 -100
  38. package/src/.agents/skills/ui-ux-pro-custom/data/web-interface.csv +0 -31
  39. package/src/.agents/skills/ui-ux-pro-custom/scripts/core.py +0 -253
  40. package/src/.agents/skills/ui-ux-pro-custom/scripts/design_system.py +0 -1067
  41. package/src/.agents/skills/ui-ux-pro-custom/scripts/search.py +0 -114
  42. package/src/.agents/skills/ux-audit/SKILL.md +0 -151
  43. package/src/.agents/skills/websocket-engineer/SKILL.md +0 -168
  44. package/src/.agents/skills/websocket-engineer/references/alternatives.md +0 -391
  45. package/src/.agents/skills/websocket-engineer/references/patterns.md +0 -400
  46. package/src/.agents/skills/websocket-engineer/references/protocol.md +0 -195
  47. package/src/.agents/skills/websocket-engineer/references/scaling.md +0 -333
  48. package/src/.agents/skills/websocket-engineer/references/security.md +0 -474
  49. package/src/.agents/skills/writing-skills/SKILL.md +0 -655
  50. package/src/.agents/skills/writing-skills/anthropic-best-practices.md +0 -1150
  51. package/src/.agents/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +0 -189
  52. package/src/.agents/skills/writing-skills/graphviz-conventions.dot +0 -172
  53. package/src/.agents/skills/writing-skills/persuasion-principles.md +0 -187
  54. package/src/.agents/skills/writing-skills/render-graphs.js +0 -168
  55. package/src/.agents/skills/writing-skills/testing-skills-with-subagents.md +0 -384
  56. package/src/.claude/commands/bmad-track-compact.md +0 -19
  57. package/src/.claude/commands/bmad-track-extended.md +0 -19
  58. package/src/.claude/commands/bmad-track-large.md +0 -19
  59. package/src/.claude/commands/bmad-track-medium.md +0 -19
  60. package/src/.claude/commands/bmad-track-nano.md +0 -19
  61. package/src/.claude/commands/bmad-track-rv.md +0 -18
  62. package/src/.claude/commands/bmad-track-small.md +0 -19
  63. package/src/.claude/commands/master-orchestrator.md +0 -15
  64. package/src/_memory/master-orchestrator-sidecar/docs-index.md +0 -3
  65. package/src/_memory/master-orchestrator-sidecar/instructions.md +0 -2616
  66. package/src/_memory/master-orchestrator-sidecar/memories.md +0 -8
  67. package/src/_memory/master-orchestrator-sidecar/session-state.md +0 -15
  68. package/src/_memory/master-orchestrator-sidecar/triage-history.md +0 -3
  69. package/src/_memory/master-orchestrator-sidecar/workflows-overview.html +0 -1230
  70. package/src/core/agents/master-orchestrator.md +0 -54
  71. package/src/docs/dev/tmux/actions_popup.py +0 -291
  72. package/src/docs/dev/tmux/actions_popup.sh +0 -110
  73. package/src/docs/dev/tmux/claude_usage.sh +0 -15
  74. package/src/docs/dev/tmux/colors.conf +0 -26
  75. package/src/docs/dev/tmux/cpu_usage.sh +0 -7
  76. package/src/docs/dev/tmux/dispatch.sh +0 -10
  77. package/src/docs/dev/tmux/float_init.sh +0 -13
  78. package/src/docs/dev/tmux/float_term.sh +0 -23
  79. package/src/docs/dev/tmux/open_clip.sh +0 -14
  80. package/src/docs/dev/tmux/paste_clipboard.sh +0 -13
  81. package/src/docs/dev/tmux/paste_image_wrapper.sh +0 -94
  82. package/src/docs/dev/tmux/ram_usage.sh +0 -3
  83. package/src/docs/dev/tmux/title_sync.sh +0 -54
  84. package/src/docs/dev/tmux/tmux-setup.md +0 -867
  85. package/src/docs/dev/tmux/tmux.conf +0 -127
  86. package/src/docs/dev/tmux/xclip +0 -18
@@ -1,55 +1,55 @@
1
- # Sprint Status Template
2
- # This is an EXAMPLE showing the expected format
3
- # The actual file will be generated with all epics/stories from your epic files
4
-
5
- # generated: {date}
6
- # project: {project_name}
7
- # project_key: {project_key}
8
- # tracking_system: {tracking_system}
9
- # story_location: {story_location}
10
-
11
- # STATUS DEFINITIONS:
12
- # ==================
13
- # Epic Status:
14
- # - backlog: Epic not yet started
15
- # - in-progress: Epic actively being worked on
16
- # - done: All stories in epic completed
17
- #
18
- # Story Status:
19
- # - backlog: Story only exists in epic file
20
- # - ready-for-dev: Story file created, ready for development
21
- # - in-progress: Developer actively working on implementation
22
- # - review: Implementation complete, ready for review
23
- # - done: Story completed
24
- #
25
- # Retrospective Status:
26
- # - optional: Can be completed but not required
27
- # - done: Retrospective has been completed
28
- #
29
- # WORKFLOW NOTES:
30
- # ===============
31
- # - Mark epic as 'in-progress' when starting work on its first story
32
- # - SM typically creates next story ONLY after previous one is 'done' to incorporate learnings
33
- # - Dev moves story to 'review', then Dev runs code-review (fresh context, ideally different LLM)
34
-
35
- # EXAMPLE STRUCTURE (your actual epics/stories will replace these):
36
-
37
- generated: 05-06-2-2025 21:30
38
- project: My Awesome Project
39
- project_key: NOKEY
40
- tracking_system: file-system
41
- story_location: "{story_location}"
42
-
43
- development_status:
44
- epic-1: backlog
45
- 1-1-user-authentication: done
46
- 1-2-account-management: ready-for-dev
47
- 1-3-plant-data-model: backlog
48
- 1-4-add-plant-manual: backlog
49
- epic-1-retrospective: optional
50
-
51
- epic-2: backlog
52
- 2-1-personality-system: backlog
53
- 2-2-chat-interface: backlog
54
- 2-3-llm-integration: backlog
55
- epic-2-retrospective: optional
1
+ # Sprint Status Template
2
+ # This is an EXAMPLE showing the expected format
3
+ # The actual file will be generated with all epics/stories from your epic files
4
+
5
+ # generated: {date}
6
+ # project: {project_name}
7
+ # project_key: {project_key}
8
+ # tracking_system: {tracking_system}
9
+ # story_location: {story_location}
10
+
11
+ # STATUS DEFINITIONS:
12
+ # ==================
13
+ # Epic Status:
14
+ # - backlog: Epic not yet started
15
+ # - in-progress: Epic actively being worked on
16
+ # - done: All stories in epic completed
17
+ #
18
+ # Story Status:
19
+ # - backlog: Story only exists in epic file
20
+ # - ready-for-dev: Story file created, ready for development
21
+ # - in-progress: Developer actively working on implementation
22
+ # - review: Implementation complete, ready for review
23
+ # - done: Story completed
24
+ #
25
+ # Retrospective Status:
26
+ # - optional: Can be completed but not required
27
+ # - done: Retrospective has been completed
28
+ #
29
+ # WORKFLOW NOTES:
30
+ # ===============
31
+ # - Mark epic as 'in-progress' when starting work on its first story
32
+ # - SM typically creates next story ONLY after previous one is 'done' to incorporate learnings
33
+ # - Dev moves story to 'review', then Dev runs code-review (fresh context, ideally different LLM)
34
+
35
+ # EXAMPLE STRUCTURE (your actual epics/stories will replace these):
36
+
37
+ generated: 05-06-2-2025 21:30
38
+ project: My Awesome Project
39
+ project_key: NOKEY
40
+ tracking_system: file-system
41
+ story_location: "{story_location}"
42
+
43
+ development_status:
44
+ epic-1: backlog
45
+ 1-1-user-authentication: done
46
+ 1-2-account-management: ready-for-dev
47
+ 1-3-plant-data-model: backlog
48
+ 1-4-add-plant-manual: backlog
49
+ epic-1-retrospective: optional
50
+
51
+ epic-2: backlog
52
+ 2-1-personality-system: backlog
53
+ 2-2-chat-interface: backlog
54
+ 2-3-llm-integration: backlog
55
+ epic-2-retrospective: optional
@@ -1,230 +1,230 @@
1
- # Sprint Status - Multi-Mode Service
2
-
3
- <critical>The workflow execution engine is governed by: {project-root}/_bmad/core/tasks/workflow.xml</critical>
4
- <critical>You MUST have already loaded and processed: {project-root}/_bmad/bmm/workflows/4-implementation/sprint-status/workflow.yaml</critical>
5
- <critical>Modes: interactive (default), validate, data</critical>
6
- <critical>⚠️ ABSOLUTELY NO TIME ESTIMATES. Do NOT mention hours, days, weeks, or timelines.</critical>
7
-
8
- <workflow>
9
-
10
- <step n="0" goal="Determine execution mode">
11
- <action>Set mode = {{mode}} if provided by caller; otherwise mode = "interactive"</action>
12
-
13
- <check if="mode == data">
14
- <action>Jump to Step 20</action>
15
- </check>
16
-
17
- <check if="mode == validate">
18
- <action>Jump to Step 30</action>
19
- </check>
20
-
21
- <check if="mode == interactive">
22
- <action>Continue to Step 1</action>
23
- </check>
24
- </step>
25
-
26
- <step n="1" goal="Locate sprint status file">
27
- <action>Load {project_context} for project-wide patterns and conventions (if exists)</action>
28
- <action>Try {sprint_status_file}</action>
29
- <check if="file not found">
30
- <output>❌ sprint-status.yaml not found.
31
- Run `/bmad:bmm:workflows:sprint-planning` to generate it, then rerun sprint-status.</output>
32
- <action>Exit workflow</action>
33
- </check>
34
- <action>Continue to Step 2</action>
35
- </step>
36
-
37
- <step n="2" goal="Read and parse sprint-status.yaml">
38
- <action>Read the FULL file: {sprint_status_file}</action>
39
- <action>Parse fields: generated, project, project_key, tracking_system, story_location</action>
40
- <action>Parse development_status map. Classify keys:</action>
41
- - Epics: keys starting with "epic-" (and not ending with "-retrospective")
42
- - Retrospectives: keys ending with "-retrospective"
43
- - Stories: everything else (e.g., 1-2-login-form)
44
- <action>Map legacy story status "drafted" → "ready-for-dev"</action>
45
- <action>Count story statuses: backlog, ready-for-dev, in-progress, review, done</action>
46
- <action>Map legacy epic status "contexted" → "in-progress"</action>
47
- <action>Count epic statuses: backlog, in-progress, done</action>
48
- <action>Count retrospective statuses: optional, done</action>
49
-
50
- <action>Validate all statuses against known values:</action>
51
-
52
- - Valid story statuses: backlog, ready-for-dev, in-progress, review, done, drafted (legacy)
53
- - Valid epic statuses: backlog, in-progress, done, contexted (legacy)
54
- - Valid retrospective statuses: optional, done
55
-
56
- <check if="any status is unrecognized">
57
- <output>
58
- ⚠️ **Unknown status detected:**
59
- {{#each invalid_entries}}
60
-
61
- - `{{key}}`: "{{status}}" (not recognized)
62
- {{/each}}
63
-
64
- **Valid statuses:**
65
-
66
- - Stories: backlog, ready-for-dev, in-progress, review, done
67
- - Epics: backlog, in-progress, done
68
- - Retrospectives: optional, done
69
- </output>
70
- <ask>How should these be corrected?
71
- {{#each invalid_entries}}
72
- {{@index}}. {{key}}: "{{status}}" → [select valid status]
73
- {{/each}}
74
-
75
- Enter corrections (e.g., "1=in-progress, 2=backlog") or "skip" to continue without fixing:</ask>
76
- <check if="user provided corrections">
77
- <action>Update sprint-status.yaml with corrected values</action>
78
- <action>Re-parse the file with corrected statuses</action>
79
- </check>
80
- </check>
81
-
82
- <action>Detect risks:</action>
83
-
84
- - IF any story has status "review": suggest `/bmad:bmm:workflows:code-review`
85
- - IF any story has status "in-progress" AND no stories have status "ready-for-dev": recommend staying focused on active story
86
- - IF all epics have status "backlog" AND no stories have status "ready-for-dev": prompt `/bmad:bmm:workflows:create-story`
87
- - IF `generated` timestamp is more than 7 days old: warn "sprint-status.yaml may be stale"
88
- - IF any story key doesn't match an epic pattern (e.g., story "5-1-..." but no "epic-5"): warn "orphaned story detected"
89
- - IF any epic has status in-progress but has no associated stories: warn "in-progress epic has no stories"
90
- </step>
91
-
92
- <step n="3" goal="Select next action recommendation">
93
- <action>Pick the next recommended workflow using priority:</action>
94
- <note>When selecting "first" story: sort by epic number, then story number (e.g., 1-1 before 1-2 before 2-1)</note>
95
- 1. If any story status == in-progress → recommend `dev-story` for the first in-progress story
96
- 2. Else if any story status == review → recommend `code-review` for the first review story
97
- 3. Else if any story status == ready-for-dev → recommend `dev-story`
98
- 4. Else if any story status == backlog → recommend `create-story`
99
- 5. Else if any retrospective status == optional → recommend `retrospective`
100
- 6. Else → All implementation items done; congratulate the user - you both did amazing work together!
101
- <action>Store selected recommendation as: next_story_id, next_workflow_id, next_agent (SM/DEV as appropriate)</action>
102
- </step>
103
-
104
- <step n="4" goal="Display summary">
105
- <output>
106
- ## 📊 Sprint Status
107
-
108
- - Project: {{project}} ({{project_key}})
109
- - Tracking: {{tracking_system}}
110
- - Status file: {sprint_status_file}
111
-
112
- **Stories:** backlog {{count_backlog}}, ready-for-dev {{count_ready}}, in-progress {{count_in_progress}}, review {{count_review}}, done {{count_done}}
113
-
114
- **Epics:** backlog {{epic_backlog}}, in-progress {{epic_in_progress}}, done {{epic_done}}
115
-
116
- **Next Recommendation:** /bmad:bmm:workflows:{{next_workflow_id}} ({{next_story_id}})
117
-
118
- {{#if risks}}
119
- **Risks:**
120
- {{#each risks}}
121
-
122
- - {{this}}
123
- {{/each}}
124
- {{/if}}
125
-
126
- </output>
127
- </step>
128
-
129
- <step n="5" goal="Offer actions">
130
- <ask>Pick an option:
131
- 1) Run recommended workflow now
132
- 2) Show all stories grouped by status
133
- 3) Show raw sprint-status.yaml
134
- 4) Exit
135
- Choice:</ask>
136
-
137
- <check if="choice == 1">
138
- <output>Run `/bmad:bmm:workflows:{{next_workflow_id}}`.
139
- If the command targets a story, set `story_key={{next_story_id}}` when prompted.</output>
140
- </check>
141
-
142
- <check if="choice == 2">
143
- <output>
144
- ### Stories by Status
145
- - In Progress: {{stories_in_progress}}
146
- - Review: {{stories_in_review}}
147
- - Ready for Dev: {{stories_ready_for_dev}}
148
- - Backlog: {{stories_backlog}}
149
- - Done: {{stories_done}}
150
- </output>
151
- </check>
152
-
153
- <check if="choice == 3">
154
- <action>Display the full contents of {sprint_status_file}</action>
155
- </check>
156
-
157
- <check if="choice == 4">
158
- <action>Exit workflow</action>
159
- </check>
160
- </step>
161
-
162
- <!-- ========================= -->
163
- <!-- Data mode for other flows -->
164
- <!-- ========================= -->
165
-
166
- <step n="20" goal="Data mode output">
167
- <action>Load and parse {sprint_status_file} same as Step 2</action>
168
- <action>Compute recommendation same as Step 3</action>
169
- <template-output>next_workflow_id = {{next_workflow_id}}</template-output>
170
- <template-output>next_story_id = {{next_story_id}}</template-output>
171
- <template-output>count_backlog = {{count_backlog}}</template-output>
172
- <template-output>count_ready = {{count_ready}}</template-output>
173
- <template-output>count_in_progress = {{count_in_progress}}</template-output>
174
- <template-output>count_review = {{count_review}}</template-output>
175
- <template-output>count_done = {{count_done}}</template-output>
176
- <template-output>epic_backlog = {{epic_backlog}}</template-output>
177
- <template-output>epic_in_progress = {{epic_in_progress}}</template-output>
178
- <template-output>epic_done = {{epic_done}}</template-output>
179
- <template-output>risks = {{risks}}</template-output>
180
- <action>Return to caller</action>
181
- </step>
182
-
183
- <!-- ========================= -->
184
- <!-- Validate mode -->
185
- <!-- ========================= -->
186
-
187
- <step n="30" goal="Validate sprint-status file">
188
- <action>Check that {sprint_status_file} exists</action>
189
- <check if="missing">
190
- <template-output>is_valid = false</template-output>
191
- <template-output>error = "sprint-status.yaml missing"</template-output>
192
- <template-output>suggestion = "Run sprint-planning to create it"</template-output>
193
- <action>Return</action>
194
- </check>
195
-
196
- <action>Read and parse {sprint_status_file}</action>
197
-
198
- <action>Validate required metadata fields exist: generated, project, project_key, tracking_system, story_location</action>
199
- <check if="any required field missing">
200
- <template-output>is_valid = false</template-output>
201
- <template-output>error = "Missing required field(s): {{missing_fields}}"</template-output>
202
- <template-output>suggestion = "Re-run sprint-planning or add missing fields manually"</template-output>
203
- <action>Return</action>
204
- </check>
205
-
206
- <action>Verify development_status section exists with at least one entry</action>
207
- <check if="development_status missing or empty">
208
- <template-output>is_valid = false</template-output>
209
- <template-output>error = "development_status missing or empty"</template-output>
210
- <template-output>suggestion = "Re-run sprint-planning or repair the file manually"</template-output>
211
- <action>Return</action>
212
- </check>
213
-
214
- <action>Validate all status values against known valid statuses:</action>
215
-
216
- - Stories: backlog, ready-for-dev, in-progress, review, done (legacy: drafted)
217
- - Epics: backlog, in-progress, done (legacy: contexted)
218
- - Retrospectives: optional, done
219
- <check if="any invalid status found">
220
- <template-output>is_valid = false</template-output>
221
- <template-output>error = "Invalid status values: {{invalid_entries}}"</template-output>
222
- <template-output>suggestion = "Fix invalid statuses in sprint-status.yaml"</template-output>
223
- <action>Return</action>
224
- </check>
225
-
226
- <template-output>is_valid = true</template-output>
227
- <template-output>message = "sprint-status.yaml valid: metadata complete, all statuses recognized"</template-output>
228
- </step>
229
-
230
- </workflow>
1
+ # Sprint Status - Multi-Mode Service
2
+
3
+ <critical>The workflow execution engine is governed by: {project-root}/_bmad/core/tasks/workflow.xml</critical>
4
+ <critical>You MUST have already loaded and processed: {project-root}/_bmad/bmm/workflows/4-implementation/sprint-status/workflow.yaml</critical>
5
+ <critical>Modes: interactive (default), validate, data</critical>
6
+ <critical>⚠️ ABSOLUTELY NO TIME ESTIMATES. Do NOT mention hours, days, weeks, or timelines.</critical>
7
+
8
+ <workflow>
9
+
10
+ <step n="0" goal="Determine execution mode">
11
+ <action>Set mode = {{mode}} if provided by caller; otherwise mode = "interactive"</action>
12
+
13
+ <check if="mode == data">
14
+ <action>Jump to Step 20</action>
15
+ </check>
16
+
17
+ <check if="mode == validate">
18
+ <action>Jump to Step 30</action>
19
+ </check>
20
+
21
+ <check if="mode == interactive">
22
+ <action>Continue to Step 1</action>
23
+ </check>
24
+ </step>
25
+
26
+ <step n="1" goal="Locate sprint status file">
27
+ <action>Load {project_context} for project-wide patterns and conventions (if exists)</action>
28
+ <action>Try {sprint_status_file}</action>
29
+ <check if="file not found">
30
+ <output>❌ sprint-status.yaml not found.
31
+ Run `/bmad:bmm:workflows:sprint-planning` to generate it, then rerun sprint-status.</output>
32
+ <action>Exit workflow</action>
33
+ </check>
34
+ <action>Continue to Step 2</action>
35
+ </step>
36
+
37
+ <step n="2" goal="Read and parse sprint-status.yaml">
38
+ <action>Read the FULL file: {sprint_status_file}</action>
39
+ <action>Parse fields: generated, project, project_key, tracking_system, story_location</action>
40
+ <action>Parse development_status map. Classify keys:</action>
41
+ - Epics: keys starting with "epic-" (and not ending with "-retrospective")
42
+ - Retrospectives: keys ending with "-retrospective"
43
+ - Stories: everything else (e.g., 1-2-login-form)
44
+ <action>Map legacy story status "drafted" → "ready-for-dev"</action>
45
+ <action>Count story statuses: backlog, ready-for-dev, in-progress, review, done</action>
46
+ <action>Map legacy epic status "contexted" → "in-progress"</action>
47
+ <action>Count epic statuses: backlog, in-progress, done</action>
48
+ <action>Count retrospective statuses: optional, done</action>
49
+
50
+ <action>Validate all statuses against known values:</action>
51
+
52
+ - Valid story statuses: backlog, ready-for-dev, in-progress, review, done, drafted (legacy)
53
+ - Valid epic statuses: backlog, in-progress, done, contexted (legacy)
54
+ - Valid retrospective statuses: optional, done
55
+
56
+ <check if="any status is unrecognized">
57
+ <output>
58
+ ⚠️ **Unknown status detected:**
59
+ {{#each invalid_entries}}
60
+
61
+ - `{{key}}`: "{{status}}" (not recognized)
62
+ {{/each}}
63
+
64
+ **Valid statuses:**
65
+
66
+ - Stories: backlog, ready-for-dev, in-progress, review, done
67
+ - Epics: backlog, in-progress, done
68
+ - Retrospectives: optional, done
69
+ </output>
70
+ <ask>How should these be corrected?
71
+ {{#each invalid_entries}}
72
+ {{@index}}. {{key}}: "{{status}}" → [select valid status]
73
+ {{/each}}
74
+
75
+ Enter corrections (e.g., "1=in-progress, 2=backlog") or "skip" to continue without fixing:</ask>
76
+ <check if="user provided corrections">
77
+ <action>Update sprint-status.yaml with corrected values</action>
78
+ <action>Re-parse the file with corrected statuses</action>
79
+ </check>
80
+ </check>
81
+
82
+ <action>Detect risks:</action>
83
+
84
+ - IF any story has status "review": suggest `/bmad:bmm:workflows:code-review`
85
+ - IF any story has status "in-progress" AND no stories have status "ready-for-dev": recommend staying focused on active story
86
+ - IF all epics have status "backlog" AND no stories have status "ready-for-dev": prompt `/bmad:bmm:workflows:create-story`
87
+ - IF `generated` timestamp is more than 7 days old: warn "sprint-status.yaml may be stale"
88
+ - IF any story key doesn't match an epic pattern (e.g., story "5-1-..." but no "epic-5"): warn "orphaned story detected"
89
+ - IF any epic has status in-progress but has no associated stories: warn "in-progress epic has no stories"
90
+ </step>
91
+
92
+ <step n="3" goal="Select next action recommendation">
93
+ <action>Pick the next recommended workflow using priority:</action>
94
+ <note>When selecting "first" story: sort by epic number, then story number (e.g., 1-1 before 1-2 before 2-1)</note>
95
+ 1. If any story status == in-progress → recommend `dev-story` for the first in-progress story
96
+ 2. Else if any story status == review → recommend `code-review` for the first review story
97
+ 3. Else if any story status == ready-for-dev → recommend `dev-story`
98
+ 4. Else if any story status == backlog → recommend `create-story`
99
+ 5. Else if any retrospective status == optional → recommend `retrospective`
100
+ 6. Else → All implementation items done; congratulate the user - you both did amazing work together!
101
+ <action>Store selected recommendation as: next_story_id, next_workflow_id, next_agent (SM/DEV as appropriate)</action>
102
+ </step>
103
+
104
+ <step n="4" goal="Display summary">
105
+ <output>
106
+ ## 📊 Sprint Status
107
+
108
+ - Project: {{project}} ({{project_key}})
109
+ - Tracking: {{tracking_system}}
110
+ - Status file: {sprint_status_file}
111
+
112
+ **Stories:** backlog {{count_backlog}}, ready-for-dev {{count_ready}}, in-progress {{count_in_progress}}, review {{count_review}}, done {{count_done}}
113
+
114
+ **Epics:** backlog {{epic_backlog}}, in-progress {{epic_in_progress}}, done {{epic_done}}
115
+
116
+ **Next Recommendation:** /bmad:bmm:workflows:{{next_workflow_id}} ({{next_story_id}})
117
+
118
+ {{#if risks}}
119
+ **Risks:**
120
+ {{#each risks}}
121
+
122
+ - {{this}}
123
+ {{/each}}
124
+ {{/if}}
125
+
126
+ </output>
127
+ </step>
128
+
129
+ <step n="5" goal="Offer actions">
130
+ <ask>Pick an option:
131
+ 1) Run recommended workflow now
132
+ 2) Show all stories grouped by status
133
+ 3) Show raw sprint-status.yaml
134
+ 4) Exit
135
+ Choice:</ask>
136
+
137
+ <check if="choice == 1">
138
+ <output>Run `/bmad:bmm:workflows:{{next_workflow_id}}`.
139
+ If the command targets a story, set `story_key={{next_story_id}}` when prompted.</output>
140
+ </check>
141
+
142
+ <check if="choice == 2">
143
+ <output>
144
+ ### Stories by Status
145
+ - In Progress: {{stories_in_progress}}
146
+ - Review: {{stories_in_review}}
147
+ - Ready for Dev: {{stories_ready_for_dev}}
148
+ - Backlog: {{stories_backlog}}
149
+ - Done: {{stories_done}}
150
+ </output>
151
+ </check>
152
+
153
+ <check if="choice == 3">
154
+ <action>Display the full contents of {sprint_status_file}</action>
155
+ </check>
156
+
157
+ <check if="choice == 4">
158
+ <action>Exit workflow</action>
159
+ </check>
160
+ </step>
161
+
162
+ <!-- ========================= -->
163
+ <!-- Data mode for other flows -->
164
+ <!-- ========================= -->
165
+
166
+ <step n="20" goal="Data mode output">
167
+ <action>Load and parse {sprint_status_file} same as Step 2</action>
168
+ <action>Compute recommendation same as Step 3</action>
169
+ <template-output>next_workflow_id = {{next_workflow_id}}</template-output>
170
+ <template-output>next_story_id = {{next_story_id}}</template-output>
171
+ <template-output>count_backlog = {{count_backlog}}</template-output>
172
+ <template-output>count_ready = {{count_ready}}</template-output>
173
+ <template-output>count_in_progress = {{count_in_progress}}</template-output>
174
+ <template-output>count_review = {{count_review}}</template-output>
175
+ <template-output>count_done = {{count_done}}</template-output>
176
+ <template-output>epic_backlog = {{epic_backlog}}</template-output>
177
+ <template-output>epic_in_progress = {{epic_in_progress}}</template-output>
178
+ <template-output>epic_done = {{epic_done}}</template-output>
179
+ <template-output>risks = {{risks}}</template-output>
180
+ <action>Return to caller</action>
181
+ </step>
182
+
183
+ <!-- ========================= -->
184
+ <!-- Validate mode -->
185
+ <!-- ========================= -->
186
+
187
+ <step n="30" goal="Validate sprint-status file">
188
+ <action>Check that {sprint_status_file} exists</action>
189
+ <check if="missing">
190
+ <template-output>is_valid = false</template-output>
191
+ <template-output>error = "sprint-status.yaml missing"</template-output>
192
+ <template-output>suggestion = "Run sprint-planning to create it"</template-output>
193
+ <action>Return</action>
194
+ </check>
195
+
196
+ <action>Read and parse {sprint_status_file}</action>
197
+
198
+ <action>Validate required metadata fields exist: generated, project, project_key, tracking_system, story_location</action>
199
+ <check if="any required field missing">
200
+ <template-output>is_valid = false</template-output>
201
+ <template-output>error = "Missing required field(s): {{missing_fields}}"</template-output>
202
+ <template-output>suggestion = "Re-run sprint-planning or add missing fields manually"</template-output>
203
+ <action>Return</action>
204
+ </check>
205
+
206
+ <action>Verify development_status section exists with at least one entry</action>
207
+ <check if="development_status missing or empty">
208
+ <template-output>is_valid = false</template-output>
209
+ <template-output>error = "development_status missing or empty"</template-output>
210
+ <template-output>suggestion = "Re-run sprint-planning or repair the file manually"</template-output>
211
+ <action>Return</action>
212
+ </check>
213
+
214
+ <action>Validate all status values against known valid statuses:</action>
215
+
216
+ - Stories: backlog, ready-for-dev, in-progress, review, done (legacy: drafted)
217
+ - Epics: backlog, in-progress, done (legacy: contexted)
218
+ - Retrospectives: optional, done
219
+ <check if="any invalid status found">
220
+ <template-output>is_valid = false</template-output>
221
+ <template-output>error = "Invalid status values: {{invalid_entries}}"</template-output>
222
+ <template-output>suggestion = "Fix invalid statuses in sprint-status.yaml"</template-output>
223
+ <action>Return</action>
224
+ </check>
225
+
226
+ <template-output>is_valid = true</template-output>
227
+ <template-output>message = "sprint-status.yaml valid: metadata complete, all statuses recognized"</template-output>
228
+ </step>
229
+
230
+ </workflow>