← Browse

@xiaowen-jiang/bug-triage

A

Analyze bug reports, assess severity, identify root cause, and recommend fixes

skillclaude

Install

agr install @xiaowen-jiang/bug-triage --target claude

Writes 1 file into .claude/skills/, pinned to git-7464b7cf.

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

Document


name: Bug Triage description: Analyze bug reports, assess severity, identify root cause, and recommend fixes version: "1.0" tags: [engineering, quality, debugging] complexity: intermediate requires_tools: [mcp:filesystem:*]

Process

  1. Understand the bug report — What was expected? What happened instead?
  2. Read related code — Find the code path where the bug occurs
  3. Reproduce mentally — Trace the execution flow to understand why the bug happens
  4. Classify severity:
    • P0 (Critical): Data loss, security vulnerability, complete feature broken
    • P1 (High): Major feature degraded, no workaround
    • P2 (Medium): Feature partially broken, workaround exists
    • P3 (Low): Cosmetic issue, minor inconvenience
  5. Identify root cause — The actual code/logic error, not just symptoms
  6. Assess blast radius — What else could be affected?
  7. Propose fix — Specific code changes with effort estimate

Output Format

## Bug Triage Report

**Severity**: P0/P1/P2/P3
**Component**: [module/file affected]
**Root Cause**: [1-2 sentence explanation]
**Blast Radius**: [what else is affected]

### Reproduction Steps
1. ...

### Proposed Fix
- File: path/to/file.py
- Change: [description of fix]
- Effort: Small (< 1hr) / Medium (1-4hr) / Large (4hr+)

### Regression Risk
[What could break if we fix this incorrectly]

Guidelines

  • Always read the actual code before diagnosing — don't guess
  • Distinguish symptoms from root cause
  • Consider if the bug is a regression (did this work before?)
  • Check for similar patterns elsewhere in the codebase
  • Prioritize data integrity and security bugs above all else
  • Include a test case that would catch this bug

Trustgrade A

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • passLicense

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-7464b7cfe1422026-07-31