Skip to main content
QAOfficialCertifiedReviewed Dec 1, 2026

Bug Triage

We earn commissions when you shop through the links below.

v2.0.2New

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-triage

What 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".

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/bug-triage/SKILL.md

Setup guide →

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
0Save

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 ===

  1. Determine sources available: gh auth status for 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.
  2. 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.
  3. Note the default branch and current HEAD so evidence references are pinned to a commit.

=== PHASE 1: INGEST ===

  1. 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.
  2. Code markers: grep TODO/FIXME/BUG/HACK with file:line; keep only ones describing
    defects, not planned work.
  3. Logs: extract distinct error signatures (message + top stack frame), with occurrence
    counts as a frequency signal.
  4. Pasted list: parse each line/paragraph as one item.
  5. 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):

  1. Extract or infer repro steps from the report.
  2. 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.
  3. 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.
  4. 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 ===

  1. 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)
  2. PRIORITY = impact x frequency x fix-cost x regression-risk (max 625).
  3. 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.
  4. 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 ===

  1. 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: ".
  2. 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).
  3. If gh is available and the user's input was GitHub issues, offer (in the report, do not
    execute) ready-to-run gh issue edit/gh issue comment commands 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 ===

  1. Never rank an item you made no attempt to reproduce or classify; unranked items go to
    NEEDS-INFO.
  2. Never mark CONFIRMED without quoting the actually observed failure.
  3. Never invent frequency numbers; cite log counts, reactions, or mark ASSUMED.
  4. Never close or edit issues yourself; draft the commands, let the user run them.
  5. Never bury duplicates; clustering must be explicit and reversible (members listed).
  6. Never let the sprint slice exceed one estimated day.
  7. Always pin evidence to file:line and the commit SHA recorded in pre-flight.
  8. Always attempt reproduction BEFORE scoring, never after.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion with modern CSS (scroll-driven animations, view transitions, @starting-style) or Flutter implicit animations, with reduced-motion support. Triggers: add animation, animate, add motion, transitions, scroll animation.86 installsdesign-auditRead-only design quality audit (WCAG 2.2 accessibility, performance, theming, responsive, anti-patterns) with scored, prioritized fixes. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.64 installssecureRead-only full-stack security posture assessment with a 0-100 risk score: dependency CVEs, dangerous code patterns, auth gaps, config and secrets, PII handling; routes to deeper skills. Triggers: 'security posture', 'how secure is this', 'security scan', 'risk score'.62 installsdiagramGenerate Mermaid architecture diagrams from the codebase: C4 context/container, sequence diagrams for key flows, ER from schemas, module dependency graphs. Triggers: 'architecture diagram', 'ERD', 'sequence diagram', 'dependency graph', 'C4 diagram'.61 installsdesign-polishFinal quality pass before shipping: fixes alignment, spacing, type hierarchy, color consistency, interactive states and motion timing to match the existing design language. Triggers: 'polish the UI', 'make it pixel perfect', 'final design pass'.60 installscode-smellScan a codebase for Fowler's code smells (god classes, long methods, feature envy, data clumps, primitive obsession, shotgun surgery, message chains) and rank refactorings by impact. Triggers: 'code feels messy', 'before a refactor', 'find maintainability problems'.53 installs

More from Skills Hub

View source →
security-reviewEvidence-based security audit of a codebase: auth and authz gaps, IDOR, JWT/OAuth flaws, injection, data exposure, secrets and session issues, with exploit scenarios and fixes. Triggers: security review, audit auth, find vulnerabilities.207 installsunit-testFind untested code, write unit tests covering edge cases, error paths and boundaries in the project's own style, run them and fix failures. Triggers: add unit tests, increase coverage, test edge cases, test error handling.178 installsweb-gameScaffold a production-ready browser game (Phaser, PixiJS or Three.js) with Vite, TypeScript, input, audio, saves, responsive canvas and itch.io/PWA deploy. Triggers: web game, browser game, html5 game, phaser game, pixi game, three.js game.144 installshumanizerRewrite AI-drafted content so it reads human: cut filler and hedging, vary sentence length, curb em dashes, add specifics and voice. Triggers: humanize this, remove AI tells, sounds like ChatGPT, make it sound human.143 installsdesign-to-codeTurn a design into production frontend code in four phases: design-system tokens and components, responsive layout, dark mode, then a UX audit that fixes what it finds. Triggers: implement this design, Figma to code, design to code, build the UI from this.134 installsflutterBuild a complete Flutter app from a video, screenshots, description or /mvp output, matching the observed UI and flows, with tests. Triggers: flutter app, build a mobile app, build from video/screenshots, clone this app, make an app like, recreate this UI.131 installs

More QA skills

Browse category →
debugRoot-cause debugging: reproduces the bug, traces it to where the bad state starts, applies the smallest fix, and adds a regression test that fails without it.47 installspreflightRead-only pre-deploy gate: git state, build, tests, migrations, lock files, secrets and commit conventions, ending in READY or NOT READY. Triggers: preflight, pre-deploy check, ready to deploy, deployment checklist.45 installsautomated-code-quality-analysisA comprehensive, automated code quality analysis tool that performs static analysis across multiple programming languages, identifies issues, security vulnerabilities, code smells, and duplications, and generates detailed, actionable reports to improve code \38 installsbroken-linksScan a codebase for broken links — dead URLs in Markdown/HTML, broken file references, invalid import paths, stale anchor links, and broken cross-doc references — then auto-fix what it can: replace dead URLs with Wayback Machine archives, update moved file paths via git history. Use when the user asks to check for broken links, dead URLs, stale anchors, or bad import paths in docs or code, or before publishing documentation.14 installsdead-codeFind and safely remove dead code: unreachable paths, unused exports, unused functions, unused variables, unused CSS selectors, unused npm/pip/cargo dependencies, unused env vars, and commented-out code blocks. Use when the user asks to remove unused code or dependencies, trim bloat before a refactor, or mentions unused exports, dead CSS, or orphaned env vars.6 installsgame-qaRun a full game QA audit on Unity, Unreal, Godot, or web game projects. Triggers: you need to QA test a game, audit game code quality, find game bugs, check game certification compliance.6 installs

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.