Move all plugin content to claude-plugin/ subdirectory for cleaner separation from core beads functionality: - claude-plugin/.claude-plugin/plugin.json - plugin manifest - claude-plugin/commands/ - all slash commands - claude-plugin/agents/ - task-agent (now in correct location) - claude-plugin/skills/beads/ - beads skill with resources Root .claude-plugin/ now only contains marketplace.json pointing to ./claude-plugin. Note: After updating, users may need to clear plugin cache: rm -rf ~/.claude/plugins/cache/beads-marketplace/ Fixes #985 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Executed-By: beads/crew/dave Rig: beads Role: crew
19 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, think in Ready Fronts, not phases.
The Ready Front Model
A Ready Front is the set of issues with all dependencies satisfied - what can be worked on right now. As issues close, the front advances. The dependency DAG IS the execution plan.
Ready Front = Issues where all dependencies are closed
(no blockers remaining)
Static view: Natural topology in the DAG (sync points, bottlenecks)
Dynamic view: Current wavefront of in-progress work
Why Ready Fronts, not Phases?
"Phases" trigger temporal reasoning that inverts dependencies:
⚠️ COGNITIVE TRAP:
"Phase 1 before Phase 2" → brain thinks "Phase 1 blocks Phase 2"
→ WRONG: bd dep add phase1 phase2
Correct: "Phase 2 needs Phase 1" → bd dep add phase2 phase1
The fix: Name issues by what they ARE, think about what they NEED.
Epic Planning Workflow
Epic Planning with Ready Fronts:
- [ ] Create epic issue for high-level goal
- [ ] Walk backward from goal: "What does the end state need?"
- [ ] Create child issues named by WHAT, not WHEN
- [ ] Add deps using requirement language: "X needs Y" → bd dep add X Y
- [ ] Verify with bd blocked (tasks blocked BY prerequisites, not dependents)
- [ ] Use bd ready to work through in dependency order
The Graph Walk Pattern
Walk backward from the goal to get correct dependencies:
Start: "What's the final deliverable?"
↓
"Integration tests passing" → gt-integration
↓
"What does that need?"
↓
"Streaming support" → gt-streaming
"Header display" → gt-header
↓
"What do those need?"
↓
"Message rendering" → gt-messages
↓
"What does that need?"
↓
"Buffer layout" → gt-buffer (foundation, no deps)
This produces correct deps because you're asking "X needs Y", not "X before Y".
Ready Fronts Visualized
Ready Front 1: gt-buffer (foundation)
Ready Front 2: gt-messages (needs buffer)
Ready Front 3: gt-streaming, gt-header (parallel, need messages)
Ready Front 4: gt-integration (needs streaming, header)
At any moment, bd ready shows the current front. As issues close, blocked work becomes ready.
Example: OAuth Integration
# Create epic (the goal)
bd create "OAuth integration" -t epic
# Walk backward: What does OAuth need?
bd create "Login/logout endpoints" -t task # needs token storage
bd create "Token storage and refresh" -t task # needs auth flow
bd create "Authorization code flow" -t task # needs credentials
bd create "OAuth client credentials" -t task # foundation
# Add deps using requirement language: "X needs Y"
bd dep add endpoints storage # endpoints need storage
bd dep add storage flow # storage needs flow
bd dep add flow credentials # flow needs credentials
# credentials has no deps - it's Ready Front 1
# Verify: bd blocked should show sensible blocking
bd blocked
# endpoints blocked by storage ✓
# storage blocked by flow ✓
# flow blocked by credentials ✓
# credentials ready ✓
Validation
After adding deps, verify with bd blocked:
- Tasks should be blocked BY their prerequisites
- NOT blocked by their dependents
If gt-integration is blocked by gt-setup → correct
If gt-setup is blocked by gt-integration → deps are inverted, fix them
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