mirror of
https://github.com/bmadcode/BMAD-METHOD.git
synced 2025-12-29 16:14:59 +00:00
workflows consistent method to update status file
This commit is contained in:
@@ -417,27 +417,22 @@ The document MUST be optimized for LLM consumption:
|
||||
|
||||
<step n="12" goal="Update status and complete">
|
||||
|
||||
<action>Load {{status_file_path}}</action>
|
||||
<invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
|
||||
<param>mode: update</param>
|
||||
<param>action: complete_workflow</param>
|
||||
<param>workflow_name: solution-architecture</param>
|
||||
<param>populate_stories_from: {epics_file}</param>
|
||||
</invoke-workflow>
|
||||
|
||||
<template-output file="{{status_file_path}}">current_workflow</template-output>
|
||||
<action>Set to: "solution-architecture - Complete"</action>
|
||||
<check if="success == true">
|
||||
<output>✅ Status updated! Loaded {{total_stories}} stories from epics.</output>
|
||||
<output>Next: {{next_workflow}} ({{next_agent}} agent)</output>
|
||||
<output>Phase 3 complete!</output>
|
||||
</check>
|
||||
|
||||
<template-output file="{{status_file_path}}">phase_3_complete</template-output>
|
||||
<action>Set to: true</action>
|
||||
|
||||
<template-output file="{{status_file_path}}">progress_percentage</template-output>
|
||||
<action>Increment by: 15% (solution-architecture is a major workflow)</action>
|
||||
|
||||
<template-output file="{{status_file_path}}">decisions_log</template-output>
|
||||
<action>Add entry: "- **{{date}}**: Completed solution-architecture workflow. Generated bmm-solution-architecture.md, bmm-cohesion-check-report.md, and {{epic_count}} tech-spec files. Populated story backlog with {{total_story_count}} stories. Phase 3 complete."</action>
|
||||
|
||||
<template-output file="{{status_file_path}}">STORIES_SEQUENCE</template-output>
|
||||
<action>Populate with ordered list of all stories from epics</action>
|
||||
|
||||
<template-output file="{{status_file_path}}">TODO_STORY</template-output>
|
||||
<action>Set to: "{{first_story_id}}"</action>
|
||||
|
||||
<action>Save {{status_file_path}}</action>
|
||||
<check if="success == false">
|
||||
<output>⚠️ Status update failed: {{error}}</output>
|
||||
</check>
|
||||
|
||||
<output>**✅ Solution Architecture Complete, {user_name}!**
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!-- BMAD BMM Tech Spec Workflow Instructions (v6) -->
|
||||
|
||||
````xml
|
||||
```xml
|
||||
<critical>The workflow execution engine is governed by: {project_root}/bmad/core/tasks/workflow.xml</critical>
|
||||
<critical>You MUST have already loaded and processed: {installed_path}/workflow.yaml</critical>
|
||||
<critical>Communicate all responses in {communication_language}</critical>
|
||||
@@ -130,25 +130,15 @@ What would you like to do?</ask>
|
||||
<action>Find the most recent file (by date in filename)</action>
|
||||
|
||||
<check if="status file exists">
|
||||
<action>Load the status file</action>
|
||||
<invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
|
||||
<param>mode: update</param>
|
||||
<param>action: complete_workflow</param>
|
||||
<param>workflow_name: tech-spec</param>
|
||||
</invoke-workflow>
|
||||
|
||||
<template-output file="{{status_file_path}}">current_step</template-output>
|
||||
<action>Set to: "tech-spec (Epic {{epic_id}})"</action>
|
||||
|
||||
<template-output file="{{status_file_path}}">current_workflow</template-output>
|
||||
<action>Set to: "tech-spec (Epic {{epic_id}}: {{epic_title}}) - Complete"</action>
|
||||
|
||||
<template-output file="{{status_file_path}}">progress_percentage</template-output>
|
||||
<action>Increment by: 5% (tech-spec generates one epic spec)</action>
|
||||
|
||||
<template-output file="{{status_file_path}}">decisions_log</template-output>
|
||||
<action>Add entry:</action>
|
||||
```
|
||||
- **{{date}}**: Completed tech-spec for Epic {{epic_id}} ({{epic_title}}). Tech spec file: {{default_output_file}}. This is a JIT workflow that can be run multiple times for different epics. Next: Continue with remaining epics or proceed to Phase 4 implementation.
|
||||
```
|
||||
|
||||
<template-output file="{{status_file_path}}">planned_workflow</template-output>
|
||||
<action>Mark "tech-spec (Epic {{epic_id}})" as complete in the planned workflow table</action>
|
||||
<check if="success == true">
|
||||
<output>✅ Status updated for Epic {{epic_id}} tech-spec</output>
|
||||
</check>
|
||||
|
||||
<output>**✅ Tech Spec Generated Successfully, {user_name}!**
|
||||
|
||||
@@ -190,4 +180,4 @@ To track progress across workflows, run `workflow-status` first.
|
||||
</step>
|
||||
|
||||
</workflow>
|
||||
````
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user