EX
execute-bead-worker
Execute one assigned bead inside a swarm coordinated by swarm-epic. Use only when a coordinator has assigned the bead, file scope, and verification contract; the worker implements, verifies, and reports without mutating bead state.
Install
mkdir -p .claude/skills/execute-bead-worker && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14811" && unzip -o skill.zip -d .claude/skills/execute-bead-worker && rm skill.zipInstalls to .claude/skills/execute-bead-worker
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Execute one assigned bead inside a swarm coordinated by swarm-epic. Use only when a coordinator has assigned the bead, file scope, and verification contract; the worker implements, verifies, and reports without mutating bead state.231 chars✓ has a “when” trigger
About this skill
Execute Bead Worker
Implement one assigned bead inside a swarm run.
Goal
Deliver one bead safely inside the boundaries set by swarm-epic.
Steps
- Confirm the assignment from the coordinator:
- epic id
- bead id
Files:scopeVerify:commands or checks- reservation or conflict instructions
- Read the bead details and inspect the relevant code.
- If the bead is underspecified or missing
FilesorVerify, stop and return it to the coordinator instead of guessing. - Register the worker and inspect its inbox:
- Windows:
.\scripts\windows\agent-mail.ps1 --repo . register --name worker/<bead-id> --role worker --epic-id <epic-id> --bead-id <bead-id> .\scripts\windows\agent-mail.ps1 --repo . inbox --recipient worker/<bead-id> - POSIX:
./scripts/posix/agent-mail.sh --repo . register --name worker/<bead-id> --role worker --epic-id <epic-id> --bead-id <bead-id> ./scripts/posix/agent-mail.sh --repo . inbox --recipient worker/<bead-id>
- Windows:
- Reserve the declared file scope before editing through the shared control plane:
- Windows:
.\scripts\windows\agent-mail.ps1 --repo . reserve --owner worker/<bead-id> --epic-id <epic-id> --bead-id <bead-id> --path <path1> --path <path2> - POSIX:
./scripts/posix/agent-mail.sh --repo . reserve --owner worker/<bead-id> --epic-id <epic-id> --bead-id <bead-id> --path <path1> --path <path2>
- Windows:
- Update
.beads/workflow/HANDOFF.jsonfor this worker context:roleepic_idbead_idsummarynext_action
- Post a
startedmessage tobead/<bead-id>so the coordinator and other sessions can see who owns the bead.- Windows:
.\scripts\windows\agent-mail.ps1 --repo . post --thread bead/<bead-id> --sender worker/<bead-id> --type started --body '{"status":"started"}' --epic-id <epic-id> --bead-id <bead-id> - POSIX:
./scripts/posix/agent-mail.sh --repo . post --thread bead/<bead-id> --sender worker/<bead-id> --type started --body '{"status":"started"}' --epic-id <epic-id> --bead-id <bead-id>
- Windows:
- Implement only within the assigned scope.
- Run the assigned verification commands and any required repo-local
build-and-testchecks for the touched surface area. - Report back to the coordinator with:
- changed files
- verification commands run
- key output or exit status
- any new risks or follow-up work
- confirmation that reservations were released
- Release reservations and post either a
completedorblockedmessage tobead/<bead-id>.
- release syntax:
- Windows:
.\scripts\windows\agent-mail.ps1 --repo . release-reservations --owner worker/<bead-id> --bead-id <bead-id> - POSIX:
./scripts/posix/agent-mail.sh --repo . release-reservations --owner worker/<bead-id> --bead-id <bead-id>
- Windows:
- If blocked or context-limited:
- update
HANDOFF.json - release reservations if possible
- report the blocker clearly to the coordinator
Hard Rules
- Do not run
bd update,bd close, or any other bead status mutation. - Do not expand the file scope without coordinator approval.
- Do not silently skip verification.
- Do not keep reservations after you stop working.
- Do not assume another session can see local
.beads/workflow/; shared coordination only happens through Agent Mail.