Status: Ready or Status: In ReviewStatus: DoneFind “## Dev Agent Record” section and add:
### Completion Notes
**Completed:** {{date}}
**Definition of Done:** All acceptance criteria met, code reviewed, tests passing, deployed
Add the completed story to the table:
| Story ID | File | Completed Date | Points |
|---|---|---|---|
| {{current_story_id}} | {{current_story_file}} | {{date}} | {{current_story_points}} |
… (existing done stories)
Total completed: {{done_count + 1}} stories Total points completed: {{done_points + current_story_points}} points
{{todo_story_file}}{{context_file_path}} (if exists, otherwise note “Context not yet generated”)dev-story workflow to implement this story
(No story currently in progress - all stories complete!)
{{next_backlog_story_file}}create-story workflow to draft this story
(No more stories to draft - all stories are drafted or complete)
Remove the first story from the BACKLOG table (the one we just moved to TODO).
If BACKLOG had 1 story and is now empty:
| Epic | Story | ID | Title | File |
|---|---|---|---|---|
| (empty - all stories drafted) |
Total in backlog: 0 stories
- **{{date}}**: Story {{current_story_id}} ({{current_story_title}}) approved and marked done by DEV agent. Moved from IN PROGRESS → DONE. {{#if todo_story}}Story {{todo_story_id}} moved from TODO → IN PROGRESS.{{/if}} {{#if next_backlog_story}}Story {{next_backlog_story_id}} moved from BACKLOG → TODO.{{/if}}
<template-output file=“{{status_file_path}}”>current_step</template-output>
<template-output file=“{{status_file_path}}”>current_workflow</template-output>
<template-output file=“{{status_file_path}}”>progress_percentage</template-output>
Command to run: {{#if todo_story_status == ‘Draft’}}Load SM agent and run ‘story-ready’ workflow{{else}}Run ‘dev-story’ workflow to implement{{/if}}
Agent to load: {{#if todo_story_status == ‘Draft’}}bmad/bmm/agents/sm.md{{else}}bmad/bmm/agents/dev.md{{/if}}
</check>
<check if="todo_story does NOT exist AND backlog not empty">
What to do next: Draft the next story ({{next_backlog_story_id}})
Command to run: Load SM agent and run ‘create-story’ workflow
Agent to load: bmad/bmm/agents/sm.md
</check>
<check if="all stories complete">
What to do next: All stories complete! Run retrospective workflow or close project.
Command to run: Load PM agent and run ‘retrospective’ workflow
Agent to load: bmad/bmm/agents/pm.md
</check>
<action>Save bmm-workflow-status.md</action>
</step>
<step n="5" goal="Confirm completion to user">
<action>Display summary</action>
**Story Approved and Marked Done!**
✅ Story file updated: `{{current_story_file}}` → Status: Done
✅ Status file updated: Story moved IN PROGRESS → DONE
{{#if todo_story}}✅ Next story moved: TODO → IN PROGRESS ({{todo_story_id}}: {{todo_story_title}}){{/if}}
{{#if next_backlog_story}}✅ Next story moved: BACKLOG → TODO ({{next_backlog_story_id}}: {{next_backlog_story_title}}){{/if}}
**Completed Story:**
- **ID:** {{current_story_id}}
- **Title:** {{current_story_title}}
- **File:** `{{current_story_file}}`
- **Points:** {{current_story_points}}
- **Completed:** {{date}}
**Progress Summary:**
- **Stories Completed:** {{done_count}} / {{total_stories}}
- **Points Completed:** {{done_points}} / {{total_points}}
- **Progress:** {{progress_percentage}}%
{{#if all_stories_complete}}
**🎉 ALL STORIES COMPLETE!**
Congratulations! You have completed all stories for this project.
**Next Steps:**
1. Run `retrospective` workflow with PM agent to review the project
2. Close out the project
3. Celebrate! 🎊
{{/if}}
{{#if todo_story}}
**Next Story (IN PROGRESS):**
- **ID:** {{todo_story_id}}
- **Title:** {{todo_story_title}}
- **File:** `{{todo_story_file}}`
- **Status:** {{todo_story_status}}
**Next Steps:**
{{#if todo_story_status == 'Draft'}}
1. Review the drafted story {{todo_story_file}}
2. Load SM agent and run `story-ready` workflow to approve it
3. Then return to DEV agent to implement
{{else}}
1. Stay with DEV agent and run `dev-story` workflow
2. Implement story {{todo_story_id}}
{{/if}}
{{/if}}
{{#if backlog_not_empty AND todo_empty}}
**Next Story (TODO):**
- **ID:** {{next_backlog_story_id}}
- **Title:** {{next_backlog_story_title}}
**Next Steps:**
1. Load SM agent
2. Run `create-story` workflow to draft story {{next_backlog_story_id}}
{{/if}}
</step>
</workflow>