This skill should be used when encountering bugs, errors, failing tests, or unexpected behavior. Provides systematic debugging with evidence-based root cause investigation using a four-stage framework.
Systematically investigates bugs through evidence collection, root cause analysis, and verified fixes using a four-stage framework.
npx claudepluginhub outfitter-dev/outfitterThis skill inherits all available tools. When active, it can use any tool Claude has access to.
examples/race-condition.mdexamples/runtime-error.mdreferences/evidence-patterns.mdreferences/integration.mdreferences/playbooks.mdreferences/reproduction.mdEvidence-based investigation -> root cause -> verified fix.
maintain-tasks skill for stage trackingFor formal incident investigation requiring RCA documentation, use find-root-causes skill instead (it loads this skill and adds formal RCA methodology).
<when_to_use>
NOT for: obvious fixes, feature requests, architecture planning
</when_to_use>
<iron_law>
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
Never propose solutions or "try this" without understanding root cause through systematic investigation.
</iron_law>
<stages>See Steps section for skill dependencies. Stages advance forward only.
| Stage | Trigger | activeForm |
|---|---|---|
| Collect Evidence | Session start | "Collecting evidence" |
| Isolate Variables | Evidence gathered | "Isolating variables" |
| Formulate Hypotheses | Problem isolated | "Formulating hypotheses" |
| Test Hypothesis | Hypothesis formed | "Testing hypothesis" |
| Verify Fix | Fix identified | "Verifying fix" |
Situational (insert when triggered):
Workflow:
in_progresscompleted, add next in_progress<quick_start>
in_progress</quick_start>
<stage_1_root_cause>
Goal: Understand what's actually happening.
Transition: Mark complete when you have reproduction steps and initial evidence.
Read error messages completely
Reproduce consistently
Check recent changes
git diff - what changed?git log --since="yesterday" - recent commitsGather evidence
Trace data flow backward
Red flags (return to evidence gathering):
</stage_1_root_cause>
<stage_2_pattern_analysis>
Goal: Learn from working code to understand broken code.
Transition: Mark complete when key differences identified.
Find working examples
rg "pattern" for similar patternsRead references completely
Identify every difference
Understand dependencies
Questions to answer:
</stage_2_pattern_analysis>
<stage_3_hypothesis_testing>
Goal: Test one specific idea with minimal change.
Transition: Mark complete when specific, evidence-based hypothesis formed.
Form single hypothesis
Design minimal test
Execute and verify
Outcomes:
Bad hypotheses (too vague):
Good hypotheses (specific, testable):
</stage_3_hypothesis_testing>
<stage_4_implementation>
Goal: Fix root cause permanently with verification.
Transition: Root cause confirmed, ready for permanent fix.
Create failing test
Implement single fix
Verify fix
Circuit breaker If 3+ fixes tried without success: STOP
After fixing:
</stage_4_implementation>
<red_flags>
STOP and return to Stage 1 if you catch yourself:
ALL mean: STOP. Add new "Collect Evidence" task.
</red_flags>
<escalation>When to escalate:
Before claiming "fixed":
Understanding the bug is more valuable than fixing it quickly.
</completion> <rules>ALWAYS:
NEVER:
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.