* Update skill installation path and document new features Installation path changes: - Update from ~/.claude/skills/bd to bd-issue-tracking - Matches internal skill name for consistency with other skills Documentation additions: - Add 3 new reference files to documentation list - Document compaction survival patterns (critical for Claude Code) - Mention self-check checklists and quality guidelines This prepares the README for upcoming skill content improvements. * Add new reference files for enhanced skill guidance New reference documentation: 1. ISSUE_CREATION.md - When to ask vs create issues - Decision criteria for knowledge work vs technical work - Issue quality guidelines and best practices - Design vs acceptance criteria guidance - Self-check questions for well-scoped issues 2. RESUMABILITY.md - Making issues resumable across sessions - Patterns for complex technical work with APIs - Working code examples and API response samples - When enhanced documentation matters vs simple descriptions - Critical for multi-session work and crash recovery 3. STATIC_DATA.md - Using bd for reference databases - Alternative use case beyond work tracking - Glossaries and terminology management - Dual format patterns (database + markdown) - When bd helps vs when simpler formats suffice These additions emerged from real-world usage patterns and enable Claude to make better decisions about issue structure and resumability. * Enhance existing skill files with real-world usage patterns SKILL.md major enhancements (~194 net lines added): - Add "Test Yourself" decision framework with self-check questions - Document compaction survival patterns (critical for Claude Code) - Add Notes Quality Self-Check (future-me test, stranger test) - Session Start Checklist with copy-paste templates - Field Usage Reference table (when to use each bd field) - Progress Checkpointing triggers and patterns - Issue Creation Checklist with quality self-checks - Enhanced session handoff protocols WORKFLOWS.md enhancements (~114 lines added): - Session handoff workflow with detailed checklists - Collaborative handoff between Claude and user - Compaction survival workflow - Notes format guidelines (current state, not cumulative) - Session start checklist expansion BOUNDARIES.md updates (~49 lines removed): - Streamlined content (moved detailed workflows to WORKFLOWS.md) - Retained core decision criteria - Improved examples and integration patterns CLI_REFERENCE.md minor updates: - Additional command examples - Clarified flag usage These improvements emerged from extensive real-world usage, particularly around crash recovery, compaction events, and multi-session workflows. The additions make the skill more practical for autonomous agent use.
17 KiB
Workflows and Checklists
Detailed step-by-step workflows for common bd usage patterns with checklists.
Contents
- Session Start Workflow - Check bd ready, establish context
- Compaction Survival - Recovering after compaction events
- Discovery and Issue Creation - Proactive issue creation during work
- Status Maintenance - Keeping bd status current
- Epic Planning - Structuring complex work with dependencies
- Side Quest Handling - Discovery during main task, assessing blocker vs deferrable, resuming
- Multi-Session Resume - Returning after days/weeks away
- Session Handoff Workflow - Collaborative handoff between sessions
- Unblocking Work - Handling blocked issues
- Integration with TodoWrite - Using both tools together
- Common Workflow Patterns
- Systematic Exploration, Bug Investigation, Refactoring with Dependencies, Spike Investigation
- Checklist Templates
- Starting Any Work Session, Creating Issues During Work, Completing Work, Planning Complex Features
- Decision Points
- Troubleshooting Workflows
Session Start Workflow
bd is available when:
- Project has
.beads/directory (project-local), OR ~/.beads/exists (global fallback for any directory)
Automatic checklist at session start:
Session Start (when bd is available):
- [ ] Run bd ready --json
- [ ] Report: "X items ready to work on: [summary]"
- [ ] If using global ~/.beads, note this in report
- [ ] If none ready, check bd blocked --json
- [ ] Suggest next action based on findings
Pattern: Always run bd ready when starting work where bd is available. Report status immediately to establish shared context.
Database selection: bd auto-discovers which database to use (project-local .beads/ takes precedence over global ~/.beads/).
Compaction Survival
Critical: After compaction events, conversation history is deleted but bd state persists. Beads are your only memory.
Post-compaction recovery checklist:
After Compaction:
- [ ] Run bd list --status in_progress to see active work
- [ ] Run bd show <issue-id> for each in_progress issue
- [ ] Read notes field to understand: COMPLETED, IN PROGRESS, BLOCKERS, KEY DECISIONS
- [ ] Check dependencies: bd dep tree <issue-id> for context
- [ ] If notes insufficient, check bd list --status open for related issues
- [ ] Reconstruct TodoWrite list from notes if needed
Pattern: Well-written notes enable full context recovery even with zero conversation history.
Writing notes for compaction survival:
Good note (enables recovery):
bd update issue-42 --notes "COMPLETED: User authentication - added JWT token
generation with 1hr expiry, implemented refresh token endpoint using rotating
tokens pattern. IN PROGRESS: Password reset flow. Email service integration
working. NEXT: Need to add rate limiting to reset endpoint (currently unlimited
requests). KEY DECISION: Using bcrypt with 12 rounds after reviewing OWASP
recommendations, tech lead concerned about response time but benchmarks show <100ms."
Bad note (insufficient for recovery):
bd update issue-42 --notes "Working on auth feature. Made some progress.
More to do later."
The good note contains:
- Specific accomplishments (what was implemented/configured)
- Current state (which part is working, what's in progress)
- Next concrete step (not just "continue")
- Key context (team concerns, technical decisions with rationale)
After compaction: bd show issue-42 reconstructs the full context needed to continue work.
Discovery and Issue Creation
When encountering new work during implementation:
Discovery Workflow:
- [ ] Notice bug, improvement, or follow-up work
- [ ] Assess: Can defer or is blocker?
- [ ] Create issue with bd create "Issue title"
- [ ] Add discovered-from dependency: bd dep add current-id new-id --type discovered-from
- [ ] If blocker: pause and switch; if not: continue current work
- [ ] Issue persists for future sessions
Pattern: Proactively file issues as you discover work. Context captured immediately instead of lost when session ends.
When to ask first:
- Knowledge work with fuzzy scope
- User intent unclear
- Multiple valid approaches
When to create directly:
- Clear bug found
- Obvious follow-up work
- Technical debt with clear scope
Status Maintenance
Throughout work on an issue:
Issue Lifecycle:
- [ ] Start: Update status to in_progress
- [ ] During: Add design notes as decisions made
- [ ] During: Update acceptance criteria if requirements clarify
- [ ] During: Add dependencies if blockers discovered
- [ ] Complete: Close with summary of what was done
- [ ] After: Check bd ready to see what unblocked
Pattern: Keep bd status current so project state is always accurate.
Status transitions:
open→in_progresswhen starting workin_progress→blockedif blocker discoveredblocked→in_progresswhen unblockedin_progress→closedwhen complete
Epic Planning
For complex multi-step features:
Epic Planning Workflow:
- [ ] Create epic issue for high-level goal
- [ ] Break down into child task issues
- [ ] Create each child task
- [ ] Add parent-child dependencies from epic to each child
- [ ] Add blocks dependencies between children if needed
- [ ] Use bd ready to work through tasks in dependency order
Example: OAuth Integration Epic
1. Create epic:
bd create "Implement OAuth integration" -t epic -d "OAuth with Google and GitHub"
design: "Support Google and GitHub providers"
2. Create child tasks:
bd create "Set up OAuth client credentials" -t task
bd create "Implement authorization code flow" -t task
bd create "Add token storage and refresh" -t task
bd create "Create login/logout endpoints" -t task
3. Link children to parent:
bd dep add oauth-epic oauth-setup --type parent-child
bd dep add oauth-epic oauth-flow --type parent-child
bd dep add oauth-epic oauth-storage --type parent-child
bd dep add oauth-epic oauth-endpoints --type parent-child
4. Add blocks between children:
bd dep add oauth-setup oauth-flow
# Setup blocks flow implementation
Side Quest Handling
When discovering work that pauses main task:
Side Quest Workflow:
- [ ] During main work, discover problem or opportunity
- [ ] Create issue for side quest
- [ ] Add discovered-from dependency linking to main work
- [ ] Assess: blocker or can defer?
- [ ] If blocker: mark main work blocked, switch to side quest
- [ ] If deferrable: note in issue, continue main work
- [ ] Update statuses to reflect current focus
Example: During feature implementation, discover architectural issue
Main task: Adding user profiles
Discovery: Notice auth system should use role-based access
Actions:
1. Create issue: "Implement role-based access control"
2. Link: discovered-from "user-profiles-feature"
3. Assess: Blocker for profiles feature
4. Mark profiles as blocked
5. Switch to RBAC implementation
6. Complete RBAC, unblocks profiles
7. Resume profiles work
Multi-Session Resume
Starting work after days/weeks away:
Resume Workflow:
- [ ] Run bd ready to see available work
- [ ] Run bd stats for project overview
- [ ] List recent closed issues for context
- [ ] Show details on issue to work on
- [ ] Review design notes and acceptance criteria
- [ ] Update status to in_progress
- [ ] Begin work with full context
Why this works: bd preserves design decisions, acceptance criteria, and dependency context. No scrolling conversation history or reconstructing from markdown.
Session Handoff Workflow
Collaborative handoff between sessions using notes field:
This workflow enables smooth work resumption by updating beads notes when stopping, then reading them when resuming. Works in conjunction with compaction survival - creates continuity even after conversation history is deleted.
At Session Start (Claude's responsibility)
Session Start with in_progress issues:
- [ ] Run bd list --status in_progress
- [ ] For each in_progress issue: bd show <issue-id>
- [ ] Read notes field to understand: COMPLETED, IN PROGRESS, NEXT
- [ ] Report to user with context from notes field
- [ ] Example: "workspace-mcp-server-2 is in_progress. Last session:
completed tidying. No code written yet. Next step: create
markdown_to_docs.py. Should I continue with that?"
- [ ] Wait for user confirmation or direction
Pattern: Notes field is the "read me first" guide for resuming work.
At Session End (Claude prompts user)
When wrapping up work on an issue:
Session End Handoff:
- [ ] Notice work reaching a stopping point
- [ ] Prompt user: "We just completed X and started Y on <issue-id>.
Should I update the beads notes for next session?"
- [ ] If yes, suggest command:
bd update <issue-id> --notes "COMPLETED: X. IN PROGRESS: Y. NEXT: Z"
- [ ] User reviews and confirms
- [ ] Claude executes the update
- [ ] Notes saved for next session's resumption
Pattern: Update notes at logical stopping points, not after every keystroke.
Notes Format (Current State, Not Cumulative)
Good handoff note (current state):
COMPLETED: Parsed markdown into structured format
IN PROGRESS: Implementing Docs API insertion
NEXT: Debug batchUpdate call - getting 400 error on formatting
BLOCKER: None
KEY DECISION: Using two-phase approach (insert text, then apply formatting) based on reference implementation
Bad handoff note (not useful):
Updated some stuff. Will continue later.
Rules for handoff notes:
- Current state only (overwrite previous notes, not append)
- Specific accomplishments (not vague progress)
- Concrete next step (not "continue working")
- Optional: Blockers, key decisions, references
- Written for someone with zero conversation context
Session Handoff Checklist
For Claude at session end:
Session End Checklist:
- [ ] Work reaching logical stopping point
- [ ] Prompt user about updating notes
- [ ] If approved:
- [ ] Craft note with COMPLETED/IN_PROGRESS/NEXT
- [ ] Include blocker if stuck
- [ ] Include key decisions if relevant
- [ ] Suggest bd update command
- [ ] Execute approved update
- [ ] Confirm: "Saved handoff notes for next session"
For user (optional, but helpful):
User Tips:
- [ ] When stopping work: Let Claude suggest notes update
- [ ] When resuming: Let Claude read notes and report context
- [ ] Avoid: Trying to remember context manually (that's what notes are for!)
- [ ] Trust: Well-written notes will help next session pick up instantly
Example: Real Session Handoff
Scenario: Implementing markdown→Docs feature (workspace-mcp-server-2)
At End of Session 1:
bd update workspace-mcp-server-2 --notes "COMPLETED: Set up skeleton with Docs
API connection verified. Markdown parsing logic 80% done (handles *, _ modifiers).
IN PROGRESS: Testing edge cases for nested formatting. NEXT: Implement
batchUpdate call structure for text insertion. REFERENCE: Reference pattern at
docs/markdown-to-docs-reference.md. No blockers, moving well."
At Start of Session 2:
bd show workspace-mcp-server-2
# Output includes notes field showing exactly where we left off
# Claude reports: "Markdown→Docs feature is 80% parsed. We were testing
# edge cases and need to implement batchUpdate next. Want to continue?"
Session resumes instantly with full context, no history scrolling needed.
Unblocking Work
When ready list is empty:
Unblocking Workflow:
- [ ] Run bd blocked --json to see what's stuck
- [ ] Show details on blocked issues: bd show issue-id
- [ ] Identify blocker issues
- [ ] Choose: work on blocker, or reassess dependency
- [ ] If reassess: remove incorrect dependency
- [ ] If work on blocker: close blocker, check ready again
- [ ] Blocked issues automatically become ready when blockers close
Pattern: bd automatically maintains ready state based on dependencies. Closing a blocker makes blocked work ready.
Example:
Situation: bd ready shows nothing
Actions:
1. bd blocked shows: "api-endpoint blocked by db-schema"
2. Show db-schema: "Create user table schema"
3. Work on db-schema issue
4. Close db-schema when done
5. bd ready now shows: "api-endpoint" (automatically unblocked)
Integration with TodoWrite
Using both tools in one session:
Hybrid Workflow:
- [ ] Check bd for high-level context
- [ ] Choose bd issue to work on
- [ ] Mark bd issue in_progress
- [ ] Create TodoWrite from acceptance criteria for execution
- [ ] Work through TodoWrite items
- [ ] Update bd design notes as you learn
- [ ] When TodoWrite complete, close bd issue
Why hybrid: bd provides persistent structure, TodoWrite provides visible progress.
Common Workflow Patterns
Pattern: Systematic Exploration
Research or investigation work:
1. Create research issue with question to answer
2. Update design field with findings as you go
3. Create new issues for discoveries
4. Link discoveries with discovered-from
5. Close research issue with conclusion
Pattern: Bug Investigation
1. Create bug issue
2. Reproduce: note steps in description
3. Investigate: track hypotheses in design field
4. Fix: implement solution
5. Test: verify in acceptance criteria
6. Close with explanation of root cause and fix
Pattern: Refactoring with Dependencies
1. Create issues for each refactoring step
2. Add blocks dependencies for correct order
3. Work through in dependency order
4. bd ready automatically shows next step
5. Each completion unblocks next work
Pattern: Spike Investigation
1. Create spike issue: "Investigate caching options"
2. Time-box exploration
3. Document findings in design field
4. Create follow-up issues for chosen approach
5. Link follow-ups with discovered-from
6. Close spike with recommendation
Checklist Templates
Starting Any Work Session
- [ ] Check for .beads/ directory
- [ ] If exists: bd ready
- [ ] Report status to user
- [ ] Get user input on what to work on
- [ ] Show issue details
- [ ] Update to in_progress
- [ ] Begin work
Creating Issues During Work
- [ ] Notice new work needed
- [ ] Create issue with clear title
- [ ] Add context in description
- [ ] Link with discovered-from to current work
- [ ] Assess blocker vs deferrable
- [ ] Update statuses appropriately
Completing Work
- [ ] Implementation done
- [ ] Tests passing
- [ ] Close issue with summary
- [ ] Check bd ready for unblocked work
- [ ] Report completion and next available work
Planning Complex Features
- [ ] Create epic for overall goal
- [ ] Break into child tasks
- [ ] Create all child issues
- [ ] Link with parent-child dependencies
- [ ] Add blocks between children if order matters
- [ ] Work through in dependency order
Decision Points
Should I create a bd issue or use TodoWrite? → See BOUNDARIES.md for decision matrix
Should I ask user before creating issue? → Ask if scope unclear; create if obvious follow-up work
Should I mark work as blocked or just note dependency? → Blocked = can't proceed; dependency = need to track relationship
Should I create epic or just tasks? → Epic if 5+ related tasks; tasks if simpler structure
Should I update status frequently or just at start/end? → Start and end minimum; during work if significant changes
Troubleshooting Workflows
"I can't find any ready work"
- Run bd blocked
- Identify what's blocking progress
- Either work on blockers or create new work
"I created an issue but it's not showing in ready"
- Run bd show on the issue
- Check dependencies field
- If blocked, resolve blocker first
- If incorrectly blocked, remove dependency
"Work is more complex than expected"
- Transition from TodoWrite to bd mid-session
- Create bd issue with current context
- Note: "Discovered complexity during implementation"
- Add dependencies as discovered
- Continue with bd tracking
"I closed an issue but work isn't done"
- Reopen with bd update status=open
- Or create new issue linking to closed one
- Note what's still needed
- Closed issues can't be reopened in some systems, so create new if needed
"Too many issues, can't find what matters"
- Use bd list with filters (priority, issue_type)
- Use bd ready to focus on unblocked work
- Consider closing old issues that no longer matter
- Use labels for organization