agentleFS
terrysoterryso/claude-bmad-skills/skills/bmad-story-pipeline/SKILL.md

bmad-story-pipeline

Skill41 starsChanged 9 months agoMITView on GitHub

Run configurable BMAD pipeline for story delivery using subagent

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. xiaolinVV/agents-skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 12 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If {ARGUMENT} is empty or not provided:

    line 13
  2. Very specific:

    Read _bmad-output/implementation-artifacts/sprint-status.yaml (or docs/sprint/sprint-status.yaml) to find stories

    line 15
  3. Very specific:

    Use that story number as {STORY_ID}

    line 17
  4. Distinctive:

    If no story found, ask user to specify story number

    line 18
  5. Distinctive:

    Read workflow steps from references/workflow-steps.md

    line 24
  6. Distinctive:

    After pipeline, update status to done

    line 27
  7. Distinctive:

    Read and execute steps from references/workflow-steps.md.

    line 31
  8. Distinctive:

    Call Task tool with the step's description and prompt

    line 95
  9. Distinctive:

    Wait for completion and capture result

    line 96
  10. Distinctive:

    If step fails, stop and report error

    line 98
  11. Distinctive:

    After each step, output progress:

    line 102
  12. Distinctive:

    If any step fails:

    line 113
  13. Distinctive:

    Stop executing subsequent steps

    line 114
  14. Distinctive:

    Do NOT proceed to next steps

    line 126
  15. Distinctive:

    After ALL steps complete successfully:

    line 130

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

BMAD Story Pipeline

Complete the delivery pipeline for story {ARGUMENT} using configurable workflow.

Pre-step: Determine Story Number

If {ARGUMENT} is empty or not provided:

  1. Read _bmad-output/implementation-artifacts/sprint-status.yaml (or docs/sprint/sprint-status.yaml) to find stories
  2. Find the first story with status "todo" or "in-progress"
  3. Use that story number as {STORY_ID}
  4. If no story found, ask user to specify story number

The story number format is typically X-Y (e.g., 1-1, 2-3).

Execution Strategy

  1. Read workflow steps from references/workflow-steps.md
  2. Execute each step sequentially using Task tool (general-purpose agent)
  3. Output progress after each step
  4. After pipeline, update status to done

Workflow Steps

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"
)

Example Invocations

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"
)

Execution Flow

For each step:

  1. Replace {STORY_ID} with the actual story number in the prompt
  2. Call Task tool with the step's description and prompt
  3. Wait for completion and capture result
  4. Output progress: [X/5] Step Name - Status
  5. If step fails, stop and report error

Progress Display

After each step, output progress:

📊 Pipeline Progress: [X/5] ████████░░░░ 40%

✅ Step X: <Step Name>
   Result: <Brief result summary>

Error Handling

If any step fails:

  1. Stop executing subsequent steps
  2. Output error information:
    ❌ 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
  3. Do NOT proceed to next steps

Post-Pipeline: Update Status

After ALL steps complete successfully:

  1. Update sprint-status.yaml:
    • Find the story entry
    • Change status from in-progress to done
  2. Update story document (if exists):
    • Change Status: to done
    • Mark all tasks with ✅

Output 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

Configuration

To customize the pipeline workflow, edit: references/workflow-steps.md

Changes supported:

  • Add/remove steps
  • Modify step commands
  • Reorder steps
  • Change descriptions

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.