# 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
```