en un clic
debugging
Structured root-cause investigation for bugs and failures.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Structured root-cause investigation for bugs and failures.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
| name | debugging |
| description | Structured root-cause investigation for bugs and failures. |
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION
If Phase 1 is incomplete, no fix proposals allowed. Period.
Any technical malfunction: test failures, runtime errors, unexpected behavior, performance regressions, build breaks, integration mismatches.
Activate especially when:
Complete each phase sequentially. Do not skip ahead.
1. Read error output thoroughly
2. Reproduce consistently
3. Check recent changes
git diff, git log --oneline -104. Instrument multi-component boundaries
When the system spans multiple layers (CI pipeline, API chain, build tooling):
For EACH component boundary:
- Log inputs entering the component
- Log outputs leaving the component
- Verify config/env propagation across the boundary
- Run once, collect evidence, identify the failing seam
5. Trace data flow backward
See references/root-cause-tracing.md for the full technique.
Short version: start at the crash site, ask "where did this bad value come from?", trace upstream until you reach the originating mutation. Fix there.
arsyn:tdd if available)On 3+ failed attempts: Indicators of structural mismatch:
Stop and reconsider fundamentals: Is the current approach viable, or is inertia the only reason to continue? Escalate for discussion before further changes.
For investigations spanning many files or long debugging sessions, offload findings to disk instead of relying on context memory:
# Initialize a debug log at the start of investigation
echo "# Debug Log — $(date -Iminutes)" > debug-log.md
# Append findings as you go
echo "## Phase 1 — Error Analysis" >> debug-log.md
echo "- Stack trace points to auth.ts:142" >> debug-log.md
echo "- Token is null at middleware boundary" >> debug-log.md
# Append hypotheses and results
echo "## Hypothesis 1: Token not forwarded by proxy" >> debug-log.md
echo "- Result: REFUTED — proxy logs show token present" >> debug-log.md
# Later, grep across your own findings instead of scrolling context
grep "REFUTED\|CONFIRMED" debug-log.md
Benefits:
Use this when: the investigation touches 5+ files, spans multiple tool calls, or you catch yourself re-reading earlier findings.
If any of these thoughts arise, return to Phase 1 immediately:
| Rationalization | Counter |
|---|---|
| "Too simple for a process" | Simple bugs have root causes. The protocol is fast for simple cases. |
| "Emergency — no time" | Structured investigation is faster than guess-and-check cycling. |
| "Let me try this first" | The first attempted fix sets the pattern. Start correctly. |
| "I'll add the test after" | Untested fixes regress. Test-first proves resolution. |
| "Multiple fixes save time" | Prevents isolating what worked. Introduces new defects. |
| "I see the problem" | Seeing symptoms is not understanding causation. |
| "One more try" (after 2+ failures) | 3+ failures signal structural issues, not missing patches. |
| Phase | Core Activity | Exit Criterion |
|---|---|---|
| 1. Root Cause | Read errors, reproduce, trace data | Understand what fails and why |
| 2. Pattern | Find working analogues, diff against broken | Differences catalogued |
| 3. Hypothesis | State theory, test minimally | Confirmed or replaced |
| 4. Fix | Failing test, single fix, verify | Bug resolved, suite green |
references/root-cause-tracing.md — backward tracing through call stacksreferences/defense-in-depth.md — multi-layer validation after root cause is foundreferences/condition-based-waiting.md — replace arbitrary sleeps with condition pollingPost-implementation integrity and quality audit.
Session-start skill discovery protocol.
Execute implementation plan task-by-task inline.
Complete work with merge, PR, or cleanup options.
Integrity guardrails during code implementation.
Process code review feedback with rigor.