skills/debug/SKILL.md
Guide systematic debugging through hypothesis generation, evidence collection, and verification. Uses scientific method for root cause analysis.
npx skillsauth add thoreinstein/agents debugInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Systematic debugging through hypothesis generation, evidence collection, and verification.
Provide as much of the following as available:
Problem Statement
Context
Initial Hypotheses (if any)
Clearly define:
Generate ranked hypotheses:
For each hypothesis, plan:
Investigate systematically:
Synthesize findings:
Run these investigation tracks in parallel where possible:
| Track | Focus | | ------------ | -------------------------------------------- | | Codebase | Explore structure, find related code | | History | Recent changes, blame, related commits | | Patterns | Search for similar code, error handling | | External | Documentation, known issues, similar reports |
Produce a debug session report following the template in references/debug-session-template.md.
The report should include:
Problem: /api/users endpoint times out ~10% of requests
Hypotheses:
H1: Database query is slow (70% likely)
Evidence for: Timeout correlates with high DB load
Evidence against: None yet
Test: Check query execution time
H2: Connection pool exhaustion (20% likely)
Evidence for: Happens under load
Evidence against: Pool metrics look normal
Test: Monitor pool during timeout
H3: External service dependency (10% likely)
Evidence for: None
Evidence against: No external calls in this endpoint
Test: Trace request path
Investigation:
10:15 - Checked slow query log → found users query taking 2-5s
10:22 - git blame on users.go → query changed 3 days ago
10:28 - Compared old vs new query → missing index on new column
10:35 - Confirmed: new filter column not indexed
Root Cause: Query added filter on last_login column which lacks an index. Under load, full table scan causes timeouts.
Fix: Add index on users.last_login
Prevention: Add query plan review to PR checklist for database changes.
Begin by clearly defining the problem and generating hypotheses before investigating.
testing
Consult the whizz-mind knowledge base for documentation and answers. Use when the user asks questions that might be answered by stored documentation or when explicitly asked to check whizz-mind.
development
Comprehensive web quality audit covering performance, accessibility, SEO, and best practices. Use when asked to "audit my site", "review web quality", "run lighthouse audit", "check page quality", or "optimize my website".
testing
Ultra-deep multi-perspective analysis for complex architectural and strategic decisions requiring systematic reasoning across technical, business, user, and system perspectives
data-ai
Optimize for search engine visibility and ranking. Use when asked to "improve SEO", "optimize for search", "fix meta tags", "add structured data", "sitemap optimization", or "search engine optimization".