| name | beads |
| description | Git-backed issue tracker for multi-session work with dependencies and persistent memory across conversation compaction. Use when work spans sessions, has blockers, or needs context recovery after compaction. |
bd (beads) Expert
bd is a git-backed issue tracker with first-class dependency support, designed
for AI agents and multi-session workflows. It uses Dolt for version-controlled
storage with automatic sync.
When to Use This Skill
Invoke this skill when:
- Creating, updating, or closing issues (
bd create, bd update, bd close)
- Working with issue dependencies (
bd dep, bd blocked, bd graph)
- Finding ready work (
bd ready)
- Managing multi-session workflows with context recovery
- Working with
.beads/ config or Dolt database
- Using
bd mol, bd formula, or bd prime commands
Core Workflow
bd ready
bd create "Fix login bug" --description="Details" --type bug --priority 1
bd update bd-abc --claim
bd close bd-abc --reason "Fixed"
Issue Types
| Type | Purpose |
|---|
bug | Something broken |
feature | New functionality |
task | Work item (tests, docs, refactoring) |
epic | Large feature with subtasks |
chore | Maintenance (dependencies, tooling) |
message | Agent mail (internal) |
Priorities
| Level | Meaning |
|---|
0 | Critical (security, data loss, broken builds) |
1 | High (major features, important bugs) |
2 | Medium (default) |
3 | Low (polish, optimization) |
4 | Backlog (future ideas) |
Valid Statuses
open, in_progress, blocked, deferred, closed, pinned, hooked
There is NO done or complete status.
Creating Issues
bd create "Issue title"
bd create "Issue title" \
--description="Detailed context" \
--type task \
--priority 2 \
--assignee "alice" \
--json
bd create "Found bug" \
--description="Details" \
--priority 1 \
--deps discovered-from:bd-123 \
--json
bd q "Quick note title"
Updating Issues
bd update bd-42 --claim
bd update bd-42 --priority 1
bd update bd-42 --status blocked
bd update bd-42 --notes "Found root cause: ..."
bd update bd-42 --design "Architecture: ..."
bd update bd-42 --claim --priority 1 --notes "Starting now"
Closing Issues
bd close bd-42 --reason "Completed implementation"
bd close bd-42 bd-43 --reason "Done"
bd close bd-xyz --reason="no-changes: already implemented"
Finding Work
bd ready
bd list --status open
bd blocked
bd search "login bug"
bd list --label "priority-1"
bd list
Dependencies
CRITICAL: Direction matters. Think "X needs Y" not "X comes before Y".
bd dep add A B
bd dep remove A B
bd dep tree bd-42
bd graph
bd blocked
Showing Issues
bd show bd-42
bd show bd-42 --json
bd children bd-epic-1
bd history bd-42
Labels
bd label add bd-42 "needs-review"
bd label rm bd-42 "needs-review"
Desire Paths
When a command fails but your intuition felt right, file a desire-path bead:
bd create "Add alias for common workflow" --type task \
--label desire-path \
--description "Expected 'bd X' to work but it doesn't. Context: ..."
Molecule/Formula Workflow
Molecules are workflow templates (formulas) attached to a bead:
bd mol current
bd formula list
bd formula show shiny
bd formula run shiny --var key=value
Sync & Persistence
bd dolt push
bd dolt pull
bd vc status
Context Recovery (After Compaction)
bd prime
bd list --status in_progress
bd restore bd-42
Output Formats
bd show bd-42 --json
bd ready --json
bd list --json
bd -q close bd-42
Routing
Prefix-based routing automatically directs commands to the right rig:
bd show ge-abc
bd show hq-abc
bd show -xyz
Debug routing: BD_DEBUG_ROUTING=1 bd show <id>
Configuration
bd context
bd info
bd doctor
bd where
Common Patterns
Agent Workflow
bd ready --json
bd update bd-42 --claim
bd update bd-42 --notes "Root cause: X. Fix: Y."
bd create "Found related bug" \
--priority 1 \
--deps discovered-from:bd-42
bd close bd-42 --reason "Implemented fix, tests pass"
Epic with Subtasks
bd create "Big feature" --type epic
bd create "Subtask 1" --type task --deps discovered-from:bd-epic
bd create "Subtask 2" --type task --deps discovered-from:bd-epic
bd dep add bd-epic bd-sub1
bd dep add bd-epic bd-sub2
Quick Reference
| Command | Purpose |
|---|
bd ready | Show unblocked work |
bd create "title" | Create issue |
bd update <id> --claim | Claim issue atomically |
bd show <id> | Show issue details |
bd close <id> | Close issue |
bd dep add A B | A depends on B (A needs B) |
bd blocked | Show blocked issues |
bd graph | Visualize dependencies |
bd prime | Get workflow context |
bd dolt push | Sync to remote |
bd search "text" | Search issues |
bd history <id> | Show issue history |
bd mol current | Current molecule step |
bd formula list | List formulas |