Beads Skill
Expert guidance for using Beads (bd) to track tasks, dependencies, and workflows in a git-backed issue graph.
When to trigger
- The user mentions Beads,
bd, or wants dependency-aware task tracking for agents. - The task involves Beads CLI operations (init, ready, sync), formulas/molecules, or agent hooks.
Core rules
- Prefer CLI + hooks (
bd --no-daemon setup <recipe>) when shell access exists; use MCP only when CLI is unavailable. - For all non-daemon agent commands, use direct mode:
bd --no-daemon <command> .... - Never emit bare
bd <command>for non-daemon operations. - Use
--jsonfor machine parsing where supported:bd --no-daemon --json <command> .... - Use
bd --no-daemon ready(orbd --no-daemon list --ready) to select unblocked work; add dependencies withbd --no-daemon dep addbefore starting. - Run
bd --no-daemon syncto export DB state to JSONL; it does not commit/push by default. - Use
bd daemon ...(with--auto-commit/--auto-push) orbd --no-daemon sync --fullonly when background automation is explicitly needed. - Default backend is SQLite; use
bd --no-daemon init --backend doltfor Dolt-backed storage.
Workflow
- Initialize: verify with
bd --no-daemon status; if needed, runbd --no-daemon init(choose backend and branch). See references/cli-reference.md. - Integrate: install hooks with
bd --no-daemon setup <recipe>or configure manually. See references/integrations.md. - Manage issues: create, update status, close with reason; maintain dependencies; use
bd --no-daemon list,bd --no-daemon ready,bd --no-daemon blocked,bd --no-daemon stats. - Sync + context:
bd --no-daemon primeon session start;bd --no-daemon syncafter issue changes andbd --no-daemon sync --importafter pull; usebd --no-daemon sync --statusto verify state. - Advanced workflows: formulas, molecules, gates (
bd --no-daemon formula,bd --no-daemon mol,bd --no-daemon gate). See references/workflows.md. - Recovery: use
bd --no-daemon status,bd daemon status, andbd --no-daemon doctorwhen sync or database issues appear. See references/recovery.md.
Output expectations
- Provide exact commands with flags and IDs; default to
bd --no-daemon ...and use--jsonwhere supported. - If daemon timeout warnings appear, rerun the same command in direct mode with
--no-daemon. - Ask for backend, repo location, and desired workflow if ambiguous.
- Call out whether a command affects git-tracked JSONL vs local DB.
References
- CLI commands and options: references/cli-reference.md
- Core concepts and storage: references/concepts.md
- Workflows: formulas, molecules, gates: references/workflows.md
- Editor/agent integrations + MCP: references/integrations.md
- Recovery and troubleshooting: references/recovery.md