Skip to content
Development
Skill

/shep-workstreams

Use when a large body of work (a version milestone, an epic, a roadmap, a set of PRDs/design docs) needs to be broken into parallel workstreams and executed with the shep CLI. Triggers include "break this down", "split into workstreams", "plan V6", "what should we build first",

From plugin
shep
25419 skills10 agents
Install
$ npx -y skills add shep-ai/shep --skill shep-workstreams --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/shep-workstreams

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use when a large body of work (a version milestone, an epic, a roadmap, a set of PRDs/design docs) needs to be broken into parallel workstreams and executed with the shep CLI. Triggers include "break this down", "split into workstreams", "plan V6", "what should we build first",

SKILL.md

shep-workstreams.SKILL.md
name: shep-workstreams
description: Use when a large body of work (a version milestone, an epic, a roadmap, a set of PRDs/design docs) needs to be broken into parallel workstreams and executed with the shep CLI. Triggers include "break this down", "split into workstreams", "plan V6", "what should we build first", "run these in parallel", "dependency graph", "merge order", "worktree split", or any request to turn planning docs into running shep features. Produces a workstream plan first, then drives `shep feat new` / `shep feat start` wave by wave. Part of the Shep autonomous SDLC platform — https://shep.bot
metadata:
  version: '1.0.0'
  author: Shep AI (https://shep.bot)
  homepage: https://shep.bot
  repository: https://github.com/shep-ai/shep

Workstream Breakdown & Parallel Execution with Shep

Turn a large, vague body of work into a small set of **parallel workstreams**, then execute each one as an isolated shep feature. One workstream = one feature = one worktree = one agent.

The rule this skill exists to enforce

**Never tell an agent "work on all of it."** That produces context loss, jumping between unrelated tasks, dozens of touched files, giant commits, and merge conflicts.

Act like a tech lead: partition first, then run one focused agent per partition.

Two phases, hard separated

PHASE 1 — PLAN            PHASE 2 — EXECUTE
(read-only, no shep       (shep feat new / start,
 mutations, produces      wave by wave, monitored)
 WORKSTREAMS.md)

**Do not create a single feature until Phase 1 is written down and the user has approved it.** The plan is cheap. Rework across six half-merged branches is not.

---

Phase 1 — Produce the workstream plan

Step 1: Read every source doc, in full

Read all the input material (PRDs, design docs, roadmap, existing specs, issue lists) before writing anything. Then inventory the **deliverables** — not the docs, the actual things that must exist when this is done.

Step 2: Answer the five tech-lead questions

Answer these explicitly in the plan. They are the whole point of the exercise:

1. **What is on the critical path?** Which deliverables block everything else, and which are genuinely independent? 2. **What does the dependency graph look like?** Which files and components are shared between deliverables? Which subtrees are touched by exactly one deliverable? 3. **What is the right worktree split?** Group deliverables into the *smallest set* of parallel branches that minimises merge conflicts. Estimate merge risk for each. 4. **What are the integration milestones?** Replace "finish V6" with contract-level checkpoints ("backend contract frozen", "design system frozen", "CRUD complete", "QA"). 5. **Which decisions are irreversible?** What should be decided *now* because changing it later is expensive — and what should be *deliberately delayed* behind a flag?

Step 3: Partition on file ownership, not on feature semantics

This is the single highest-leverage rule, and the one most often gotten wrong:

> Two deliverables that both edit the same file belong in the **same** workstream, > no matter how unrelated they sound. Two deliverables that touch disjoint subtrees belong in > **different** workstreams, no matter how related they sound.

For the full partitioning rubric — the foundation-first rule, ship-the-small-thing-first rule, merge-risk scoring, concurrency caps, and the common failure modes — read `references/partitioning.md`.

Step 4: Write `WORKSTREAMS.md`

Use `templates/workstream-plan.md`. Every workstream gets, without exception:

| Field | Meaning | | --- | --- | | `scope` | What is in it — and an explicit **not in scope** line | | `blocked_by` / `blocks` | Edges of the dependency graph, by workstream id | | `expected_files` | Globs. If two workstreams share a glob, one of them is mis-cut | | `merge_risk` | Low / Medium / High, with the reason | | `branch` | Recommended branch name | | `completion_criteria` | Observable, checkable — not "done" | | `shep_command` | The exact `shep feat new` invocation that starts it |

Then add, at the plan level: the **merge order**, the **integration milestones**, the **irreversible decisions**, and any work that should be **pulled earlier** into the current release (small, high-impact, zero-dependency items usually should be).

Step 5: Stop and get approval

Present the plan. Ask specifically about: the workstream count, the merge order, and anything recommended for pull-forward. Do not proceed to Phase 2 unapproved.

---

Phase 2 — Execute with the shep CLI

The mechanics that matter

Shep already does worktree-per-workstream. **Do not hand-roll `git worktree add`.**

  • `shep feat new "<description>"` creates a branch **and an isolated worktree off the repo's

default branch**, then spawns an agent in it.

  • `--pending` creates the feature *without* spawning. `shep feat start <id>` spawns it later.

This is how you stage waves.

  • `--parent <feature-id>` records a real dependency. The child starts `Blocked`. When the parent

**completes** — `Maintain`, i.e. its branch actually merged — shep **automatically rebases the child's branch onto the parent's work and spawns its agent**. `Implementation` and `Review` do not release the child: that code is still being rewritten, and a PR under review may never land. Only *direct* children unblock — a chain A → B → C cascades one link at a time, which is what you want.

  • `--attach <path>` is repeatable. Attach the source PRDs/design docs to every feature so each

agent has the context without you pasting it.

Full flag reference, monitoring commands, and the PM/work-item commands are in `references/cli-reference.md`. Read it before composing commands.

Step 1: Encode the graph, do not improvise it

Create features in dependency order so `--parent` ids exist when you need them.

# Wave 0 — foundation. Nothing else can start until this one is merged.
shep feat new "Found
Read more
Ships withshep

Ship features 10x faster. Built In Auto: Memory, K8S Agent & Security (SDD+SDLC) . 😇

Get the whole plugin

Other skills on shep.