brainstorming
Collaborative design exploration that refines ideas into validated specs through iterative questioning. Use before any creativeโฆ
Root cause analysis for debugging. Use when bugs, test failures, or unexpected behavior have non-obvious causes, or after multiple fix attempts have failed.
Claude Code
$ npx -y skills add izyanrajwani/agent-skills-library --skill systematic-debugging --agent claude-code
Codex
$ npx skills add izyanrajwani/agent-skills-library --skill systematic-debugging -a codex -y
Cursor
$ npx skills add izyanrajwani/agent-skills-library --skill systematic-debugging -a cursor -y
Gemini CLI
$ npx skills add izyanrajwani/agent-skills-library --skill systematic-debugging -a gemini-cli -y
GitHub Copilot
$ npx skills add izyanrajwani/agent-skills-library --skill systematic-debugging -a github-copilot -y
OpenCode
$ npx skills add izyanrajwani/agent-skills-library --skill systematic-debugging -a opencode -y
Windsurf
$ npx skills add izyanrajwani/agent-skills-library --skill systematic-debugging -a windsurf -y
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.
Collaborative design exploration that refines ideas into validated specs through iterative questioning. Use before any creativeโฆ
Dispatches one subagent per independent domain to parallelize investigation/fixes. Use when you have 2+ unrelated failures (e.g.,โฆ
Disciplined plan execution for implementation tasks. Use when executing a saved implementation plan, following step-by-stepโฆ
Git branch completion workflow. Use when implementation is complete, tests pass, and a feature branch needs to be integrated viaโฆ
Assesses and responds to incoming code review feedback on PRs (reviewer comments, requested changes), especially when suggestionsโฆ
Use when you need to request a code review for a PR/MR and want a consistent review brief (context, scope, risk areas, testโฆ
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, orโฆ
Ask which skill or flow fits your situation. A router over the skills in this repo.