# Story Approved Workflow Instructions (DEV Agent) The workflow execution engine is governed by: {project_root}/bmad/core/tasks/workflow.xml You MUST have already loaded and processed: {installed_path}/workflow.yaml Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level} Generate all documents in {document_output_language} This workflow is run by DEV agent AFTER user confirms a story is approved (Definition of Done is complete) Workflow: Update story file status to Done If {{story_path}} explicitly provided → use it Otherwise list story-\*.md files from {{story_dir}}, sort by modified time Select the story to mark as Done, or enter path: Read the story file: {{story_path}} Extract story ID and title from the file Find the "Status:" line (usually at the top) Update story file: - Change: `Status: Ready for Review` or `Status: In Review` or similar - To: `Status: Done` Add completion notes if Dev Agent Record section exists: Find "## Dev Agent Record" section and add: ``` ### Completion Notes **Completed:** {{date}} **Definition of Done:** All acceptance criteria met, code reviewed, tests passing ``` Save the story file **Story Approved and Marked Done, {user_name}!** ✅ Story file updated: `{{story_file}}` → Status: Done **Completed Story:** - **ID:** {{story_id}} - **Title:** {{story_title}} - **File:** `{{story_file}}` - **Completed:** {{date}} **Next Steps:** 1. Continue with next story in your backlog 2. Or run `retrospective` workflow if all stories are complete ```