beads-issue-triage
Use only when the user explicitly invokes `$beads-issue-triage` or names `beads-issue-triage` to triage Beads issues in the current repository before implementation.
SKILL.mdskills/local/beads-issue-triage/SKILL.md
GitHubBeads Issue Triage
Scope
Use this skill to recommend which Beads issue to handle next, which issues are blocked, and which issues can be worked on in parallel. This skill is read-only and does not start implementation.
Use bd as the source of truth. Do not create markdown TODO files for work tracking when Beads is available.
Workflow
- Resolve the current Beads workspace.
- Run
bd prime; if it prints nothing, runbd where. - Confirm local branch and dirty state with
git status --short --branch. - List other worktrees with
git worktree list --porcelain, and map each to a bead ID when its branch or path names one; report the rest as unmapped.
- Run
- Fetch candidate issues.
- Start with
bd ready. - Also run
bd list --status=opento see blocked, parent, and in-progress work. - For plausible candidates, inspect details with
bd show <id>, including dependencies and theTouched areassection when present. - Also inspect in-progress or claimed beads, so their touched areas can be checked for conflicts.
- Start with
- Read local repository guidance before ranking.
- Check project instructions such as
AGENTS.md. - Check product, roadmap, or workflow docs if present, commonly
README.md,docs/*.md, orWORKFLOW.md.
- Check project instructions such as
- Classify candidate issues.
- directly actionable implementation issue
- blocked by another issue, using
bddependencies as the source of truth - parent, epic, or tracking issue
- If a
Blocked bysection names a blocker thatbddoes not record, treat the bead as blocked and note the disagreement. - already in progress or claimed, or in progress in another local worktree
- future-scope, out-of-scope, duplicate, or ambiguous work
- Rank actionable issues.
- Prefer issues that unblock later work, especially precursor issues that settle a contract for several blocked issues.
- Prefer clear acceptance criteria, moderate blast radius, and alignment with repository guidance.
- Defer broad, ambiguous, high-risk, or policy-setting issues unless explicitly prioritized.
- Identify safe parallel candidates.
- Build the current wave: actionable ready issues with no open blockers.
- Within the current wave, group issues as parallel only when their touched areas do not overlap, including shared resources such as schemas, config, migrations, lockfiles, or public interfaces.
- Also check each candidate's touched areas against in-progress or claimed beads, and flag overlaps as conflicts with in-flight work.
- For other worktrees that may overlap candidates, list changed files with
git -C <path> diff --name-only <default-branch>...HEADandgit -C <path> status --short, and flag overlaps the same way. Skip worktrees with no changes. - When a bead has no
Touched areassection, infer its likely areas from the description and repository, and label them as inferred. - Recommend parallel work only when issues have no dependency relationship.
- Mention likely conflict areas such as shared config, schemas, migrations, test harnesses, or the same UI files.
- Recommend the next step without starting work.
- Give exactly one best next issue.
- If useful, suggest
$beads-issue-worktree <id>.
Output Format
**Current State**
- Ready issues: <count>
- Open issues: <count>
- Active worktrees: <count, mapped beads>
- Local branch/state: <short note>
**Recommended Order**
| Rank | Bead | Recommendation | Reason |
|---|---|---|---|
| 1 | <id> <title> | Do next | <why> |
**Parallel Work**
- Current wave: <id>, <id> (<parallel groups, or why they must not run together>)
- Overlaps: <touched-area overlaps between beads or with in-progress beads or worktrees, or "none">
- Next wave after <id> closes: <id>, <id>
- Or: "No safe parallel split right now"
**Next Step**
- Start with `$beads-issue-worktree <id>` if the user wants to implement the top recommendation.
Guardrails
- Do not create worktrees, branches, commits, pull requests, or notes.
- Do not edit files.
- Do not create, close, claim, assign, delete, or mutate Beads issues.
- Do not recommend blocked, closed, parent, or ambiguous issues as direct implementation work.
- If
bdis unavailable or the repository is not a Beads workspace, report the blocker and stop. - If product intent is unclear after reading local docs and issue bodies, ask one focused question before ranking.