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 safe # Same but exclude services with in-progress beads
/next task # Auto-pick the next most suitable task and start it
/next quick # Auto-pick an easy win (excludes busy services)
/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, labels (services/tags), 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
# Show ready work, excluding services with in-progress beads
/next safe
# Auto-pick and start the next most suitable task
/next task
# Auto-pick an easy win (excludes busy services)
/next quick
# Auto-pick the next most important bug and start fixing
/next bug
# Start a specific bead
/next mycode-abc
Output Format
## Ready to Work (5 of 12 open)
| # | ID | Pri | Type | Labels | Title |
|---|------------|-----|---------|---------------------|--------------------------------|
| 1 | mycode-abc | P1 | bug | frontend | Fix login timeout issue |
| 2 | mycode-def | P2 | feature | backend, orders | Add export to CSV |
| 3 | mycode-ghi | P2 | task | auth | Update dependencies |
| 4 | mycode-jkl | P3 | feature | frontend, css | Dark mode toggle |
| 5 | mycode-mno | P3 | task | events, auth | Refactor auth service |
Currently in progress: mycode-xyz "Implement caching layer"
Which would you like to work on? (1-5, or specify ID, or "task" to auto-pick)
Implementation
When invoked:
Get the ranked table using the next-bd script (handles ready list, blocked filtering, label fetching, and ranking in one command):
# Preferred — if symlinked into the project's scripts/
./scripts/next-bd --in-progress
Fallback if not available in the project's scripts/:
SKILLS_DIR="${SKILLS_DIR:-${CODEX_HOME:-$HOME/.codex}/skills}"
if [[ ! -x "$SKILLS_DIR/next/resources/next-bd" ]]; then
SKILLS_DIR="${CLAUDE_HOME:-$HOME/.claude}/skills"
fi
"$SKILLS_DIR/next/resources/next-bd" --in-progress
For safe and quick modes, add --avoid-busy to exclude beads whose labels overlap with in-progress beads:
./scripts/next-bd --in-progress --avoid-busy
This outputs a markdown table ranked by the priority algorithm, with labels included, blocked beads filtered out, and in-progress beads shown for awareness.
Parse command argument:
- (none): Show the script output, ask user to pick
safe: Show the script output with --avoid-busy, ask user to pick
task: Auto-select top-ranked bead and start it
quick: Auto-select an easy win task and start it (uses --avoid-busy)
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 the script output 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)
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: flurdy-agent-skills-next3description: Next - Pick Your Next Bead4---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```bash20/next # Show ready beads, ranked by suitability21/next safe # Same but exclude services with in-progress beads22/next task # Auto-pick the next most suitable task and start it23/next quick # Auto-pick an easy win (excludes busy services)24/next bug # Auto-pick the next most important bug and fix it25/next <bead-id> # Start working on specific bead26```2728## What This Skill Does29301. **Find Ready Work**31 - Run `bd list --ready` to get open, unblocked tasks32 - Excludes `in_progress` beads (another session may be working on them)33 - Show current in-progress work if any (for awareness, not selection)34352. **Rank by Suitability**36 - Apply priority ranking algorithm (see below)37 - Bugs generally rank higher than features at same priority38 - Epics rank lower (they represent larger work)39403. **Present Options**41 - Show top 5 candidates with key details42 - Include: ID, title, priority, type, labels (services/tags), age43 - Ask user to pick or provide different criteria44454. **Start Work**46 - Mark selected bead as in_progress47 - Show full bead details48 - Suggest first steps if description includes them4950## Examples5152```bash53# Show ready work ranked by suitability54/next5556# Show ready work, excluding services with in-progress beads57/next safe5859# Auto-pick and start the next most suitable task60/next task6162# Auto-pick an easy win (excludes busy services)63/next quick6465# Auto-pick the next most important bug and start fixing66/next bug6768# Start a specific bead69/next mycode-abc70```7172## Output Format7374```plaintext75## Ready to Work (5 of 12 open)7677| # | ID | Pri | Type | Labels | Title |78|---|------------|-----|---------|---------------------|--------------------------------|79| 1 | mycode-abc | P1 | bug | frontend | Fix login timeout issue |80| 2 | mycode-def | P2 | feature | backend, orders | Add export to CSV |81| 3 | mycode-ghi | P2 | task | auth | Update dependencies |82| 4 | mycode-jkl | P3 | feature | frontend, css | Dark mode toggle |83| 5 | mycode-mno | P3 | task | events, auth | Refactor auth service |8485Currently in progress: mycode-xyz "Implement caching layer"8687Which would you like to work on? (1-5, or specify ID, or "task" to auto-pick)88```8990## Implementation9192When invoked:93941. **Get the ranked table** using the `next-bd` script (handles ready list, blocked filtering, label fetching, and ranking in one command):9596 ```bash97 # Preferred — if symlinked into the project's scripts/98 ./scripts/next-bd --in-progress99 ```100101 Fallback if not available in the project's scripts/:102 ```bash103 SKILLS_DIR="${SKILLS_DIR:-${CODEX_HOME:-$HOME/.codex}/skills}"104 if [[ ! -x "$SKILLS_DIR/next/resources/next-bd" ]]; then105 SKILLS_DIR="${CLAUDE_HOME:-$HOME/.claude}/skills"106 fi107 "$SKILLS_DIR/next/resources/next-bd" --in-progress108 ```109110 For `safe` and `quick` modes, add `--avoid-busy` to exclude beads whose labels overlap with in-progress beads:111 ```bash112 ./scripts/next-bd --in-progress --avoid-busy113 ```114115 This outputs a markdown table ranked by the priority algorithm, with labels included, blocked beads filtered out, and in-progress beads shown for awareness.1161172. Parse command argument:118 - (none): Show the script output, ask user to pick119 - `safe`: Show the script output with `--avoid-busy`, ask user to pick120 - `task`: Auto-select top-ranked bead and start it121 - `quick`: Auto-select an easy win task and start it (uses `--avoid-busy`)122 - `bug`: Auto-select top-ranked bug and start it (see Bug Mode below)123 - `<bead-id>`: Start that specific bead1241253. If specific bead ID provided:126127 ```bash128 bd show <id>129 bd update <id> --status=in_progress130 ```1311324. Otherwise, present the script output and ask user to choose1331345. On selection:135 - Mark as in_progress136 - Show full details with `bd show`137 - If bead has description with steps, highlight first step138139## Handling Edge Cases140141- **No ready beads (P0-P3)**: Show blocked beads and what's blocking them; mention P4 backlog exists if any, but don't auto-pick142- **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)143- **User picks in_progress bead**: Warn that another session may be working on it; require explicit confirmation before starting144- **Invalid ID**: Show error and list valid options145- **User says "skip"**: Show next 5 options146147## Priority Ranking Algorithm148149Rank ready beads in this order (first match wins):150151| Rank | Criteria |152|------|---------------------------------|153| 1 | Any P0 issue (any type) |154| 2 | P1 bug |155| 3 | P2 bug |156| 4 | P1 feature or task |157| 5 | P1 epic |158| 6 | P2 feature or task |159| 7 | P3 bug, feature, or task |160| 8 | P2 epic |161| 9 | P3 epic |162| 10 | Any other non-P4 issue |163164**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.165166## Quick Task Heuristics167168When `/next quick` is used, prefer:1691. Type: task > bug > feature (tasks are usually smaller)1702. Priority: P3 > P2 > P1 (lower priority = less complex)1713. Exclude epics (too large for quick wins)1724. Title keywords: "fix", "update", "add" > "implement", "refactor", "redesign"173174## Bug Mode175176When `/next bug` is used:1771781. **Filter to open bugs only** (excluding P4 backlog):179180 ```bash181 bd list --ready --type=bug --priority-max=3182 ```1831842. **Rank by priority**: P0 > P1 > P2 > P3 (highest priority bug first, P4 excluded)1851863. **Auto-select and start** the top-ranked bug1871884. **Continue fixing bugs** if the completed bug was minor:189 - After completing a bug fix, assess if it was minor (small change, localized fix)190 - If minor AND there's remaining context (related code still fresh), auto-pick the next bug191 - Continue this loop until:192 - A bug requires significant work (not minor)193 - No more ready bugs remain194 - Context would be lost (unrelated area of codebase)195196### Minor Bug Criteria197198A bug is considered **minor** if:199200- Fix touches ≤ 3 files201- Change is ≤ 50 lines total202- No architectural changes required203- Fix is localized (single component/module)204205### Context Continuity206207Continue to next bug automatically when:208209- Next bug is in same or adjacent files210- Next bug is in same module/component211- Fix for previous bug provides context for next bug212213Stop and ask user when:214215- Next bug is in completely different area of codebase216- Next bug appears complex (P0/P1 with unclear scope)217- 3+ bugs have been fixed in sequence (natural checkpoint)218219---220> Converted and distributed by [TomeVault](https://tomevault.io/claim/flurdy) — claim your Tome and manage your conversions.221<!-- tomevault:4.0:skill_md:2026-04-13 -->