thoreinstein/agents/debug
Claude Code and agent skill by thoreinstein/agents
- community
Checking that the SKILL.md file is still in the repository.
Guide systematic debugging through hypothesis generation, evidence collection, and verification. Uses scientific method for root cause analysis.
Install
npx vskill@latest install thoreinstein/agents/debugSKILL.md
Debug
Systematic debugging through hypothesis generation, evidence collection, and verification.
When to Use This Skill
- When facing a bug with unclear root cause
- When initial debugging attempts haven't resolved the issue
- When you need structured investigation rather than guesswork
- When documenting a debugging session for future reference
Input
Provide as much of the following as available:
- Problem Statement
- What's the expected behavior?
- What's the actual behavior?
- Steps to reproduce
- Context
- Recent changes that might be related
- Error messages or logs
- Environment details (OS, versions, etc.)
- Initial Hypotheses (if any)
- What do you think might be causing it?
- What have you already ruled out?
Debugging Framework
Step 1: Problem Definition
Clearly define:
- Expected vs actual behavior
- Reproduction steps (minimal if possible)
- Scope: when does it happen, when doesn't it?
- Impact: severity and affected users/systems
Step 2: Hypothesis Generation
Generate ranked hypotheses:
- List possible causes
- Assign probability (likely, possible, unlikely)
- Note evidence for and against each
- Identify what would confirm or rule out each
Step 3: Investigation Plan
For each hypothesis, plan:
- What evidence to look for
- Where to look (files, logs, git history)
- What tests would confirm/deny
- Order of investigation (highest probability first)
Step 4: Evidence Collection
Investigate systematically:
- Search codebase for relevant patterns
- Review git history for recent changes
- Examine logs and error messages
- Document findings with timestamps
Step 5: Root Cause Identification
Synthesize findings:
- Identify the root cause (not just symptoms)
- Note contributing factors
- Document code locations involved
- Explain the causal chain
Investigation Tracks
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 |
Output
Produce a debug session report following the template in references/debug-session-template.md.
The report should include:
- Problem statement with reproduction steps
- Hypotheses with evidence assessment
- Investigation log with timestamps
- Root cause and contributing factors
- Recommended fix and prevention measures
Constraints
- Hypotheses first - generate hypotheses before diving into code
- Evidence-based - support conclusions with specific evidence
- Document as you go - keep an investigation log
- Root cause, not symptoms - dig until you find the actual cause
- Prevention - recommend how to prevent recurrence
Example
Example: Intermittent API Timeout
Problem: /api/users endpoint times out ~10% of requests
Hypotheses:
Investigation:
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.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/debug/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 2 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thoreinstein/agents/debug)