How this skill is triggered — by the user, by Claude, or both
Slash command
/ironclaude:systematic-debuggingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Perform systematic root-cause investigation before proposing fixes. This skill prevents guess-and-check debugging by enforcing a structured investigative process.
Perform systematic root-cause investigation before proposing fixes. This skill prevents guess-and-check debugging by enforcing a structured investigative process.
Announce professional mode status:
Using systematic-debugging skill. Professional mode is ACTIVE - architect mode enforced (no code changes).
Step 1: Understand the symptom
Ask clarifying questions ONE at a time:
Step 2: Reproduce the issue
Attempt to reproduce:
# Run the failing test, command, or scenario
<exact command from user>
Document:
Step 3: Trace through code
Starting from error location:
Do NOT guess. Read actual code at each step.
Step 4: Check related files
Look for:
# Check recent changes to file
git log -5 --oneline <file-path>
# Check what changed in last commit
git diff HEAD~1 <file-path>
Step 5: Form hypothesis
Based on investigation, state hypothesis:
Hypothesis: The error occurs because <specific reason>.
Evidence:
- [file.py:123] Variable X is undefined
- [config.yml:45] Setting Y was recently changed
- [test.log:67] Error message indicates Z
Expected: Fixing <specific issue> will resolve the error.
Step 6: Test hypothesis
Before making fixes, test the hypothesis:
# Add debug output
# Run test again
# Verify hypothesis is correct
Step 7: Design minimal fix
Based on confirmed root cause:
Root cause: <confirmed issue>
Minimal fix:
1. <specific change 1>
2. <specific change 2>
Files to modify:
- <file-path>:<line-numbers>
Why this fixes it:
<explanation>
Step 8: Create or execute plan
If fix is simple (1-2 files, < 20 lines):
This is a simple fix. Ready to implement?
[If yes: Use executing-plans or make changes directly if execution mode active]
If fix is complex:
This is a complex fix requiring multiple changes.
Recommend: Use writing-plans skill to create implementation plan.
[Use Skill tool to invoke writing-plans]
Step 9: Test the fix
After implementation:
# Run the originally failing test/command
<exact command that failed before>
Expected: Success
Step 10: Check for regressions
# Run full test suite
<test command>
Expected: All tests pass
Step 11: Document the fix
In commit message or documentation:
Root cause: <what was wrong>
Fix: <what was changed>
Verification: <how it was tested>
npx claudepluginhub robertphyatt/ironclaude --plugin ironclaudeEnforces systematic root cause analysis before fixes for bugs, test failures, unexpected behavior, performance issues, and build failures.
Enforces systematic root cause investigation for bugs, test failures, and unexpected behavior through four phases: investigation, pattern analysis, hypothesis testing, and implementation.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.