ワンクリックで
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation
Use when implementing any feature or bugfix, before writing implementation code
Use when executing implementation plans with independent tasks in the current session
Use when creating new skills, editing existing skills, or verifying skills work before deployment
You MUST use this before creative or behavior-changing work — creating features, building components, adding functionality, modifying behavior, or ambiguous product intent. Explores user intent, requirements and design before implementation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
| name | systematic-debugging |
| description | Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes |
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Core principle: ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
Violating the letter of this process is violating the spirit of debugging.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
If you haven't completed Phase 1, you cannot propose fixes.
Use for ANY technical issue:
Use this ESPECIALLY when:
Don't skip when:
Use this shorter path when all are true:
Focused steps:
wukong-code:test-driven-development)The Iron Law still holds: no fix before you understand the failing cause. Focused path skips the full multi-phase narration, not investigation.
Use the full Four Phases instead when:
When Focused path does not apply, you MUST complete each phase before proceeding to the next.
BEFORE attempting ANY fix:
root-cause-tracing.md)wukong-code:test-driven-development)For full phase detail, multi-component instrumentation examples, and architecture-questioning guidance, Read skills/systematic-debugging/references/rationalizations-and-depth.md
If you catch yourself thinking:
ALL of these mean: STOP. Return to Phase 1.
If 3+ fixes failed: Question the architecture (see skills/systematic-debugging/references/rationalizations-and-depth.md, Phase 4.5 / architecture questioning section)
Watch for these redirections:
When you see these: STOP. Return to Phase 1.
| Path / Phase | Key Activities | Success Criteria |
|---|---|---|
| Focused | Single fail + stable repro + clear surface → regress test → fix → focused + needed suite | Bug resolved without full phase narration |
| 1. Root Cause | Read errors, reproduce, check changes, gather evidence | Understand WHAT and WHY |
| 2. Pattern | Find working examples, compare | Identify differences |
| 3. Hypothesis | Form theory, test minimally | Confirmed or new hypothesis |
| 4. Implementation | Create test, fix, verify | Bug resolved, tests pass |
If systematic investigation reveals issue is truly environmental, timing-dependent, or external:
But: 95% of "no root cause" cases are incomplete investigation.
These techniques are part of systematic debugging and available in this directory:
root-cause-tracing.md - Trace bugs backward through call stack to find original triggerdefense-in-depth.md - Add validation at multiple layers after finding root causecondition-based-waiting.md - Replace arbitrary timeouts with condition pollingRelated skills:
For rationalizations, phase depth, and real-world impact data, Read skills/systematic-debugging/references/rationalizations-and-depth.md