GGPrompts

bd-swarm-auto

@GGPrompts/bd-swarm-auto
GGPrompts
116
10 forks
Updated 1/6/2026
View on GitHub

Fully autonomous backlog completion. Runs waves until `bd ready` is empty. Self-resumable after /wipe. Use when you want hands-off parallel issue processing.

Installation

$skills install @GGPrompts/bd-swarm-auto
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Pathplugins/conductor/skills/bd-swarm-auto/SKILL.md
Branchmain
Scoped Name@GGPrompts/bd-swarm-auto

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

skills list

Skill Instructions


name: bd-swarm-auto description: "Fully autonomous backlog completion. Runs waves until bd ready is empty. Self-resumable after /wipe. Use when you want hands-off parallel issue processing."

BD Swarm Auto - Autonomous Backlog Completion

YOU are the conductor. Execute this workflow autonomously. Do NOT ask the user for input.

Architecture: Fewer Terminals, More Subagents

Spawn 3-4 terminal workers max, each handling multiple issues via internal Task subagents.

BAD:  10 terminals x 1 issue each    -> statusline chaos
GOOD: 3 terminals x 3-4 subagents each -> smooth execution

Quick Reference

StepActionReference
1Get ready issuesbd ready --json
2Calculate workersMax 4, distribute issues
3Create worktreesParallel, wait for all
4Spawn workersTabzChrome API
5Send promptsMulti-issue with subagent instructions
6Poll statusEvery 2 min, check context
7Merge & cleanupKill sessions first
8Visual QAtabz-manager for UI waves
9Next waveLoop until empty

Full details: references/wave-execution.md


EXECUTE NOW - Wave Loop

# Get ready issues
READY=$(bd ready --json | jq -r '.[].id')
[ -z "$READY" ] && echo "Backlog complete!" && exit 0

# Count and distribute to max 4 workers
ISSUES_COUNT=$(echo "$READY" | wc -l)
# 1-4: 1-2 workers, 5-8: 2-3 workers, 9+: 3-4 workers

# Create worktrees (parallel)
for ISSUE_ID in $READY; do
  plugins/conductor/scripts/setup-worktree.sh "$ISSUE_ID" &
done
wait

# Spawn workers, send prompts, monitor
# ... see references/wave-execution.md

# Merge and cleanup
plugins/conductor/scripts/completion-pipeline.sh "$READY"

# Check for next wave
NEXT=$(bd ready --json | jq 'length')
[ "$NEXT" -gt 0 ] && echo "Starting next wave..." # LOOP

Key Rules

  1. NO USER INPUT - Fully autonomous, no AskUserQuestion
  2. MAX 4 TERMINALS - Never spawn more than 4 workers
  3. USE SUBAGENTS - Workers use Task subagents for parallelization
  4. YOU MUST POLL - Check issue status every 2 minutes
  5. LOOP UNTIL EMPTY - Keep running waves until bd ready is empty
  6. VISUAL QA - Spawn tabz-manager after UI waves
  7. MONITOR CONTEXT - At 70%+, trigger /wipe:wipe

Worker Prompt Template

## Multi-Issue Worker Task

**MODE: AUTONOMOUS**

Do NOT use AskUserQuestion. Make reasonable defaults.
If blocked, close with 'needs-clarification' and create follow-up.

Issues to complete IN PARALLEL using subagents:
- ISSUE-001: Title
- ISSUE-002: Title

For EACH issue, spawn a Task subagent in ONE message.

Skills: /ui-styling:ui-styling, /frontend-design:frontend-design

Context Recovery

See: references/context-recovery.md

At 70% context, run /wipe:wipe with handoff:

## BD Swarm Auto In Progress
**Active Issues:** [list in_progress IDs]
**Action:** Run `/conductor:bd-swarm-auto` to continue

Auto vs Interactive

AspectAutoInteractive
Worker countAll readyAsk user
WavesLoop until emptyOne wave
QuestionsMake defaultsAskUserQuestion ok
ContextAuto /wipeManual

Troubleshooting

ProblemSolution
Worker not respondingtmux capture-pane -t SESSION -p -S -50
Merge conflictsResolve manually, continue
Worker stuckNudge via tmux send-keys
Subagent failedWorker retries or marks for review

Reference Files

FileContent
references/wave-execution.mdFull 9-step execution details
references/context-recovery.md/wipe handoff procedure

Execute this workflow NOW. Start with getting ready issues.