Agent skill
bd-beads-best-practices
Beads (bd) best practices and operating workflow for creating, updating, and executing issues with dependencies. Use when setting up bd in a repo, creating/updating bd issues or prompts/templates, running bd hygiene (doctor/upgrade/cleanup/compact/sync), or coordinating agent workflows with bd.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/bd-beads-best-practices
SKILL.md
Bd Beads Best Practices
Overview
Use this skill to run bd with consistent, dependency-aware workflows and keep databases healthy while coordinating agents.
Workflow Decision Tree
- If creating or updating issues, follow Issue Creation / Update and load
references/fields-and-commands.md. - If executing work, follow Task Execution Loop.
- If maintaining bd health or sync, follow Hygiene & Sync.
- If the repo has local rules (worktrees, special flags), follow
AGENTS.mdand repo docs first.
Issue Creation / Update
- Check repo rules (required flags like
--no-daemon,npx bd, or worktree usage). - Discover supported fields for this CLI version:
bd --helpbd create --helpbd update --helpbd close --help
- Build a quick per-session checklist of supported fields.
- Populate all applicable fields (type, priority, description, acceptance, design, estimate, external-ref, labels, assignee, deps, parent, waits-for/gates).
- Add dependencies explicitly (blocks, related, parent-child, discovered-from).
- Verify structure with
bd dep tree,bd ready, orbd list --pretty.
Task Execution Loop
- Run
bd readyand pick the highest-priority unblocked issue. - Claim it with
bd update <id> --status in_progress. - Read details with
bd show <id>and follow Files + QA Evidence sections. - Implement, test, and capture QA evidence.
- Close with
bd close <id> --reason "..."and record close notes. - Commit and push after all checks pass (if repo workflow requires it).
- Create follow-up issues for newly discovered work, including improvements to this skill or prompts/system guidance.
Hygiene & Sync
- Run
bd doctorregularly; use--fixwhen safe. - Keep the issue set small using
bd admin cleanuporbd admin compact. - Track version changes with
bd upgrade status/review/ack. - Use
bd syncorbd hooksfor git-based auto-sync unless the repo forbids it.
Doctor Warning Remediation (common)
- DB version behind CLI: run
bd migrate, then re-runbd doctor. - CLI behind latest: upgrade (
curl -fsSL https://raw.githubusercontent.com/steveyegge/beads/main/scripts/install.sh | bash), then re-runbd doctorandbd migrateif prompted. - DB ↔ JSONL count mismatch: run
bd doctor --fixorbd sync --import-only; re-runbd doctorto confirm. - Stale molecules: run
bd mol stale, review, thenbd close <id>for each complete-but-unclosed molecule. - Daemon version mismatch: run
bd daemon killall(orbd daemon restart) to align daemon with current CLI. - Version tracking stale: run
bd upgrade review, thenbd upgrade ack. - Git working tree dirty: commit or stash changes; follow repo rules (often
git pull --rebasethengit push). - Stale closed issues: run
bd doctor --fixorbd admin cleanup --force(use--dry-runfirst).
Worktree Guard (only if repo requires it)
- Start a task worktree (
./scripts/task-worktree.sh start <worker> <task-id>). - Verify before edits (
./scripts/task-worktree.sh verify <task-id>). - Check in-progress tasks to avoid file conflicts.
- Finish with
./scripts/task-worktree.sh finish <worker> <task-id>.
Guardrails
- Prefer repo-local instructions over this skill when they conflict.
- Avoid destructive operations without explicit need; use
--dry-runfirst. - Use
--jsonwhen required by repo automation or prompts.
References
- Load
references/fields-and-commands.mdfor command/field notes and current CLI flags.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?