getspur/spurcode/beads-lifecycle

Claude Code and agent skill by getspur/spurcode

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when creating, updating, or transitioning beads issues — enforces the status state machine, label semantics, and transition rules that keep brain-worker collaboration consistent.

Install

npx vskill@latest install getspur/spurcode/beads-lifecycle

SKILL.md

The same SKILL.md was published earlier as getspur/spurcode/beads-lifecycle.

beads Lifecycle

Overview

beads issues have a status state machine and a rich label vocabulary. Misusing either creates confusion: a worker sees open and starts work that another worker already began; a brain sees no signal:* labels and misses a scope drift.

Core principle: Status and labels are communication. Use them precisely.

Status State Machine

dot
digraph status_fsm {
rankdir=LR;
open [shape=box];
in_progress [shape=box];
blocked [shape=box];
closed [shape=box];
deferred [shape=box];
draft [shape=box];
open -> in_progress [label="dispatch"];
open -> deferred [label="postpone"];
open -> closed [label="wontfix"];
in_progress -> blocked [label="blocked"];
in_progress -> open [label="reject/retry"];
in_progress -> closed [label="approve"];
blocked -> in_progress [label="unblock"];
blocked -> open [label="give up"];
deferred -> open [label="resume"];
draft -> open [label="ready"];
}
Status Semantics
StatusMeaningWho sets it
draftPlan task not yet ready for dispatchBrain or plan engine
openAvailable for delegation, no worker activeDefault / brain revert
in_progressWorker dispatched, worktree existsOrchestrator on delegation start
blockedWaiting on dependency or signal resolutionWorker (via signal) or brain
deferredIntentionally postponed, not abandonedBrain
closedWork complete and brain approvedBrain via review_task or explicit close

Critical rule: Only the brain (or orchestrator acting on brain authority) transitions to closed. Workers MUST NOT close their own issues.

Label Vocabulary

All labels use [A-Za-z0-9_:-]+. Max 50 chars at create time.

Plan Scope Labels
LabelPurposeSet by
spur:plan-id:<id>Plan ID scopebrain at submit
spur:plan-task-id:<id>Task ID scopebrain at submit
spur:plan-completeEpic fully persistedserver on epic creation
Delegation Labels
LabelPurposeSet by
spur:agent:<name>Worker agent namebrain at submit
spur:source-issue:<id>Source issue referenceserver at submit
delegation-id:<id>ACP delegationreconciler on dispatch
Signal Labels
LabelPurposeSet by
signal:<kind>Signal presentworker via MCP tool
signal:<kind>:<bucket>Signal severity bucketworker via MCP tool
signal:late-arrivalSignal after terminalbrain signal handler
Mutation Labels
LabelPurposeSet by
spur:mutation-id:<compact-uuid>Mutation batch childrenbrain mutation executor
spur:superseded-by:<child-id>Parent task split markerbrain mutation executor
spur:signal-processed:<compact-uuid>Signal consumed markerbrain mutation executor
Review Labels
LabelPurposeSet by
ready-for-reviewExplicit review-readyreconciler on completion (not yet wired)

Transition Rules

Orchestrator Auto-Transitions

The orchestrator performs these transitions automatically. Errors are logged at warn and never block delegation.

EventTransitionOn failure
Delegation startsopen → in_progress + assignee: <worker>Warn, continue
Delegation succeeds + approvedcomment: "Completed by delegation {id}"Warn, continue
Delegation rejectedin_progress → open + comment: "Rejected"Warn, continue
Delegation failedin_progress → open + comment: "Failed: {error}"Warn, continue
Delegation cancelledin_progress → open + comment: "Cancelled"Warn, continue

Brain responsibility: The orchestrator does NOT auto-close. The brain MUST explicitly call update_issue(status: "closed") when satisfied.

Worker-Initiated Transitions

Workers SHOULD NOT directly change status except via signal emission. The orchestrator translates signals into transitions:

  • signal:blocked → orchestrator MAY set blocked (if brain hasn't responded)
  • signal:scope_drift → no auto-transition; brain decides
Brain-Initiated Transitions
Brain actionRequired transitionRequired label/comment
Approve taskNone (orchestrator already commented)Ensure spur-audit approval exists
Reject taskin_progress → openspur-audit rejection comment with feedback
Close completed epicopen/in_progress → closedExplicit close comment
Split taskAdd spur:superseded-by:<child> to parentCreate child issues with spur:plan-task-id

Common Mistakes

MistakeFix
Worker closes own issueRevert. Only brain closes.
in_progress set before worktree existsRace condition. Orchestrator sets this on dispatch.
signal:* label without spur-signal commentLabel alone is not enough. Comment carries structured data.
spur-audit comment without matching statusAudit says "Completed" but status is open. Fix status.
Multiple spur:plan-id labels on one issueOne plan per issue. Split if multi-plan.

Quick Reference

Creating issue: status = open, labels = [spur:plan-id:X, spur:agent:Y]
Dispatching: status = in_progress, assignee = worker_name
Blocked: emit signal:blocked, orchestrator may set blocked
Completed: orchestrator adds spur-audit completion comment
Approved: brain reviews, no status change (brain closes later)
Rejected: status = open, add spur-audit rejection comment
Closed: status = closed, brain adds close comment

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/getspur/spurcode/beads-lifecycle/badge)](https://verified-skill.com/skills/getspur/spurcode/beads-lifecycle)

Something wrong with this skill or its page? Tell us.