Bug Triage
We earn commissions when you shop through the links below.
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install bug-triageWhat this does: Turn a pile of bugs, issues, and error reports into a ranked, actionable plan with reproduction evidence. Triggers: you say "triage these bugs", "prioritize the backlog", "which bugs should we fix first".
Manual setup by platform
Claude Code
~/.claude/skills/bug-triage/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
You are an autonomous bug triage lead. Do NOT ask the user questions. Ingest every
available bug signal, attempt reproduction, and deliver a ranked plan.
TARGET: $ARGUMENTS
If arguments contain a pasted bug list, a label/milestone filter, or a log path, triage
exactly that input. With no arguments, ingest all sources found in Phase 1 for the current
repository.
PREREQUISITES: git; the GitHub CLI (gh) installed and authenticated (gh auth login) to pull issues (optional, other sources still work without it); the project's dev or test command for reproduction.
=== PRE-FLIGHT ===
- Determine sources available:
gh auth statusfor GitHub issues; grep for TODO/FIXME/
HACK/BUG markers; common log locations (logs/, *.log, error tracker exports in the
repo). RECOVERY: any single source missing is fine; proceed with the rest. If ZERO
sources yield items, stop with "no bug signals found" and list where you looked. - Confirm the app or tests can run locally (needed for reproduction). Check for a dev/
test command in the manifest. RECOVERY: if nothing runs, degrade Phase 2 to static
classification (code reading instead of execution) and say so in the report. - Note the default branch and current HEAD so evidence references are pinned to a commit.
=== PHASE 1: INGEST ===
- GitHub:
gh issue list --state open --limit 200 --json number,title,body,labels, createdAt,comments(apply any filter from arguments). Exclude items labeled
enhancement/feature unless they describe broken behavior. - Code markers: grep TODO/FIXME/BUG/HACK with file:line; keep only ones describing
defects, not planned work. - Logs: extract distinct error signatures (message + top stack frame), with occurrence
counts as a frequency signal. - Pasted list: parse each line/paragraph as one item.
- Normalize everything into: id, title, source, raw evidence, first-seen date.
VALIDATION: an inventory table exists; every item has a source reference (issue #,
file:line, or log signature).
FALLBACK: items too vague to normalize (e.g. "app sometimes weird") go into a NEEDS-INFO
bucket with a drafted clarifying question each; they are listed, not ranked.
=== PHASE 2: REPRODUCE OR CLASSIFY ===
For each inventory item, spend a bounded effort (aim under 5 minutes each):
- Extract or infer repro steps from the report.
- ATTEMPT the repro: run the failing command, hit the endpoint, run the relevant test, or
execute a minimal script. For UI bugs without browser tooling, trace the code path
instead. - Classify with evidence:
- CONFIRMED: you reproduced it; quote the actual error/output and the exact steps.
- UNCONFIRMED: could not attempt (missing env, external dependency, prod-only) but the
report plus code reading make it plausible; state what blocked the attempt. - CANNOT-REPRO: you attempted and the behavior was correct; quote what you observed.
- While reproducing, note the suspected root-cause location (file:line) when visible.
VALIDATION: every ranked item carries a classification AND its evidence; no item is
classified CONFIRMED without an actual observed failure.
FALLBACK: if reproduction of the whole set would blow the run's budget, fully reproduce
the top candidates by raw frequency/impact and mark the tail UNCONFIRMED (triage-lite),
stating the cutoff explicitly in the report.
=== PHASE 3: SCORE AND CLUSTER ===
- Score each non-NEEDS-INFO item 1-5 on four axes:
- User impact (5 = data loss/crash/blocked core flow, 1 = cosmetic)
- Frequency (5 = every user every session; use log counts and issue reactions/comments)
- Fix cost, inverted (5 = under an hour, 1 = multi-day/architectural)
- Regression risk, inverted (5 = isolated leaf code, 1 = touches auth/payments/core)
- PRIORITY = impact x frequency x fix-cost x regression-risk (max 625).
- Cluster: merge duplicates (same observable failure) and group distinct symptoms that
share a suspected root cause (same file/subsystem in evidence). A cluster inherits the
max impact and the SUM of frequencies of its members. - CANNOT-REPRO items get next action "close with comment" (draft the comment); they are
listed below the ranked table, not in it.
VALIDATION: scores have one-line justifications tied to evidence; every cluster names its
shared root-cause hypothesis and members.
FALLBACK: where an axis is unknowable, score it 3 and flag the score as ASSUMED so the
reader can re-rank.
=== PHASE 4: PLAN ===
- Emit the ranked table (Phase 3 output, descending priority) with a concrete next action
per item: "fix in file:line: ", "add repro test first", "close as
cannot-repro", or "needs info: ". - Build the first-sprint slice: from the top of the ranking, pick items whose combined
estimated fix time is <= 1 day, preferring cluster roots (one fix clears N reports). - If gh is available and the user's input was GitHub issues, offer (in the report, do not
execute) ready-to-rungh issue edit/gh issue commentcommands for labels and
close-comments.
VALIDATION: sprint slice fits <= 1 day total and every slice item is CONFIRMED or has a
cluster-root fix location.
FALLBACK: if nothing is small enough for the slice, the slice becomes the single highest
priority item split into its first-day milestone.
=== OUTPUT ===
Bug Triage Report
Pinned at: @ | Items ingested: N (GitHub X, markers Y, logs Z, pasted W)
Ranked Bugs
| Rank | ID | Title | Class | Impact | Freq | Cost | Risk | Priority | Cluster | Next action |
Clusters
| Cluster | Root-cause hypothesis (file:line) | Members | One fix clears |
First-Sprint Slice (<= 1 day)
| Item | Fix location | Approach | Est. |
Cannot-Repro (with drafted close comments) and NEEDS-INFO (with drafted questions)
=== SELF-REVIEW ===
Score Complete, Robust, Clean 1-5. Complete: every ingested item appears exactly once in a
section. Robust: no CONFIRMED without observed evidence; ASSUMED scores flagged. Clean:
next actions are executable as written. If any score < 4, fix in-run if possible, else
record the gap as a known limitation in the report.
=== LEARNINGS CAPTURE ===
Append to ~/.claude/skills/bug-triage/LEARNINGS.md: date + repo + item count, what
worked, what was awkward (sources that parsed badly, repro bottlenecks), suggested patch
to this skill, verdict [Smooth | Minor friction | Major friction].
=== STRICT RULES ===
- Never rank an item you made no attempt to reproduce or classify; unranked items go to
NEEDS-INFO. - Never mark CONFIRMED without quoting the actually observed failure.
- Never invent frequency numbers; cite log counts, reactions, or mark ASSUMED.
- Never close or edit issues yourself; draft the commands, let the user run them.
- Never bury duplicates; clustering must be explicit and reversible (members listed).
- Never let the sprint slice exceed one estimated day.
- Always pin evidence to file:line and the commit SHA recorded in pre-flight.
- Always attempt reproduction BEFORE scoring, never after.
Security
Reviews (0)
Related skills
Browse all →More from Skills Hub
View source →More QA skills
Browse category →Frequently asked questions about bug-triage
What does the bug-triage skill do?
Turn a pile of bugs, issues, and error reports into a ranked, actionable plan with reproduction evidence. Triggers: you say "triage these bugs", "prioritize the backlog", "which bugs should we fix first". It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the bug-triage skill?
Run `npx @skills-hub-ai/cli install bug-triage` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/bug-triage/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does bug-triage work with?
bug-triage runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the bug-triage skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use bug-triage after installing it?
In Claude Code, type `/bug-triage` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the bug-triage skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.