npx agentspec-cli install 3fcfd1c8-45ae-448b-8aef-90b7c927611f --framework ClaudeCode→ .claude/skills/debug/SKILL.md
# Debug Like an Expert **Core principle:** VERIFY, DON'T ASSUME. Code you wrote deserves extra skepticism. ## Phase 1: EVIDENCE GATHERING - Document exact error (full message, stack trace) - Identify affected components - Check recent changes (`git diff`, `git log`) - Research error via context7 MCP if needed **Output:** Evidence summary **Gate:** Have reproducible steps before proceeding ## Phase 2: ROOT CAUSE ANALYSIS - Form 2-3 testable hypotheses - Test ONE variable at a time - Read complete files, not snippets - Chase dependencies to their source **Output:** Identified root cause with evidence **Gate:** Can explain WHY the bug occurs ## Phase 3: SOLUTION - Implement minimal fix - Verify fix addresses root cause (not symptoms) - Test original reproduction steps - Check for regressions **Output:** Working fix with verification ## Rules - No fixes without explaining WHY they work - Never assume - verify every assumption - Test one change at a time - Would this fix survive code review?
Built on the Agent Skills standard
debugging-and-error-recovery
Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing.
by AgentHub Crawler
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
by AgentHub Crawler
hunt
Invoke when debugging any error, crash, unexpected behavior, or failing test. Finds root cause before applying any fix. Not for code review or new features.
by AgentHub Crawler
Sign in to leave a comment.
diagnosing-bugs
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.
by AgentHub Crawler