brainstorming
Collaborative design exploration that refines ideas into validated specs through iterative questioning. Use before any creative work including creating…
Root cause analysis for debugging. Use when bugs, test failures, or unexpected behavior have non-obvious causes, or after multiple fix attempts have failed.
$ npx -y skills add izyanrajwani/agent-skills-library --skill systematic-debugging --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/systematic-debuggingContext preview
The summary Claude sees to decide when to auto-load this skill.
Root cause analysis for debugging. Use when bugs, test failures, or unexpected behavior have non-obvious causes, or after multiple fix attempts have failed.
name: systematic-debugging description: Root cause analysis for debugging. Use when bugs, test failures, or unexpected behavior have non-obvious causes, or after multiple fix attempts have failed.
**Core principle:** Find root cause before attempting fixes. Symptom fixes are failure.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
**BEFORE attempting ANY fix:**
1. **Read Error Messages Carefully**
2. **Reproduce Consistently**
3. **Check Recent Changes**
4. **Gather Evidence in Multi-Component Systems**
**WHEN system has multiple components (CI → build → signing, API → service → database):**
Add diagnostic instrumentation before proposing fixes:
For EACH component boundary:
- Log what data enters/exits component
- Verify environment/config propagation
- Check state at each layer
Run once to gather evidence → analyze → identify failing componentExample:
# Layer 1: Workflow
echo "=== Secrets available: ==="
echo "IDENTITY: ${IDENTITY:+SET}${IDENTITY:-UNSET}"
# Layer 2: Build script
env | grep IDENTITY || echo "IDENTITY not in environment"
# Layer 3: Signing
security find-identity -v5. **Trace Data Flow**
See `references/root-cause-tracing.md` for backward tracing technique.
Quick version: Where does bad value originate? Trace up call chain until you find the source. Fix at source.
1. **Find Working Examples** - Similar working code in codebase 2. **Compare Against References** - Read reference implementations COMPLETELY, don't skim 3. **Identify Differences** - List every difference, don't assume "that can't matter" 4. **Understand Dependencies** - Components, config, environment, assumptions
1. **Form Single Hypothesis** - "I think X is root cause because Y" - be specific 2. **Test Minimally** - SMALLEST possible change, one variable at a time 3. **Verify** - Worked → Phase 4. Didn't work → form NEW hypothesis, don't stack fixes 4. **When You Don't Know** - Say so. Don't pretend.
1. **Create Failing Test Case**
2. **Implement Single Fix**
3. **Verify Fix**
4. **If Fix Doesn't Work**
**Pattern indicating architectural problem:**
**Action:** STOP. Question fundamentals:
**Discuss with human partner before more fix attempts.** This is wrong architecture, not failed hypothesis.
If you catch yourself thinking:
**Response:** Return to Phase 1.
Reference files in `references/`:
Related skills:
🛠️ Enhance programming workflows with a curated library of agent skills for tasks like code review, debugging, and planning for efficient project execution.
Repo: izyanrajwani/agent-skills-library
Collaborative design exploration that refines ideas into validated specs through iterative questioning. Use before any creative work including creating…
Dispatches one subagent per independent domain to parallelize investigation/fixes. Use when you have 2+ unrelated failures (e.g., separate failing test files,…
Disciplined plan execution for implementation tasks. Use when executing a saved implementation plan, following step-by-step instructions from a plan document.
Git branch completion workflow. Use when implementation is complete, tests pass, and a feature branch needs to be integrated via merge, pull request, or…
Assesses and responds to incoming code review feedback on PRs (reviewer comments, requested changes), especially when suggestions are unclear, technically…
Use when you need to request a code review for a PR/MR and want a consistent review brief (context, scope, risk areas, test instructions, acceptance criteria)…