2025-10-12 16:59:54 -05:00
|
|
|
# Story Approved Workflow Instructions (DEV Agent)
|
|
|
|
|
|
2025-10-16 08:58:09 -05:00
|
|
|
<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>
|
2025-10-17 20:33:38 -05:00
|
|
|
<critical>Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level}</critical>
|
|
|
|
|
<critical>Generate all documents in {document_output_language}</critical>
|
2025-10-16 08:58:09 -05:00
|
|
|
|
2025-10-12 16:59:54 -05:00
|
|
|
<workflow>
|
|
|
|
|
|
|
|
|
|
<critical>This workflow is run by DEV agent AFTER user confirms a story is approved (Definition of Done is complete)</critical>
|
2025-10-21 22:25:26 -05:00
|
|
|
<critical>Workflow: Update story file status to Done</critical>
|
2025-10-12 16:59:54 -05:00
|
|
|
|
2025-10-21 22:25:26 -05:00
|
|
|
<step n="1" goal="Locate story and update to Done status">
|
2025-10-12 16:59:54 -05:00
|
|
|
|
2025-10-21 22:25:26 -05:00
|
|
|
<action>If {{story_path}} explicitly provided → use it</action>
|
|
|
|
|
<action>Otherwise list story-\*.md files from {{story_dir}}, sort by modified time</action>
|
|
|
|
|
<ask>Select the story to mark as Done, or enter path:</ask>
|
2025-10-12 16:59:54 -05:00
|
|
|
|
2025-10-21 22:25:26 -05:00
|
|
|
<action>Read the story file: {{story_path}}</action>
|
|
|
|
|
<action>Extract story ID and title from the file</action>
|
2025-10-12 16:59:54 -05:00
|
|
|
|
|
|
|
|
<action>Find the "Status:" line (usually at the top)</action>
|
|
|
|
|
|
|
|
|
|
<action>Update story file:</action>
|
|
|
|
|
|
2025-10-21 22:25:26 -05:00
|
|
|
- Change: `Status: Ready for Review` or `Status: In Review` or similar
|
2025-10-12 16:59:54 -05:00
|
|
|
- To: `Status: Done`
|
|
|
|
|
|
|
|
|
|
<action>Add completion notes if Dev Agent Record section exists:</action>
|
|
|
|
|
|
|
|
|
|
Find "## Dev Agent Record" section and add:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
### Completion Notes
|
|
|
|
|
**Completed:** {{date}}
|
2025-10-21 22:25:26 -05:00
|
|
|
**Definition of Done:** All acceptance criteria met, code reviewed, tests passing
|
2025-10-12 16:59:54 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<action>Save the story file</action>
|
|
|
|
|
|
|
|
|
|
</step>
|
|
|
|
|
|
2025-10-21 22:25:26 -05:00
|
|
|
<step n="2" goal="Confirm completion to user">
|
2025-10-12 16:59:54 -05:00
|
|
|
|
2025-10-21 22:25:26 -05:00
|
|
|
<output>**Story Approved and Marked Done, {user_name}!**
|
2025-10-12 16:59:54 -05:00
|
|
|
|
2025-10-21 22:25:26 -05:00
|
|
|
✅ Story file updated: `{{story_file}}` → Status: Done
|
2025-10-12 16:59:54 -05:00
|
|
|
|
|
|
|
|
**Completed Story:**
|
2025-10-17 23:44:43 -05:00
|
|
|
|
2025-10-21 22:25:26 -05:00
|
|
|
- **ID:** {{story_id}}
|
|
|
|
|
- **Title:** {{story_title}}
|
|
|
|
|
- **File:** `{{story_file}}`
|
2025-10-12 16:59:54 -05:00
|
|
|
- **Completed:** {{date}}
|
|
|
|
|
|
|
|
|
|
**Next Steps:**
|
2025-10-17 23:44:43 -05:00
|
|
|
|
2025-10-21 22:25:26 -05:00
|
|
|
1. Continue with next story in your backlog
|
|
|
|
|
2. Or run `retrospective` workflow if all stories are complete
|
|
|
|
|
</output>
|
2025-10-12 16:59:54 -05:00
|
|
|
|
|
|
|
|
</step>
|
|
|
|
|
|
|
|
|
|
</workflow>
|
|
|
|
|
```
|