一键导入
systematic-debugging
Use when debugging. 4-phase investigation, root cause, minimal fix.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when debugging. 4-phase investigation, root cause, minimal fix.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when reviewing architecture decisions. C4 model, dependency inversion, hexagonal boundaries.
Use during discuss-slice and plan-slice to stress-test a spec or plan against domain vocabulary before approval.
Use during research-slice to build disposable experiments that answer technical uncertainty.
Use during project:init to scaffold repo-level agent configuration (CLAUDE.md, AGENTS.md, tracker labels).
Use when implementing features/fixes. Iron law: ¬∃ production code without failing test.
Use during discuss-slice to synthesize conversation context into a formal PRD with user stories, implementation decisions, testing decisions, and exclusions.
| name | systematic-debugging |
| description | Use when debugging. 4-phase investigation, root cause, minimal fix. |
| version | 1.0.0 |
| tags | ["debugging","process"] |
∀ debug workflow: load this skill. Drives investigation -> root cause -> minimal fix.
¬guess. ∀ hypothesis: verify before proposing a fix. ¬fix symptoms.
For hard bugs and performance regressions, apply this disciplined diagnosis loop:
Construct a fast, deterministic feedback loop. Preferred forms (fastest to slowest):
Aggressively refine the loop for speed and clarity. The quality of the loop determines the quality of the diagnosis.
Reproduce the failure and validate that it matches the user's reported symptom. If the reproduction diverges, the symptom description is incomplete or incorrect.
Produce 3–5 ranked, falsifiable hypotheses following the template:
If X is the cause, then changing Y will make the bug disappear / changing Z will make it worse.
Show the ranked list to the user before testing.
Map each probe to a specific prediction. Prefer debuggers over broad logging. Any temporary logs must carry a unique tag such as [DEBUG-a4f2].
When a correct seam exists, write the regression test first, then apply the fix. If no adequate seam is available, document that architectural shortcoming.
Remove all instrumentation. Rerun the original reproduction. Ask: "What would have prevented this bug?" Escalate architectural gaps to architecture review.