Back to skills
SKILL.md
Sdd Parallel
ASecurityBuild a conflict-free parallel wave plan across SDD roadmaps (BMAD, Spec Kit, GSD, OpenSpec, Beads, Custom), provision isolated Track Slot worktrees with LockManifest boundaries, and orchestrate parallel tracks via Two-Stage Assisted or Multi-Window Autopilot.
- 4 stars
- 0 votes
- 0 copies
- 2 views
- Added November 11, 2026
Works with
Security analysis
100/100npx -y skills add stopActingSoSmall/sdd-parallel --skill resources --agent claude-codeAre you the author of Sdd Parallel?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/stopactingsosmall-sdd-parallel)---
name: sdd-parallel
description: Build a conflict-free parallel wave plan across SDD roadmaps (BMAD, Spec Kit, GSD, OpenSpec, Beads, Custom), provision isolated Track Slot worktrees with LockManifest boundaries, and orchestrate parallel tracks via Two-Stage Assisted or Multi-Window Autopilot.
---
# ⚡ SDD-Parallel — Multi-Track Orchestration Skill
## Overview
Use this skill whenever the user wants to:
1. Parallelize an **SDD Kit** roadmap (`sprint-status.yaml`, `stories.yaml`, `epics.md`, `.scratch/**/issues/*.md`, `.specify/specs/*/tasks.md`, `.planning/ROADMAP.md`, `openspec/changes/*/tasks.md`, `.beads/issues.jsonl`, `.parallel/custom-kit.yaml`).
2. Compute file/AST/CRG **Type-1 Collision** and **Type-2 Collision** graphs and pack **TaskNode** units into barrier-synchronized **Wave** steps ($K=2$ or $3$ tracks) with **EffortTier** hints (`high` / `medium` / `low`).
3. Provision clean **Track Slot** `git worktree` directories with **Track Context** (`.tmp/track-context.md`) and **LockManifest** (`.parallel-lock.json`) (`100% clean git status --porcelain`).
4. Execute waves via **Mode A: Two-Stage Assisted (Interactive IDE Slots — Spec Kit / GSD / OpenSpec / Beads / BMAD) (Recommended)** or **Mode B: Multi-Window Autopilot**, followed by deterministic **Barrier Checkpoint** merges and **Checkpoint Quality Gate** checks.
5. Manage transactional wave safety via **Wave Abort** (`abort-wave`) and **LIFO Wave Rollback** (`rollback-wave`) with automatic **Safety Backup Branch** snapshots.
---
## Step 1: Discovery, Pre-Flight Gate & Wave Planning
1. Run the deterministic planner to inspect the repository, detect **Wave 0** blockers (`git status --porcelain`, uncommitted `in-progress` tasks), classify files by **FileRole** (**Spine File**, **Spine Bucket**, **Additive Registry**, **Standard Module**), and compute **Impact Radius** via `code-review-graph` (optionally specify `--kit {auto,bmad,spec-kit,gsd,openspec,beads,custom}` and `--routing-file <routing-overrides.json>`):
```powershell
uv run sdd-parallel plan --repo <target-repo-path> --max-tracks 3 [--kit <kit>] [--routing-file <path>]
```
2. For BMAD repositories, the Pre-Flight Context Gate automatically validates the existence of `epic-<N>-context.md` in `implementation-artifacts` or `planning-artifacts` before **Wave** execution to avoid add/add merge conflicts.
3. If multiple **SDD Kit** ecosystems coexist in the same repository under `kit="auto"`:
- If exactly one **SDD Kit** contains unfinished **TaskNode** units, `get_adapter()` activates it automatically, `diagnose_multi_kit_coexistence()` emits a coexistence diagnostic, and inactive kit directories are locked read-only inside **LockManifest**.
- If two or more **SDD Kit** frameworks contain unfinished **TaskNode** units, `get_adapter()` fails closed with `AmbiguousMultiKitError` (exit code `1`), requiring explicit `--kit <name>` or `default_kit` in `.parallel-config.json`.
4. When coupled with an external routing system, pass `--routing-file <routing-overrides.json>` to `plan`, `prepare`, `run-guide`, or `autopilot` to apply **Routing Override** decisions (`effort`, `model`, `execution_mode`) per **TaskNode** without LLM calls in the core.
---
## Step 2: Operator Confirmation (`ask_question`)
Present the computed **WavePlan** to the operator and prompt for execution flow:
1. **Execution Workflow:**
- `(Recommended) Mode A: Two-Stage Assisted (Native SDD)` — Orchestrator provisions **Track Slot** worktrees (`Depth 0`), operator opens independent Antigravity windows and launches native **Track Worker** commands (`/bmad-build`, `/speckit.implement`, etc.) with full review lenses, then orchestrator verifies and merges.
- `Mode B: Multi-Conversation Autopilot` — Automated Depth-0 launch across separate sessions via `sdd-parallel autopilot` (`--execute`, `--auto-merge`, `--policy`, `--timeout`).
- `Mode C: In-Session Flat Dispatch (Deprecated / Fallback Only)` — Monolithic subagent dispatch inside a single chat session (warning: lacks **Track Slot** directory isolation (`CWD`) and causes context window exhaustion in the orchestrator).
---
## Step 3: Wave Provisioning & Assisted Execution
### 3.1. Provision Worktrees for Wave $K$
```powershell
uv run sdd-parallel prepare --repo <target-repo-path> --wave <K> --antigravity-layout --headless [--kit <kit>]
```
This provisions or reuses permanent **Track Slot** directories in `~/.gemini/antigravity/worktrees/<Project>/track-<id>` ($K = \text{max\_tracks}$, e.g. `track-a`, `track-b`, ...) with Git 2.48 guard (`-c worktree.useRelativePaths=false`), performs an atomic in-place reset (`git checkout -B`, `git clean -fd`), injects **Track Context** (`.tmp/track-context.md`) and **LockManifest** (`.parallel-lock.json`), configures Claude Code sandbox settings (`.claude/settings.local.json` with `blockWritesOutsideWorkingDirectories`), and applies OS read-only locks (`chmod a-w` on **Protected Contract** and sibling files with `core.fileMode false`), keeping `git status --porcelain` **100% clean**.
*(Pass `--dynamic-worktrees` if legacy per-wave worktree directories `wave-<K>-track-<id>` are desired).*
### 3.2. Generate Operator Run Guide
```powershell
uv run sdd-parallel run-guide --repo <target-repo-path> --wave <K> --antigravity-layout [--kit <kit>]
```
This outputs a ready-to-copy Markdown matrix with **Track Slot** paths and framework-specific **Track Worker** launch commands:
```text
| Track | Stories / Tasks | Effort | Worktree Directory | Worker Command |
| :--- | :--- | :--- | :--- | :--- |
| track-a | 11-2 | high | .../track-a | `/speckit.implement 11-2` (or `/bmad-build`, `/gsd-execute-phase`, `/openspec-apply`, `bd update`) |
| track-b | 11-3 | medium | .../track-b | `/speckit.implement 11-3` (or `/bmad-build`, `/gsd-execute-phase`, `/openspec-apply`, `bd update`) |
```
### 3.3. Execute Native Workers (Depth 0)
Operator opens each **Track Slot** in an independent Antigravity window and triggers the **Track Worker**:
- **GitHub Spec Kit:** `/speckit.implement <task-id>`
- **GSD:** `/gsd-execute-phase <phase-num>`
- **OpenSpec:** `/openspec-apply <task-id>`
- **Beads:** `bd update <task-id> --status in-progress`
- **BMAD:** `/bmad-build <task-id>` (full workflow: spec generation, TDD implementation, and Code Quality / Edge Cases / Test Coverage lenses).
### 3.4. (Deprecated / Fallback Only) Mode C: In-Session Flat Dispatch
> [!WARNING]
> While subagents support nesting up to 10 levels, `invoke_subagent` cannot bind subagents to separate **Track Slot** `git worktree` working directories (`CWD`) or isolate **Scope Guard** locks. Running parallel **TaskNode** mutations inside a single chat session leads to shared directory conflicts and rapid context window exhaustion. Flat Dispatch should only be used as an emergency fallback when multi-window or CLI execution is impossible.
---
## Step 4: Verification & Barrier Checkpoint Merge
1. **Verify LockManifest Invariants, Pre-Merge AST Diff Gate & Scope Guard:**
Verify that **Track Branch** commits inside **Track Slot** worktrees did not mutate files forbidden by **LockManifest** (enforced by **Scope Guard** hooks and Terminal Guard) and pass the **Pre-Merge AST Diff Gate** (checking cross-branch circular imports, signature/default drift, duplicate new helpers, and dependency manifest collisions):
```powershell
uv run sdd-parallel verify-wave --repo <target-repo-path> --wave <K> [--kit <kit>]
```
2. **Barrier Checkpoint Merge (Full or Partial Barrier Merge with Culprit Isolation):**
Merge all **Track Branch** heads into the base branch with **Monotonic Status Merger** (for `sprint-status.yaml`, `tasks.md`, `issues.jsonl`) and **AST Registry Merger** (for **Additive Registry** entrypoints), then run **Checkpoint Quality Gate** checks:
```powershell
uv run sdd-parallel merge --repo <target-repo-path> --wave <K> [--partial-merge] --cleanup [--kit <kit>]
```
With **Partial Barrier Merge** (enabled by default; override with `--no-partial-merge`), healthy **Track Branch** commits land incrementally while failing **WaveTrack** assignments are isolated via **Culprit Isolation**, preserved on a **Safety Backup Branch** (`backup/wave-<K>-<track>-failed-<ts>`), and recorded as **Barrier Feedback** in `.parallel/barrier-feedback-<story_id>.json` (injected into the next **Wave**'s **Track Context**).
**Checkpoint Quality Gate** commands executed automatically:
- `uv run pytest`
- `uv run ruff check src/ tests/`
- `uv run mypy --strict src/`
---
## Step 5: Transactional Safety & Rollback Engine
If a **Wave** fails verification, **Checkpoint Quality Gate** checks, or requirements during development:
1. **Wave Abort Before Merge (Clean Track Slots & Branches):**
```powershell
uv run sdd-parallel abort-wave --repo <target-repo-path> --wave <K>
```
Resets active **Track Slot** directories (or removes dynamic worktrees), prunes git metadata, and deletes temporary **Track Branch** refs.
2. **LIFO Wave Rollback After Merge (Strict LIFO Order with Backup):**
```powershell
uv run sdd-parallel rollback-wave --repo <target-repo-path> --wave <K> --save-backup
```
- Enforces strict LIFO invariant (only the latest merged **Wave** can be rolled back).
- Creates an immutable **Safety Backup Branch**: `backup/wave-<K>-before-rollback-<timestamp>`.
- Resets repository `HEAD` to pre-merge commit.
- Polymorphically resets **TaskStatus** values in **Status Tracker** artifacts (e.g. `sprint-status.yaml` $\to$ `ready-for-dev`) and cleans generated wave artifacts.
---
## Complete CLI Command Reference
All subcommands exposed by `sdd-parallel`:
- `plan`: Analyze **SDD Kit** roadmap, AST/CRG **Impact Radius** graph, and construct **WavePlan** (supports `--routing-file`).
- `prepare`: Provision isolated **Track Slot** git worktrees with **LockManifest** boundaries (supports `--routing-file`).
- `claim-track`: Attach **LockManifest** boundaries to an existing interactive IDE **Track Slot**.
- `run-guide`: Display operator execution instructions and native **Track Worker** launch commands (supports `--routing-file` and `--dynamic-worktrees`).
- `autopilot`: Generate and execute multi-conversation **Track Worker** launch commands (supports `--routing-file`, `--execute`, `--auto-merge`, `--policy`, `--timeout`).
- `check-lock`: Validate if modifying a file is permitted by `.parallel-lock.json`.
- `verify-wave`: Validate that **Track Branch** commits strictly adhere to **LockManifest** boundaries and pass **Pre-Merge AST Diff Gate**.
- `merge`: **Barrier Checkpoint** merge of parallel **Track Branch** heads with **Checkpoint Quality Gate** checks (supports **Partial Barrier Merge**, **Culprit Isolation**, and **Barrier Feedback**).
- `merge-status`: **Monotonic Status Merger** 3-way deterministic reconciliation for **Status Tracker** files (`sprint-status.yaml`, `tasks.md`, `issues.jsonl`).
- `abort-wave`: Execute **Wave Abort** to discard unmerged **Track Branch** changes and reset **Track Slot** directories.
- `rollback-wave`: Execute **LIFO Wave Rollback** on the latest merged **Wave** with a **Safety Backup Branch**.
- `install-plugin`: Package and deploy portable Antigravity IDE plugin.
- `demo`: Run standalone 5-second Merge-Bomb demonstration and multi-kit validation.
- `bench`: Run retrospective benchmark & confusion matrix evaluation on git history or synthetic demo.
- `inspect`: Launch or generate standalone interactive HTML Wave Inspector for **WavePlan** and **Track Slot** status.
- `init-custom`: Interactive onboarding wizard to configure custom **SDD Kit** manifest (`.parallel/custom-kit.yaml`).
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.