AgentSkillsCN

beads

为会话间持久化的任务记忆启用Beads(BD)问题追踪功能。在工作跨越多个会话、存在复杂依赖关系,或需要在压缩过程中保持任务存活时使用。对于简单的单会话线性任务,则应改用TodoWrite。

SKILL.md
--- frontmatter
name: beads
description: Activate beads (bd) issue tracking for persistent task memory across sessions. Use when work spans multiple sessions, has complex dependencies, or needs to survive compaction. For simple single-session linear tasks, use TodoWrite instead.
allowed-tools: [Bash, Read]

Beads Issue Tracking

Git-backed issue tracker for persistent memory across sessions. JSONL is source of truth (committed to git), SQLite is local cache (gitignored).

Session Activation

At session start, check for ready work:

bash
bd ready --json

Report to user: number of ready items, top priorities, any blockers worth noting.

When to Use bd vs TodoWrite

Use bd whenUse TodoWrite when
Multi-session workSingle-session tasks
Complex dependenciesLinear step-by-step
Need to survive compactionImmediate context only
Resume after weeks awaySimple checklist

Rule of thumb: If resuming after 2 weeks would be hard without bd, use bd.

Quick Command Reference

bash
# Check work
bd ready                    # What's unblocked
bd blocked                  # What's stuck
bd show bd-a1b2             # Full issue details

# Create (write for handoff - future Claude has no conversation context!)
bd create "Specific actionable title" -d "Full context: what, why, where" -p 2
bd q "Quick capture"        # Returns only ID

# Update as you work
bd update bd-a1b2 --status in_progress
bd update bd-a1b2 --notes "DONE: X. NEXT: Y. BLOCKER: Z"
bd update bd-a1b2 --design "Decided approach A because..."

# Close when done
bd close bd-a1b2 --reason "Completed: summary of what was done"

# Sync (usually automatic via daemon)
bd sync                     # Full cycle: export→commit→pull→push

IDs use hash format like bd-a1b2, not sequential numbers.

Write for Handoff

Every bead must be understandable by a future Claude with:

  • No access to this conversation
  • Only the bead's title, description, notes, design fields
  • General codebase knowledge from exploration

Anti-patterns:

  • "As discussed above..." (no "above" after compaction)
  • Vague titles only making sense in context
  • Assuming file paths or function names are remembered
  • in_progress status without notes on current state

Session End Checklist

Before ending or if context is long:

  • All in_progress items have current notes
  • Discovered work captured as new issues
  • Blockers documented in issue notes
  • Run bd sync if daemon not running

Reference Files

TopicFile
bd vs TodoWrite decision criteriareferences/BOUNDARIES.md
Complete CLI with all flagsreferences/CLI_REFERENCE.md
Dependency types and patternsreferences/DEPENDENCIES.md
Workflow walkthroughsreferences/WORKFLOWS.md