bmad-epic-pipeline-worktree

bmad-epic-pipeline-worktree is a skill for Claude Code from terryso/claude-bmad-skills. It costs 20 tokens per session (1,694 once invoked), scanned A, original, MIT.

A workflow skill for delivering every unfinished user story in a software epic through isolated Git worktrees and required tests.

In plain words
What is it for?
Use it to implement an entire epic, select incomplete stories, run the configured development pipeline, and merge completed work.
Why use it?
It organizes multi-story development and keeps each story separate until it is ready to merge.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the bmad-skills plugin — 3 skills shipped together

Good fit Use it to implement an entire epic, select incomplete stories, run the configured development pipeline, and merge completed work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/terryso/claude-bmad-skills/bmad-epic-pipeline-worktree
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add terryso/claude-bmad-skills --skill bmad-epic-pipeline-worktree
Clone the repo
git clone --depth 1 https://github.com/terryso/claude-bmad-skills

Made for: Claude Code.

Or install bmad-skills, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bmad-epic-pipeline-worktree

README.md
[![agentmods](https://agentmods.dev/badge/skills/terryso/claude-bmad-skills/bmad-epic-pipeline-worktree/github.svg)](https://agentmods.dev/skills/terryso/claude-bmad-skills/bmad-epic-pipeline-worktree)
Your own site
<a href="https://agentmods.dev/skills/terryso/claude-bmad-skills/bmad-epic-pipeline-worktree"><img src="https://agentmods.dev/badge/skills/terryso/claude-bmad-skills/bmad-epic-pipeline-worktree/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bmad-epic-pipeline-worktree

Your own site · 80×15
<a href="https://agentmods.dev/skills/terryso/claude-bmad-skills/bmad-epic-pipeline-worktree"><img src="https://agentmods.dev/badge/skills/terryso/claude-bmad-skills/bmad-epic-pipeline-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,694 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.01694
Opus 5 $0.00010 $0.00847
Sonnet 5 $0.00004 $0.00339
Haiku 4.5 $0.00002 $0.00169

Measured 10d ago against content hash 5c9d4c66dc86, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

bmad-epic-pipeline-worktree scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bmad-epic-pipeline-worktree/SKILL.md · 223 lines

How it starts

The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.

BMAD Epic Pipeline (Worktree Edition)

Deliver all incomplete user stories in Epic {ARGUMENT} using configurable pipeline, each story developed in isolated worktree and merged only after tests pass.

Pre-step: Determine Epic Number

If no epic number is provided ({ARGUMENT} is empty):

  1. Read _bmad-output/implementation-artifacts/sprint-status.yaml (or docs/sprint/sprint-status.yaml)
  2. Find all stories with status not done (format: X-Y-story-name)
  3. Extract Epic numbers X from these stories
  4. Select the smallest Epic number as {ARGUMENT}
  5. Output:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 Auto-selected Epic: {ARGUMENT} (has incomplete stories)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Example:

  • Status file has 3-2-llm-prompt-template: backlog, 3-3-xxx: in-progress, 4-1-xxx: done
  • Incomplete Epics: 3
  • Auto-select Epic: 3

Difference from bmad-epic-worktree

Feature bmad-epic-worktree bmad-epic-pipeline-worktree
Story delivery bmad-story-worktree bmad-story-pipeline-worktree
Workflow config Fixed 8-step flow Configurable via workflow-steps.md
Customization Limited Full pipeline customization
Safety level High High

Execution Strategy

  1. Read all incomplete stories under the Epic
  2. Sort by Story number ascending
  3. Execute /bmad-story-pipeline-worktree for each story sequentially
  4. Only start next story after previous one completes
  5. If any story fails, stop and preserve current state

Execution Flow

Step 1: Collect Epic Story List

Read sprint-status.yaml, collect all incomplete stories under specified Epic:

Task(
  subagent_type: general-purpose,
  description: "Collect Epic {ARGUMENT} story list",
  prompt: "Read _bmad-output/implementation-artifacts/sprint-status.yaml (or docs/sprint/sprint-status.yaml), collect all stories for Epic {ARGUMENT}:

1. Filter entries with key format '{ARGUMENT}-Y-story-name'
2. Keep only stories with status not 'done'
3. Sort by Story number Y ascending
4. Return story list with format:
   - Story number: 'X.Y', Story name, Current status
   - Number of incomplete stories

If no incomplete stories found, return 'Epic {ARGUMENT} has no incomplete stories'"
)

Read the full file on GitHub · 223 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 223 lines · 20 tokens per session scan A 5c9d4c66dc86

Subscribe to this mod's changes

bmad-epic-pipeline-worktree is a skill published in the GitHub repository terryso/claude-bmad-skills (41 stars, last pushed 5mo ago), licensed MIT. It adds 20 tokens to every session and 1,694 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other skills, from other repositories