- Provides comprehensive workflow patterns and decision criteria - Includes quick reference (SKILL.md) and detailed references - Teaches when to use bd vs markdown/TodoWrite - Covers dependency types and issue lifecycle management - Complements existing plugin with usage philosophy
11 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
- 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
- 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/).
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.
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