with one click
debug
Systematic root cause analysis. No fixes without investigation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Systematic root cause analysis. No fixes without investigation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Interview the user relentlessly about a plan or design. Use when the user wants to stress-test a plan before building, or uses any 'grill' trigger phrases.
Surface deepening opportunities in a codebase — shallow modules, seam leaks, missing locality — and grill through whichever one you pick. Architecture-pattern aware (monolith / distributed / serverless).
Reconcile and validate all documents in the project's docs/ directory
Full-project code audit workflow: audit then fix
Principal Engineer persona. Production-first technical judgment
Standalone QA investigation and fix workflow
| name | debug |
| description | Systematic root cause analysis. No fixes without investigation |
/debug [issue-description]
Systematic root cause analysis. NO fixes without investigation first.
Invocation of /debug is treated as explicit approval for read-only git commands in the current repo (git diff, recent commits). Do not run git write/destructive operations.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
Quick patches mask underlying issues. Random fixes waste time and create new bugs.
Investigation is always required. Tests before fixing are required for meaningful code (business logic, public APIs, edge cases). For trivial or boilerplate fixes, tests are optional.
BEFORE attempting ANY fix:
git diff, recent commitsWHEN system has multiple components:
For EACH component boundary:
- Log what data enters component
- Log what data exits component
- Verify environment/config propagation
- Check state at each layer
Run once to gather evidence showing WHERE it breaks
THEN analyze evidence to identify failing component
THEN investigate that specific component
WHEN error is deep in call stack:
MUST create before fixing:
SKIP for:
When in doubt, create the test. Tests for meaningful code only.
Pattern indicating architectural problem:
STOP and question fundamentals:
If you catch yourself:
ALL of these mean: STOP. Return to Phase 1.
| Excuse | Reality |
|---|---|
| "Issue is simple" | Simple issues have root causes too |
| "Emergency, no time" | Systematic is FASTER than thrashing |
| "Just try this first" | First fix sets the pattern. Do it right. |
| "I'll skip tests for this" | Meaningful code without tests breaks again |
| "Multiple fixes saves time" | Can't isolate what worked |
| "I see the problem" | Seeing symptoms != understanding root cause |
After systematic investigation, document:
## Debug Report: {issue}
### Root Cause
{What actually caused the issue}
### Evidence
{How you verified this is the root cause}
### Fix Applied
{Single, targeted fix addressing root cause}
### Verification
- [ ] Failing test created (if meaningful code)
- [ ] Fix implemented
- [ ] Test passes (or manual verification for trivial fixes)
- [ ] No regressions
### Prevention
{How to prevent similar issues}
/qa-and-fix when QA finds issues