一键导入
challenge-diagnosis
Protocol for challenging and revising a bug diagnosis — layer vs reject modes, investigation history format, re-diagnosis instructions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Protocol for challenging and revising a bug diagnosis — layer vs reject modes, investigation history format, re-diagnosis instructions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Behavioral rules that make AI coding agents more reliable — verification, self-correction, and scope discipline.
Debugging guidance and structured report template for thorough bug investigation, evidence gathering, and root cause documentation.
Cold-audit a completed delivery — verify the spec was actually delivered, challenge performative claims, and produce a what-landed report.
Guidelines for generating self-contained HTML mockups that look professional and are easy to iterate on.
Shared implementation guidance for making minimal, correct, maintainable code changes that fit existing systems.
The doctrine for `/roadmap-review` — interactive triage of roadmap-shape drift, walked one item at a time, with paste-ready resolution phrasing for the active sizing lens.
| name | challenge-diagnosis |
| description | Protocol for challenging and revising a bug diagnosis — layer vs reject modes, investigation history format, re-diagnosis instructions. |
| compatibility | opencode |
| metadata | {"audience":"debug-investigator","purpose":"diagnosis-feedback-loop"} |
Define how an engineer's challenge to a bug diagnosis gets processed:
which mode to use, how to preserve the reasoning chain, and what the
debug-investigator should do differently in each mode.
Appended to the bug spec after each challenge round. Never delete existing rounds — the history is append-only.
## Investigation History
### Round 1 — Initial diagnosis
- **Date**: 2026-04-22T14:00:00Z
- **Agent**: debug-investigator
- **Root cause**: <one-line summary>
- **Confidence**: High | Medium | Low
- **Key evidence**: <what pointed to this root cause>
### Round 2 — Challenged (layer)
- **Date**: 2026-04-22T15:30:00Z
- **Challenged by**: engineer
- **Feedback**: "<verbatim engineer feedback>"
- **Revised root cause**: <updated root cause incorporating both threads>
- **What changed**: <what's different from the previous round and why>
- **Confidence**: High | Medium | Low
| Field | Required | Notes |
|---|---|---|
| Date | yes | UTC ISO-8601 |
| Agent | yes | debug-investigator or engineer |
| Root cause / Revised root cause | yes | One-line summary |
| Confidence | yes | High / Medium / Low |
| Challenged by | challenge rounds only | Always engineer |
| Feedback | challenge rounds only | Verbatim engineer feedback |
| What changed | challenge rounds only | Delta from previous round |
| Key evidence | initial round only | What pointed to the root cause |
Scan the engineer's feedback for mode signals:
Reject signals — if ANY of these appear, use reject mode:
--reject flagLayer signals — everything else defaults to layer:
When ambiguous, default to layer — it's safer because nothing is discarded.
The debug-investigator receives:
Treat the existing analysis as valid evidence. The engineer has added a new hypothesis or thread. Investigate both the original root cause AND the new hypothesis. Produce a single merged analysis — not two competing explanations. If the new hypothesis supersedes the original, say so explicitly. If they're complementary (e.g. a root cause and a contributing factor), explain the relationship.
The investigator updates the spec's Root Cause and Fix Plan sections in place, then appends a new round to Investigation History.
Before the debug-investigator runs:
## Root Cause, ## Fix Plan, and any
## Investigation sections into ## Investigation History as the
previous round. Mark them clearly as superseded.The debug-investigator then receives:
The previous analysis has been rejected by the engineer. Their feedback is your starting hypothesis. You may reference the archived findings in Investigation History as evidence, but do not assume they are correct. Start your investigation from the engineer's hypothesis and follow the evidence.