원클릭으로
systematic-debugging
Structured root-cause debugging protocol. Use when encountering any bug, test failure, or unexpected behavior.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Structured root-cause debugging protocol. Use when encountering any bug, test failure, or unexpected behavior.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Evidence-gated completion check. Use before committing, creating PRs, or claiming work is done. Pairs with verification-spec at task start.
Systematic knowledge extraction from open-source projects. Use when: user shares a repo/link to study, says 偷师/steal/学习/研究, or wants to analyze another project's patterns for adoption.
Launch a real interactive claude CLI session in a target directory (typically a worktree) with a pre-seeded prompt. Use when the current session cannot absorb the task context — e.g., N parallel worktree jobs that would blow the context window, or when you need the user to watch progress in a visible terminal. Each spawned session runs independently in its own Windows Terminal tab.
FileNotFound recovery protocol. Before reporting a missing-file error, suggest near-misses by basename similarity (difflib threshold 0.4) so typos and stale paths fail loudly with actionable hints.
Paste-by-reference guard for Edit calls. When new_string would echo >30 lines of existing file content, use {{file:path:start:end}} reference instead and expand before submission.
File-IO protocol for parent ↔ subagent communication. Parent writes input.txt + context.json, subagent appends to output.txt with [ROUND END] sentinels. Used with Monitor tool for live observation.
| name | systematic-debugging |
| description | Structured root-cause debugging protocol. Use when encountering any bug, test failure, or unexpected behavior. |
| origin | Orchestrator — earned through direct practice (see commit history) |
| source_version | 2026-04-18 |
IRON LAW: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.
You MUST complete Phase 1 before proposing any fix. If you catch yourself wanting to "just try something" — STOP. That impulse is the problem this protocol exists to solve.
Complete ALL of these before moving to Phase 2:
git diff, git log --oneline -10, env changes. The bug is usually in what changed.Gate check: Can you state the root cause in one sentence? If not, you're not done with Phase 1.
Track your fix attempts:
On the third failure, output this report to the user:
## Debugging Escalation Report
**Bug**: [description]
**Root cause hypothesis**: [your best guess]
**3 attempts tried**: [what each attempt changed and why it failed]
**Why this might be architectural**: [what pattern you're seeing]
**Recommendation**: [what the user should consider]
Do NOT attempt a 4th fix. The user decides the next step.
These thoughts mean you're about to violate the protocol:
| Thought | Reality |
|---|---|
| "I already know what's wrong" | Then Phase 1 should take 30 seconds. Do it anyway. |
| "This is a simple typo" | Typos don't need 3 attempts. If it's simple, Phase 1 is fast. |
| "Let me just try this quick fix" | Quick fixes that skip investigation cause 80% of debugging spirals. |
| "The error message is clear enough" | Read the FULL trace. The obvious line is often not the root cause. |
| "I don't need to reproduce it" | If you can't reproduce it, you can't verify the fix. |
| "I'll add the test after fixing" | That's not TDD, that's confirmation bias. Test first. |
| "This is taking too long, let me just..." | Impatience is the #1 cause of debugging spirals. Slow down. |
| "The third attempt is different enough" | Three failures = wrong mental model. Stop and escalate. |
After a successful fix, add ONE layer of defense:
Goal: make this class of bug structurally impossible, not just fixed in this instance.