一键导入
bug-investigation-and-rca
Use when fixing or investigating crashes, regressions, flakes, hangs, incorrect outputs, or incidents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when fixing or investigating crashes, regressions, flakes, hangs, incorrect outputs, or incidents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when finishing a branch or PR after verification and review, including merge, PR publication, keep, discard, cleanup, local sync, and reporting merge or PR URLs with current git state.
Use when handling received code-review feedback on a PR or diff, including requested changes, inline comments, approvals, non-blocking notes, and disputed suggestions. Separates accepted fixes, refutations, deferrals, clarification needs, and merge handoff.
Use when preparing a focused code-review request for a PR or diff after implementation evidence exists, especially to package scope, reviewer focus, PR URL, verification, known risks, and deferred work without deciding final submit readiness.
Use before every submission to decide whether required checks, artifacts, and branch evidence are complete enough to submit.
Use when work is complex, long-running, multi-step, cross-boundary, likely to span multiple PRs/sessions, or needs handoff-ready planning under plans/.
Use when adding or changing Agent-facing workflows, generated prompts, collect plans, executable handoff artifacts, CLI workflows, controller/target-local workflow chains, or validation artifacts consumed by downstream reports. Do not use for ordinary code changes without an Agent-facing workflow or generated instruction surface.
| name | bug-investigation-and-rca |
| description | Use when fixing or investigating crashes, regressions, flakes, hangs, incorrect outputs, or incidents. |
| metadata | {"short-description":"Bug investigation & RCA"} |
This skill exists to make bugfixes diagnosable and repeatable by enforcing evidence → root cause → fix → verification → prevention.
Use this skill when any of these apply:
If the root cause is a missed workflow/product contract, prevention must include:
For details and guidance, open references/bug-investigation-and-rca.md.
Helper for deterministic artifact bootstrap:
python scripts/init_artifact.py --kind bug-report --slug <ticket-or-topic> (default output: reports/bug-reports/<slug>.md)Rule: each “Why” must be backed by evidence or a clearly labeled assumption.
If reproduction is impossible: