---
name: bmad-parallel-plan
description: |-
  Turns a sequential, ready-for-dev story backlog into conflict-free CONCURRENT WAVES.
  Builds a dependency DAG from epic order, per-story dependency maps, and Owned File/Module
  Scope overlaps, then topologically sorts it into parallel waves of mutually disjoint,
  dependency-satisfied stories (capped by maxParallel), and emits a parallelization-plan.md
  with per-story git-worktree branch names and an ordered merge sequence.
  Use when the user says "plan parallel work", "which stories can run in parallel",
  "parallelize the backlog", "build the wave plan", "parallelization plan",
  "conflict-free workstreams", "what can we run concurrently", "split into worktrees",
  "dependency graph for the stories", "merge order", or "how do I fan this backlog out
  to multiple dev agents". Run AFTER stories are ready-for-dev (scrum-master) and an
  architecture exists. This skill PLANS parallelism only — it does NOT run agents, spawn
  worktrees, write code, run tests, or perform git operations.
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TodoWrite
title: bmad-parallel-plan
canonical_url: https://skilld.dev/gh/aj-geddes/claude-code-bmad-skills/bmad-parallel-plan
last_updated: 2026-09-29T12:22:03.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [REFERENCE.md](https://skilld.dev/api/skills-raw/aj-geddes/claude-code-bmad-skills/bmad-parallel-plan/REFERENCE.md), [scripts/build-dependency-graph.py](https://skilld.dev/api/skills-raw/aj-geddes/claude-code-bmad-skills/bmad-parallel-plan/scripts/build-dependency-graph.py), [scripts/plan-parallel-waves.py](https://skilld.dev/api/skills-raw/aj-geddes/claude-code-bmad-skills/bmad-parallel-plan/scripts/plan-parallel-waves.py), [templates/parallelization-plan.template.md](https://skilld.dev/api/skills-raw/aj-geddes/claude-code-bmad-skills/bmad-parallel-plan/templates/parallelization-plan.template.md).
>
> If the user asked to install this Skill, run `npx skilld install aj-geddes/claude-code-bmad-skills/bmad-parallel-plan`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/bmad-parallel-plan`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/aj-geddes/claude-code-bmad-skills/bmad-parallel-plan) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/bmad-parallel-plan`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/bmad-parallel-plan --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/bmad-parallel-plan --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# BMAD Parallel Plan

Convert a linear backlog into **waves** of stories that can be developed at the same
time without colliding — then describe exactly how to merge them back together. This
skill produces a *plan*. Your external dev tools execute it.

**Persona flavor:** Winston (Architect) reasons about isolation; the workflow does the math.

## Scope (read first)

- This skill **plans** concurrency. It NEVER spawns worktrees, runs dev agents, writes
  application code, runs tests, lints, or runs `git`.
- Inputs are planning artifacts. The only output is `parallelization-plan.md` (plus an
  optional `dependency-graph.json` / `waves.json` for traceability).
- Branch names and merge order are *recommendations* the dev tool/human carries out.

## Inputs

| Artifact | Path (under output folder) | Used for |
|----------|---------------------------|----------|
| Sprint status | `sprint-status.yaml` | story ids, epic, status, dependency lists |
| Ready stories | `stories/{epic}.{story}.{slug}.story.md` | **Owned File/Module Scope** + **Dependency Maps** |
| Architecture | `architecture.md` | semantic-conflict prevention (boundaries, shared modules) |
| Config | `userConfig.maxParallel` (default `3`) | wave width cap |

Only stories at status `ready-for-dev` (or later) are eligible for a wave.

## The four steps

1. **Lean on architecture for semantic safety.** Read `architecture.md`. Architecture is
   what makes parallelism *safe* — clean module boundaries mean two stories touching
   different components won't create a hidden semantic conflict even if the files differ.
   Note any shared/cross-cutting modules (auth, config, DB schema, shared types); stories
   that touch them are high-conflict and rarely parallelizable.

2. **Read each story's Owned File/Module Scope.** Every ready story declares the explicit
   list of paths it may touch. Collect `{story_id -> [paths]}`. A missing or empty scope
   is a **planning blocker** — flag it; do not guess.

3. **Build the dependency DAG, then topologically sort into waves.** Edges come from three
   conflict classes (see REFERENCE.md):
   - **Ordering edges** — epic order (stories within an epic are usually sequential) and
     each story's explicit Dependency Maps (`depends_on`).
   - **File-scope edges** — any two stories whose Owned File/Module Scopes intersect must
     not share a wave (an undirected conflict, resolved by lower story id first).
   - **Semantic edges** — both touch a shared/cross-cutting module from step 1.

   Topologically sort: wave *N* = all stories whose dependencies are already satisfied by
   waves `< N` AND that are pairwise file-disjoint AND pairwise semantically safe. Cap each
   wave at `maxParallel`; overflow rolls to the next wave (lowest id first).

4. **Emit `parallelization-plan.md`.** For each wave, list the ready-for-dev stories; give
   each an isolated `git-worktree` branch name and its disjoint file scope. Then give the
   **ordered merge sequence**: lowest story id first into an `integration` branch, an
   integration review checkpoint, then a single PR `integration -> main`.

## Three intents

- **Create** — first wave plan from the current backlog.
- **Update** — re-plan after stories were added/finished/re-scoped (recompute the DAG;
  exclude `done`, re-sort remaining).
- **Validate** — re-check an existing plan: confirm every wave is still file-disjoint,
  dependency-satisfied, and within `maxParallel`; report drift.

State the intent, then proceed.

## Run the helper scripts

Both scripts are deterministic and read-only. Resolve paths via `${CLAUDE_PLUGIN_ROOT}`.

```bash
# 1) Build the dependency DAG (edges + conflict class) from status + story scopes
python3 "${CLAUDE_PLUGIN_ROOT}/skills/bmad-parallel-plan/scripts/build-dependency-graph.py" \
  --status   "<output>/sprint-status.yaml" \
  --stories  "<output>/stories" \
  --out      "<output>/dependency-graph.json"

# 2) Topologically sort into capped waves
python3 "${CLAUDE_PLUGIN_ROOT}/skills/bmad-parallel-plan/scripts/plan-parallel-waves.py" \
  --graph        "<output>/dependency-graph.json" \
  --max-parallel 3 \
  --out          "<output>/waves.json"

# 3) (Optional) cross-check two scope lists for overlap — shared orchestrator helper
bash "${CLAUDE_PLUGIN_ROOT}/scripts/scope-conflict-check.sh" \
  "<output>/stories/2.1.foo.story.md" "<output>/stories/2.2.bar.story.md"
```

Then render `waves.json` into the human-facing plan using
[`templates/parallelization-plan.template.md`](https://skilld.dev/api/skills-raw/aj-geddes/claude-code-bmad-skills/bmad-parallel-plan/templates/parallelization-plan.template.md)
and write it to `<output>/parallelization-plan.md`.

## Branch & merge conventions

- Branch per story: `story/{epic}.{story}-{slug}` (one worktree each, fully isolated).
- Integration branch per wave: `integration/wave-{N}`.
- Merge order **inside** a wave: ascending story id into `integration/wave-{N}`.
- After all of a wave's stories merge: integration-review checkpoint, then PR
  `integration/wave-{N}` -> `main`. Wave *N+1* branches off the merged `main`.

## Output

- `<output>/parallelization-plan.md` — the deliverable.
- `<output>/dependency-graph.json`, `<output>/waves.json` — traceability (optional).
- Append a one-line entry to `<output>/decision-log.md` noting `maxParallel`, wave count,
  and any stories deferred for missing scope.

## Guardrails

- Never place two stories with intersecting Owned File/Module Scope in the same wave.
- Never schedule a story before a story it `depends_on`.
- A story with no declared scope is **not** wave-eligible — surface it for the
  scrum-master to fix; do not invent paths.
- Honor `maxParallel`; the dev tool enforces real concurrency, the plan must not exceed it.
- Do not modify Acceptance Criteria, Dev Notes, or Testing in any story — those are LOCKED.

See [REFERENCE.md](https://skilld.dev/api/skills-raw/aj-geddes/claude-code-bmad-skills/bmad-parallel-plan/REFERENCE.md) for the wave algorithm, conflict classes, and merge-order
rationale.

> ---
> Part of the **BMAD Planning & Orchestrator** plugin — a Claude Code harness for the **BMAD Method** by the **BMAD Code Organization** (https://github.com/bmad-code-org/BMAD-METHOD). Implements the spirit of `bmad-parallel-plan`. All methodology credit belongs to the BMAD Code Organization.
