Next - Pick Your Next Bead
Help select the next bead to work on based on readiness and user preferences.
When to Use
- Starting a new work session
- Finished a task and need to pick the next one
- Want to see what's available to work on
- Need help prioritizing between multiple options
Usage
/next # Show ready beads, ranked by suitability
/next task # Auto-pick the next most suitable task and start it
/next quick # Auto-pick an easy win task and start it
/next bug # Auto-pick the next most important bug and fix it
/next <bead-id> # Start working on specific bead
What This Skill Does
Find Ready Work
- Run
bd list --ready to get open, unblocked tasks
- Excludes
in_progress beads (another session may be working on them)
- Show current in-progress work if any (for awareness, not selection)
Rank by Suitability
- Apply priority ranking algorithm (see below)
- Bugs generally rank higher than features at same priority
- Epics rank lower (they represent larger work)
Present Options
- Show top 5 candidates with key details
- Include: ID, title, priority, type, age
- Ask user to pick or provide different criteria
Start Work
- Mark selected bead as in_progress
- Show full bead details
- Suggest first steps if description includes them
Examples
# Show ready work ranked by suitability
/next
# Auto-pick and start the next most suitable task
/next task
# Auto-pick an easy win (quick task)
/next quick
# Auto-pick the next most important bug and start fixing
/next bug
# Start a specific bead
/next gauge-abc
Output Format
## Ready to Work (5 of 12 open)
| # | ID | Pri | Type | Parent/Subs | Title |
|---|-----------|-----|---------|-------------|--------------------------------|
| 1 | gauge-abc | P1 | bug | - | Fix login timeout issue |
| 2 | gauge-def | P2 | feature | 3 subtasks | Add export to CSV |
| 3 | gauge-ghi | P2 | task | gauge-def | Update dependencies |
| 4 | gauge-jkl | P3 | feature | - | Dark mode toggle |
| 5 | gauge-mno | P3 | task | 2 subtasks | Refactor auth service |
Currently in progress: gauge-xyz "Implement caching layer"
Which would you like to work on? (1-5, or specify ID, or "task" to auto-pick)
Implementation
When invoked:
Check for current open, not in-progress elsewhere, work:
bd list --status=open
Get ready (unblocked) beads with open status only, excluding P4 backlog:
bd list --ready --priority-max=3
Important:
- Use
bd list --ready (not bd ready) to exclude in_progress beads
- Use
--priority-max=3 to exclude P4 backlog items (P4 = future/someday, never auto-pick)
- Another session may be working on in_progress items - picking them up causes conflicts
Parse command argument:
- (none): Show ranked list, ask user to pick
task: Auto-select top-ranked bead and start it
quick: Auto-select an easy win task and start it
bug: Auto-select top-ranked bug and start it (see Bug Mode below)
<bead-id>: Start that specific bead
If specific bead ID provided:
bd show <id>
bd update <id> --status=in_progress
Otherwise, present top 5 options and ask user to choose
On selection:
- Mark as in_progress
- Show full details with
bd show
- If bead has description with steps, highlight first step
Handling Edge Cases
- No ready beads (P0-P3): Show blocked beads and what's blocking them; mention P4 backlog exists if any, but don't auto-pick
- All open beads in progress: Warn that another session may be working on them; ask user if they want to see in_progress beads anyway (may cause conflicts)
- User picks in_progress bead: Warn that another session may be working on it; require explicit confirmation before starting
- Invalid ID: Show error and list valid options
- User says "skip": Show next 5 options
Priority Ranking Algorithm
Rank ready beads in this order (first match wins):
| Rank |
Criteria |
| 1 |
Any P0 issue (any type) |
| 2 |
P1 bug |
| 3 |
P2 bug |
| 4 |
P1 feature or task |
| 5 |
P1 epic |
| 6 |
P2 feature or task |
| 7 |
P3 bug, feature, or task |
| 8 |
P2 epic |
| 9 |
P3 epic |
| 10 |
Any other non-P4 issue |
Important: P4 items are backlog/future work and must NEVER be auto-picked. Always use --priority-max=3 to exclude them. Only show P4 items if user explicitly requests them.
Quick Task Heuristics
When /next quick is used, prefer:
- Type: task > bug > feature (tasks are usually smaller)
- Priority: P3 > P2 > P1 (lower priority = less complex)
- Exclude epics (too large for quick wins)
- Title keywords: "fix", "update", "add" > "implement", "refactor", "redesign"
Bug Mode
When /next bug is used:
Filter to open bugs only (excluding P4 backlog):
bd list --ready --type=bug --priority-max=3
Rank by priority: P0 > P1 > P2 > P3 (highest priority bug first, P4 excluded)
Auto-select and start the top-ranked bug
Continue fixing bugs if the completed bug was minor:
- After completing a bug fix, assess if it was minor (small change, localized fix)
- If minor AND there's remaining context (related code still fresh), auto-pick the next bug
- Continue this loop until:
- A bug requires significant work (not minor)
- No more ready bugs remain
- Context would be lost (unrelated area of codebase)
Minor Bug Criteria
A bug is considered minor if:
- Fix touches ≤ 3 files
- Change is ≤ 50 lines total
- No architectural changes required
- Fix is localized (single component/module)
Context Continuity
Continue to next bug automatically when:
- Next bug is in same or adjacent files
- Next bug is in same module/component
- Fix for previous bug provides context for next bug
Stop and ask user when:
- Next bug is in completely different area of codebase
- Next bug appears complex (P0/P1 with unclear scope)
- 3+ bugs have been fixed in sequence (natural checkpoint)
1---2name: next-83description: Pick the next bead to work on. Shows ready tasks (no blockers), applies user preferences for ordering (priority, type, recency), and helps select work.4---56# Next - Pick Your Next Bead78Help select the next bead to work on based on readiness and user preferences.910## When to Use1112- Starting a new work session13- Finished a task and need to pick the next one14- Want to see what's available to work on15- Need help prioritizing between multiple options1617## Usage1819```20/next # Show ready beads, ranked by suitability21/next task # Auto-pick the next most suitable task and start it22/next quick # Auto-pick an easy win task and start it23/next bug # Auto-pick the next most important bug and fix it24/next <bead-id> # Start working on specific bead25```2627## What This Skill Does28291. **Find Ready Work**30 - Run `bd list --ready` to get open, unblocked tasks31 - Excludes `in_progress` beads (another session may be working on them)32 - Show current in-progress work if any (for awareness, not selection)33342. **Rank by Suitability**35 - Apply priority ranking algorithm (see below)36 - Bugs generally rank higher than features at same priority37 - Epics rank lower (they represent larger work)38393. **Present Options**40 - Show top 5 candidates with key details41 - Include: ID, title, priority, type, age42 - Ask user to pick or provide different criteria43444. **Start Work**45 - Mark selected bead as in_progress46 - Show full bead details47 - Suggest first steps if description includes them4849## Examples5051```bash52# Show ready work ranked by suitability53/next5455# Auto-pick and start the next most suitable task56/next task5758# Auto-pick an easy win (quick task)59/next quick6061# Auto-pick the next most important bug and start fixing62/next bug6364# Start a specific bead65/next gauge-abc66```6768## Output Format6970```71## Ready to Work (5 of 12 open)7273| # | ID | Pri | Type | Parent/Subs | Title |74|---|-----------|-----|---------|-------------|--------------------------------|75| 1 | gauge-abc | P1 | bug | - | Fix login timeout issue |76| 2 | gauge-def | P2 | feature | 3 subtasks | Add export to CSV |77| 3 | gauge-ghi | P2 | task | gauge-def | Update dependencies |78| 4 | gauge-jkl | P3 | feature | - | Dark mode toggle |79| 5 | gauge-mno | P3 | task | 2 subtasks | Refactor auth service |8081Currently in progress: gauge-xyz "Implement caching layer"8283Which would you like to work on? (1-5, or specify ID, or "task" to auto-pick)84```8586## Implementation8788When invoked:89901. Check for current open, not in-progress elsewhere, work:91 ```bash92 bd list --status=open93 ```94952. Get ready (unblocked) beads with open status only, excluding P4 backlog:96 ```bash97 bd list --ready --priority-max=398 ```99100 **Important**:101 - Use `bd list --ready` (not `bd ready`) to exclude `in_progress` beads102 - Use `--priority-max=3` to exclude P4 backlog items (P4 = future/someday, never auto-pick)103 - Another session may be working on in_progress items - picking them up causes conflicts1041053. Parse command argument:106 - (none): Show ranked list, ask user to pick107 - `task`: Auto-select top-ranked bead and start it108 - `quick`: Auto-select an easy win task and start it109 - `bug`: Auto-select top-ranked bug and start it (see Bug Mode below)110 - `<bead-id>`: Start that specific bead1111124. If specific bead ID provided:113 ```bash114 bd show <id>115 bd update <id> --status=in_progress116 ```1171185. Otherwise, present top 5 options and ask user to choose1191206. On selection:121 - Mark as in_progress122 - Show full details with `bd show`123 - If bead has description with steps, highlight first step124125## Handling Edge Cases126127- **No ready beads (P0-P3)**: Show blocked beads and what's blocking them; mention P4 backlog exists if any, but don't auto-pick128- **All open beads in progress**: Warn that another session may be working on them; ask user if they want to see in_progress beads anyway (may cause conflicts)129- **User picks in_progress bead**: Warn that another session may be working on it; require explicit confirmation before starting130- **Invalid ID**: Show error and list valid options131- **User says "skip"**: Show next 5 options132133## Priority Ranking Algorithm134135Rank ready beads in this order (first match wins):136137| Rank | Criteria |138|------|---------------------------------|139| 1 | Any P0 issue (any type) |140| 2 | P1 bug |141| 3 | P2 bug |142| 4 | P1 feature or task |143| 5 | P1 epic |144| 6 | P2 feature or task |145| 7 | P3 bug, feature, or task |146| 8 | P2 epic |147| 9 | P3 epic |148| 10 | Any other non-P4 issue |149150**Important**: P4 items are backlog/future work and must NEVER be auto-picked. Always use `--priority-max=3` to exclude them. Only show P4 items if user explicitly requests them.151152## Quick Task Heuristics153154When `/next quick` is used, prefer:1551. Type: task > bug > feature (tasks are usually smaller)1562. Priority: P3 > P2 > P1 (lower priority = less complex)1573. Exclude epics (too large for quick wins)1584. Title keywords: "fix", "update", "add" > "implement", "refactor", "redesign"159160## Bug Mode161162When `/next bug` is used:1631641. **Filter to open bugs only** (excluding P4 backlog):165166 ```bash167 bd list --ready --type=bug --priority-max=3168 ```1691702. **Rank by priority**: P0 > P1 > P2 > P3 (highest priority bug first, P4 excluded)1711723. **Auto-select and start** the top-ranked bug1731744. **Continue fixing bugs** if the completed bug was minor:175 - After completing a bug fix, assess if it was minor (small change, localized fix)176 - If minor AND there's remaining context (related code still fresh), auto-pick the next bug177 - Continue this loop until:178 - A bug requires significant work (not minor)179 - No more ready bugs remain180 - Context would be lost (unrelated area of codebase)181182### Minor Bug Criteria183184A bug is considered **minor** if:185186- Fix touches ≤ 3 files187- Change is ≤ 50 lines total188- No architectural changes required189- Fix is localized (single component/module)190191### Context Continuity192193Continue to next bug automatically when:194195- Next bug is in same or adjacent files196- Next bug is in same module/component197- Fix for previous bug provides context for next bug198199Stop and ask user when:200201- Next bug is in completely different area of codebase202- Next bug appears complex (P0/P1 with unclear scope)203- 3+ bugs have been fixed in sequence (natural checkpoint)