Claude-skill-registry bug-triage
Reproduce, isolate, and fix a bug (or failing build/test), then summarize root cause, fix, and verification steps. Use when the user reports a bug, regression, or failing build/test and wants a fix.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/bug-triage" ~/.claude/skills/majiayu000-claude-skill-registry-bug-triage && rm -rf "$T"
manifest:
skills/data/bug-triage/SKILL.mdsource content
Bug triage
Goal
Turn an ambiguous bug report into:
- a reliable repro (or a clear “cannot reproduce yet” with next info to collect)
- a root-cause explanation
- a minimal, reviewed fix
- verification steps (commands + manual checks)
First checks
- Read any repo-specific guidance (
,AGENTS.md
, README).CONTRIBUTING.md - Clarify impact: severity, who is affected, and whether it’s a regression.
If info is missing, ask for it
- Exact steps to reproduce (starting state + inputs).
- Expected vs actual behavior.
- Error text / stack trace / logs (full, unedited if possible).
- Environment: OS, runtime versions (Node/Bun), browser, commit hash/tag.
- Frequency: always / sometimes / only certain data.
- “Last known good” version or approximate date when it started.
Workflow (checklist)
- Reproduce locally
- Prefer the simplest, fastest repro.
- If it’s flaky, try to reduce nondeterminism (seed, fixed time, retries).
- Localize the failure
- Narrow to a file/function/component/config.
- Use
to find relevant code paths and error strings.rg
- Identify root cause
- Form a hypothesis, confirm with logs/breakpoints, then refine.
- If it’s a regression and git history exists, consider
.git bisect
- Implement the minimal fix
- Fix the cause, not the symptom.
- Avoid drive-by refactors and formatting churn.
- Verify
- Run the project’s standard checks (lint/tests/build).
- Re-run the repro steps and confirm the fix.
Repo-aware command hints
Use what the repo actually uses:
- If
exists: preferbun.lock
(e.g.bun ...
,bun lint
,bun build
).bun dev - Otherwise: use the project’s documented commands (
,npm
,pnpm
, etc.).yarn - If
exists butbun.lock
is not available, tell the user and ask whether to installbun
or use the repo’s alternative package manager.bun
Deliverable (paste this in the chat / PR / issue)
Use this format:
- Summary: ...
- Repro: ...
- Root cause: ...
- Fix: ...
- Verification: ...
- Risk/notes: ...
If you need a bug-report structure to ask the user for, use
references/bug-report-template.md.