From bmad-skills
Executes configurable BMAD story delivery pipeline using subagents: create story, ATDD tests, development, code review, trace coverage. Auto-selects next todo story from sprint-status.yaml.
How this skill is triggered — by the user, by Claude, or both
Slash command
/bmad-skills:bmad-story-pipelineThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Complete the delivery pipeline for story `{ARGUMENT}` using configurable workflow.
Complete the delivery pipeline for story {ARGUMENT} using configurable workflow.
If {ARGUMENT} is empty or not provided:
_bmad-output/implementation-artifacts/sprint-status.yaml (or docs/sprint/sprint-status.yaml) to find stories{STORY_ID}The story number format is typically X-Y (e.g., 1-1, 2-3).
Read and execute steps from references/workflow-steps.md.
For each step defined there, you MUST use the Task tool to execute in a subagent:
Task(
subagent_type: "general-purpose",
description: "<Step description>",
prompt: "Execute the command: <COMMAND_WITH_STORY_ID>
Return: 1) Step completion status 2) Key outputs 3) Any issues to note"
)
Step 1 - Create Story:
Task(
subagent_type: "general-purpose",
description: "Create user story {STORY_ID}",
prompt: "Execute /bmad-bmm-create-story {STORY_ID} yolo to create story file. Return: 1) Story ID and Title 2) Created files 3) Any issues"
)
Step 2 - ATDD Tests:
Task(
subagent_type: "general-purpose",
description: "Generate ATDD tests for {STORY_ID}",
prompt: "Execute /bmad-tea-testarch-atdd {STORY_ID} yolo to generate acceptance tests. Return: 1) ATDD checklist 2) Test files created 3) Any issues"
)
Step 3 - Development:
Task(
subagent_type: "general-purpose",
description: "Develop user story {STORY_ID}",
prompt: "Execute /bmad-bmm-dev-story {STORY_ID} yolo to implement story code. Return: 1) Modified files 2) Summary of changes 3) Any issues"
)
Step 4 - Code Review:
Task(
subagent_type: "general-purpose",
description: "Code review for {STORY_ID}",
prompt: "Execute /bmad-bmm-code-review {STORY_ID} yolo for adversarial review. Return: 1) Conclusion (pass/needs-fix) 2) Issues by severity 3) Any blocking issues"
)
Step 5 - Trace Coverage:
Task(
subagent_type: "general-purpose",
description: "Trace test coverage for {STORY_ID}",
prompt: "Execute /bmad-tea-testarch-trace {STORY_ID} yolo for traceability matrix. Return: 1) Coverage percentage 2) Gate decision 3) Any gaps"
)
For each step:
{STORY_ID} with the actual story number in the prompt[X/5] Step Name - StatusAfter each step, output progress:
📊 Pipeline Progress: [X/5] ████████░░░░ 40%
✅ Step X: <Step Name>
Result: <Brief result summary>
If any step fails:
❌ Pipeline Failed at Step X: <Step Name>
Error: <Error details>
💡 Suggested actions:
- Check the story file for issues
- Run the failed step manually: <command>
- Fix the issue and restart pipeline
After ALL steps complete successfully:
Update sprint-status.yaml:
in-progress to doneUpdate story document (if exists):
Status: to doneOutput final summary:
🎉 Pipeline Complete!
Story: {STORY_ID}
Status: done
📋 Steps completed: 5/5
✅ Create User Story
✅ Generate ATDD Tests
✅ Development
✅ Code Review
✅ Trace Test Coverage
To customize the pipeline workflow, edit: references/workflow-steps.md
Changes supported:
npx claudepluginhub terryso/claude-bmad-skillsRuns configurable BMAD story pipeline in isolated git worktree for specified or auto-selected story number. Merges to main only after tests pass.
Automates the BMAD story build cycle (create, dev, QA, review, retrospective) with resumable tmux orchestration.
Implements user stories from context-filled spec files. Activates on 'dev this story [story file]' or 'implement the next story in the sprint plan' phrases.