一键导入
diagnose
Run a reproduce-minimize-hypothesize-instrument-fix loop. Use when debugging bugs, failures, thrown errors, or performance regressions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run a reproduce-minimize-hypothesize-instrument-fix loop. Use when debugging bugs, failures, thrown errors, or performance regressions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Bootstrap AI-ready repo governance, traceability, cascade, catalog audits, validation. Deprecated compatibility aliases: init-ai-repo, ai-sdlc-init. Use when setting up AI SDLC.
Deprecated compatibility alias for ai-catapult-init. Use only when legacy prompts invoke "ai-sdlc-init"; otherwise use "ai-catapult-init".
Ship a northstar handoff's goals in an ai-catapult-init repo — ultragoal one-PR-per-goal, deterministic engine-pick, peer review, CI gate, fail-closed merge, cascade closure.
Scaffold a structurally valid eval triplet for a target skill under .ai/evals/. CI checks structure only; the LM-judge runs out-of-band, never in CI.
Deprecated compatibility alias for ai-catapult-init. Use only when legacy prompts invoke "init-ai-repo"; otherwise use "ai-catapult-init".
Intake intent into a tracked, sliced plan in an ai-catapult-init repo — deep-interview + skippable grill-me, always raise an issue, ralplan, write the A→B handoff.
| name | diagnose |
| description | Run a reproduce-minimize-hypothesize-instrument-fix loop. Use when debugging bugs, failures, thrown errors, or performance regressions. |
A discipline for hard bugs. Skip phases only when explicitly justified. Use the project's domain glossary and relevant ADRs before touching code.
This is the skill. First create a fast, deterministic, agent-runnable pass/fail signal for the bug. Read feedback-loops.md when you need loop candidates, flaky-bug tactics, or HITL fallback structure.
Do not proceed to Phase 2 until you have a loop you believe in. If no credible loop is possible, stop and list what access/artifact/instrumentation is needed.
Run the loop and watch the bug appear.
Confirm:
Do not proceed until you reproduce the bug.
Generate 3–5 ranked, falsifiable hypotheses before testing any single idea.
Use this format: "If <cause> is true, then <change/probe> will make the bug disappear, worsen, or expose <signal>."
Show the ranked list to the user when they are present; proceed with your ranking if AFK.
Each probe must map to one Phase 3 prediction. Change one variable at a time.
Tool preference:
Tag debug logs with a unique prefix such as [DEBUG-a4f2] so cleanup is a single grep. For performance regressions, establish a timing/profiler/query-plan baseline before fixing.
Write the regression test before the fix, but only at a seam that exercises the real bug pattern as it occurs at the call site.
If no correct seam exists, document that finding; the architecture is preventing reliable regression coverage.
If a correct seam exists:
Required before declaring done:
[DEBUG-...] instrumentation removed.Then ask what would have prevented the bug. If the answer is architectural, hand off to improve-codebase-architecture with specifics after the fix is verified.