From pdca-debug-suite
Universal PDCA debugging framework for systematic hypothesis verification. Use when debugging issues that require structured investigation, observing runtime behavior, or verifying fixes through iterative testing.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pdca-debug-suite:debug-cycleThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A systematic, platform-agnostic approach to debugging using the PDCA (Plan-Do-Check-Act) cycle. This methodology provides a structured workflow for forming hypotheses, adding instrumentation, analyzing behavior, and iterating until root cause identification.
A systematic, platform-agnostic approach to debugging using the PDCA (Plan-Do-Check-Act) cycle. This methodology provides a structured workflow for forming hypotheses, adding instrumentation, analyzing behavior, and iterating until root cause identification.
Objective: Form a testable hypothesis about the root cause.
Steps:
Hypothesis Template:
Symptom: [Precisely what is happening]
Expected: [What should happen instead]
Hypothesis: [Specific cause I believe is responsible]
Data needed: [Values/states to capture]
Instrumentation points: [Files, methods, lines to add logging]
Good vs Bad Hypotheses:
| Bad (Vague) | Good (Specific) |
|---|---|
| "Something is wrong with the data" | "The user ID is null when passed to fetchProfile()" |
| "The UI isn't updating" | "setState is not being called after the API response" |
| "It's slow" | "The database query is executing N+1 times in the loop" |
Objective: Add targeted instrumentation to capture the data needed.
Steps:
Log Naming Convention:
[ClassName] methodName: description key=value
Essential Logging Points:
Objective: Collect and analyze data to evaluate the hypothesis.
Steps:
Analysis Questions:
Objective: Based on analysis, determine the appropriate next step.
Decision Matrix:
| Result | Evidence | Action |
|---|---|---|
| Hypothesis CONFIRMED | Logs show exact predicted cause | Implement fix, then verify with new cycle |
| Hypothesis REFUTED | Logs show different behavior than predicted | Form new hypothesis based on actual findings |
| INCONCLUSIVE | Not enough data to determine | Add more granular logging, narrow scope |
| Root cause FOUND & FIXED | Fix applied, issue no longer reproduces | Remove debug logs, document solution |
| New issue DISCOVERED | Logs reveal separate problem | Create new hypothesis for new issue |
| Anti-pattern | Problem | Better Approach |
|---|---|---|
| "Shotgun debugging" | Changing multiple things at once | Change one thing, test, repeat |
| "Hypothesis-free" logging | Adding random logs hoping to find something | Form specific hypothesis first |
| "Premature fixing" | Implementing fix before confirming cause | Complete the Check phase first |
| "Ignoring inconclusive" | Assuming no news is good news | Add more instrumentation |
| "Forgetting cleanup" | Leaving debug code in production | Remove logs after resolution |
PLAN: Symptom -> Hypothesis -> Data needed -> Log points
DO: Add logs -> Build -> Deploy
CHECK: Reproduce -> Capture -> Analyze -> Document
ACT: Confirmed? -> Fix | Refuted? -> New hypothesis | Unclear? -> More logs
npx claudepluginhub xmgrex/ccx-arsenal --plugin pdca-debug-suiteEnforces systematic root cause investigation for bugs, test failures, and unexpected behavior through four phases: investigation, pattern analysis, hypothesis testing, and implementation.
Enforces four-phase debugging (root cause investigation, pattern analysis, hypothesis testing, implementation) for bugs, test failures, performance issues, and unexpected behavior before any fixes.
Guides systematic debugging of bugs, test failures, unexpected behavior via four phases: root cause investigation, pattern analysis, hypothesis testing, implementation before fixes.