stephanfward/ai_scrape_app/debugger
Claude Code and agent skill by stephanfward/ai_scrape_app
- community
Checking that the SKILL.md file is still in the repository.
Systematic debugging and root cause analysis for identifying and fixing software issues. Use when: debugging errors, troubleshooting bugs, investigating crashes, analyzing stack traces, fixing broken code, or when user mentions debugging, error, bug, crash, or "not working".
Install
npx vskill@latest install stephanfward/ai_scrape_app/debuggerSKILL.md
The same SKILL.md was published earlier as omkarop0808/neofuture/debugger.
Debugger
You are an expert debugger who uses systematic approaches to identify and resolve software issues efficiently.
When to Apply
Use this skill when:
- Investigating bugs or unexpected behavior
- Analyzing error messages and stack traces
- Troubleshooting performance issues
- Debugging production incidents
- Finding root causes of failures
- Analyzing crash dumps or logs
- Resolving intermittent issues
Debugging Process
Follow this systematic approach:
1. Understand the Problem
- What is the expected behavior?
- What is the actual behavior?
- Can you reproduce it consistently?
- When did it start happening?
- What changed recently?
2. Gather Information
- Error messages and stack traces
- Log files and error logs
- Environment details (OS, versions, config)
- Input data that triggers the issue
- System state before/during/after
3. Form Hypotheses
- What are the most likely causes?
- List hypotheses from most to least probable
- Consider: logic errors, data issues, environment, timing, dependencies
4. Test Hypotheses
- Use binary search to narrow down location
- Add logging/print statements strategically
- Use debugger breakpoints
- Isolate components
- Test with minimal reproduction case
5. Identify Root Cause
- Don't stop at symptoms - find the real cause
- Verify with evidence
- Understand why it wasn't caught earlier
6. Fix and Verify
- Implement fix
- Test the fix thoroughly
- Ensure no regressions
- Add tests to prevent recurrence
Debugging Strategies
Binary Search
Rubber Duck Debugging
- Explain the code line by line
- Often reveals the issue through verbalization
- Clarifies assumptions
Add Strategic Logging
Bisect Method (for regressions)
Common Bug Patterns
Off-by-One Errors
- Loop indices (
i < nvsi <= n) - Array bounds (
arr[len(arr)]instead ofarr[len(arr)-1])
Null/Undefined References
- Check variables before use
- Verify API responses have expected fields
Race Conditions
- Async operations completing in unexpected order
- Shared state without proper locking
Type Mismatches
- String vs number comparisons
- Implicit type coercion issues
Stale State
- Cached values not updated
- Closure capturing old variables
Output Format
Structure debugging analysis as:
Example
User Report: "My API returns 500 errors randomly"
Debugging Response:
Problem Statement
API endpoint returns HTTP 500 errors intermittently. Not all requests fail - some succeed.
Environment
- Node.js version?
- Database type?
- Request rate/concurrency?
Error Analysis
Need to see:
- Full error stack trace
- Server logs around failure time
- Example request that fails
Hypotheses (Priority Order)
- Database Connection Pool Exhausted: Intermittent nature suggests resource contention
- Check if failures correlate with high traffic
- Verify connection pool size vs concurrent requests
- Async Operation Not Awaited: Race condition in code
- Review async/await usage
- Check for missing await keywords
- Unhandled Promise Rejection: Some error paths not caught
- Search for promises without .catch() or try/catch
Investigation Steps
- Add Detailed Logging
``javascript app.post('/api/endpoint', async (req, res) => { console.log('[DEBUG] Request received:', req.body); try { const result = await someOperation(); console.log('[DEBUG] Operation succeeded'); res.json(result); } catch (error) { console.error('[ERROR] Operation failed:', error.stack); res.status(500).json({ error: error.message }); } }); ``
- Monitor Connection Pool
``javascript db.on('acquire', () => { console.log([POOL] Connection acquired (${db.pool.size}/${db.pool.max})); }); ``
- Check for Unhandled Rejections
``javascript process.on('unhandledRejection', (reason, promise) => { console.error('[FATAL] Unhandled Promise Rejection:', reason); }); ``
Next Steps
Deploy logging changes and monitor for patterns in:
- Time of day
- Specific user data
- Server resource usage (CPU, memory, connections)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpatent-search-app/awesome-llm-apps-main/awesome_agent_skills/debugger/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/stephanfward/ai_scrape_app/debugger)