/ensemble-development:complete-beadsfrom ensemble-development
Drives work items (beads) to completion using triage, parallel workers, serial integration, and rollup. Recovers in-progress work and produces machine-readable result sentinel.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /ensemble-development:complete-beads still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Goal-oriented skill that drives every scoped bead to closed or a truthful terminal state. Recovers in-progress work, selects tasks via BV triage/planning, dispatches isolated workers in parallel, integrates serially, and rolls up completed containers. Produces one machine-readable result sentinel.
Replaces the duplicated execution engines in implement-trd-beads and beads-build.
| Variable | Type | Description |
|---|---|---|
SCOPE | string | Project-wide ("") or a root epic bead ID/slug to scope all operations |
TRD_PATH | string | Optional absolute or repo-relative path to a TRD .md file |
TRACEABILITY_MAP | object | Optional map of taskId → {is_test_task, satisfies_req_id, verifies_task_id, ...} |
STRATEGY | string | Implementation strategy: tdd, characterization, bug-fix, refactor, test-after, flexible |
BRANCH | string | Integration branch name (supervisor checkout) |
WORKER_SLOTS | number | Max parallel workers (>= 1; caller resolves from team config or explicit max parallel N) |
PR_ACTIONS | object[] | Ordered PR actions from trd-cli pr-plan (each: {kind, createPr, proposeTitle, branch, parentBranch, appendNextBranch, ...}) |
RESUME_METADATA | object | Optional resume state reconstructed from Beads comments ({beadId, childBranch, childWorktree, runId, dispatchBaseSha}) |
TEAM_MODE is NOT accepted. Slot resolution happens in the calling command before invoking this skill.
LOOP:
1. br sync --flush-only
2. RecoverResume(RESUME_METADATA) → recovered[], redispatched[]
3. If recovered or redispatched: re-evaluate → may close or skip beads
4. br sync --flush-only
5. RunPlanner() → selected[], deferred[]
6. If selected is empty:
If deferred.length > 0 → RETURN {status: blocked, reason: deferred[0].deferReason, ...}
If scoped open beads remain but br ready is empty → RETURN {status:blocked, ...}
Else → all scoped descendants closed → rollup → RETURN {status:complete, ...}
7. DispatchBatch(selected) → results[]
8. ProcessResults(results) → may set status=complete|failed
9. Loop
Reopens scoped in_progress beads from prior runs:
br list --status=in_progress --json, filter by SCOPErunId: / baseSha: / worktree:):
Bead-ID: trailer reachable from integration branch: skip cherry-pick, finish closure/auditin_review, in_qa, plain in_progress): reopen and run once through common isolated lifecycle from current HEAD; preserve already-committed repository changes1. br sync --flush-only
2. bv --robot-triage --format json → retain blocker/priority diagnostics
3. br ready --json (scoped) → scoped open eligible beads
br list --status=in_progress --json (scoped)
4. If ready work exists:
bv --robot-plan --format json → .plan.tracks[].items[]
complete-beads-cli {triage, plan, ready, scope, slots, phaseTaskIds}
Planner output schema:
{
"selected": [{ "id": "beads-042", "track": 0, "deferReason": null }],
"deferred": [{ "id": "beads-043", "track": 0, "deferReason": "file-claim-conflict:src/api.ts" }],
"dispatchOrder": ["beads-042", "beads-043"],
"trackPositions": { "beads-042": { "track": 0, "position": 0 } }
}
For each selected bead, serially:
runId, baseSha, plannedBranch, worktreePath)br sync --flush-only.beads/beads.jsonl as dispatch-journal commit (integration checkout clean)From dispatch-journal SHA:
ensemble/complete-beads/<runId>/<beadId>${TMPDIR}/ensemble-complete-beads/<runId>/<beadId>In planner's dispatchOrder:
git cherry-pick that commit onto integration branchbr sync --flush-only, stage metadata, amend only the just-integrated commitCOMPLETE_BEADS_RESULT
status=<complete|blocked|failed>
closed=<bead-id-1,bead-id-2>
blocked=<bead-id-N> # scoped open, br ready empty
failed=<bead-id-M> # exhausted recovery, persistent conflict
branch=<integration-branch>
prs=<https://github.com/.../pull/N>
preserved_worktrees=</tmp/ensemble-complete-beads/run-id/bead-id>
complete: every scoped descendant is closedblocked: scoped open descendants remain but br ready is empty, OR all eligible candidates are deferred (phase-gate, file-claim-conflict, slot-cap, unparseable-task-id — the bead title is missing its [trd::task:] marker)failed: at least one dispatched bead could not be implemented/integrated after bounded recovery; unrelated successful results are still integrated firstPR_ACTIONS contains phase-gate actions): for each phase-gate action, restrict dispatch to that phase, drain it, run full phase/pre-PR quality gate, call git town propose using action's proposeTitle/parentBranch, then git town append <appendNextBranch> before planning next phasegit town propose only for the completion actionPR_ACTIONS): complete scope, create no PR or branch stackAny propose/append failure returns failed with current branch and already-created PR URLs — must not mark later phase beads complete or create later stack branches.
br update, br comment, br close, br sync; stage .beads/; edit TRD checkboxes; touch the supervisor checkoutBead-ID: <id> trailerWORKER_COMPLETE with bead ID, status, child branch, child worktree, worker commit SHA, changed files, test result, validation result.plan.tracks when ready work exists → fail closed--pr-format with an unusable phase map (no task ids under any numeric phase) → fail closed: the map failed to load and phase-strict gating cannot be enforced without itpropose/append failure → return failed with existing PR URLsWhat SKILL.md sets; muted values are Claude Code's defaults
None: SKILL.md is the whole skill.
npx claudepluginhub fortiumpartners/ensemble --plugin ensemble-development11 skills in this plugin
/developing-with-flutterFlutter SDK for cross-platform development targeting iOS, Android, and Web. Use for widget architecture, state management, platform channels, and multi-platform deployment./developing-with-laravelLaravel framework patterns for PHP applications including Eloquent ORM, migrations, routing, queues, and Blade templates. Use when building Laravel applications or working with Laravel projects./developing-with-phpModern PHP 8.x development with type system, attributes, enums, error handling, and Composer. Use when writing PHP code or working with PHP projects./developing-with-pythonPython 3.11+ development with type hints, async patterns, FastAPI, and pytest. Use for backend services, CLI tools, data processing, and API development./developing-with-reactReact 18+ development with hooks, state management, component patterns, and Next.js integration. Use when building React applications or working with JSX/TSX components./developing-with-typescriptTypeScript 5.x development with type system, generics, utility types, and strict mode patterns. Use when writing TypeScript code or adding types to JavaScript projects.Other plugins' skills for the same job