fefogarcia/approved-skills/deep-debug
Claude Code and agent skill by fefogarcia/approved-skills
- community
Checking that the SKILL.md file is still in the repository.
Multi-agent investigation for stubborn bugs. Use when: going in circles debugging, need to investigate browser/API interactions, complex bugs resisting normal debugging, or when symptoms don't match expectations. Launches parallel agents with different perspectives and uses Chrome tools for evidence gathering.
Install
npx vskill@latest install fefogarcia/approved-skills/deep-debugSKILL.md
Deep Debug - Multi-Agent Investigation
Status: Production Ready Last Updated: 2026-02-03 Dependencies: Chrome MCP tools (optional), debugger agent, code-reviewer agent
When to Use
- Going in circles - You've tried multiple fixes but nothing works
- Browser + API interaction bugs - Need to see Network tab, console logs
- Symptoms don't match expectations - Something deeper is wrong
- Complex state management bugs - React hooks, closures, race conditions
Commands
| Command | Purpose | |
|---|---|---|
/debug | Guided debugging workflow with evidence gathering and parallel investigation |
Quick Start
Or invoke naturally:
- "I'm stuck on this bug, can you do a deep investigation?"
- "This bug is resisting normal debugging"
- "I need you to really dig into this"
The Process
Phase 1: Gather Evidence (Before Hypothesizing)
For browser-related bugs, use Chrome MCP tools:
For backend bugs, gather:
- Error logs and stack traces
- Request/response payloads
- Database query logs
- Timing information
Phase 2: Launch Parallel Investigation (3 Agents)
Launch these agents simultaneously with the gathered evidence:
Agent 1: Execution Tracer (debugger)
Agent 2: Pattern Analyzer (code-reviewer)
Agent 3: Entry Point Mapper (Explore)
Phase 3: Cross-Reference Findings
After agents complete, look for:
| Signal | Meaning | |
|---|---|---|
| All 3 agree on root cause | High confidence - fix it | |
| 2 agree, 1 different | Investigate the difference | |
| All 3 different | Need more evidence |
Phase 4: Verify Fix
After implementing the fix, re-gather the same evidence to confirm:
- Network tab shows expected behavior
- Console has no errors
- State updates correctly
Real Example: Duplicate API Calls Bug
Evidence Gathered
Network tab showed 2 fetch requests for the same message.
Parallel Investigation Results
| Agent | Finding | |
|---|---|---|
| debugger | state.messages in useCallback deps causes callback recreation | |
| code-reviewer | Same finding + explained React pattern causing it | |
| Explore | Verified UI layer wasn't double-calling (ruled out) |
Root Cause (Consensus)
sendMessage useCallback had state.messages in dependency array. Every state update recreated the callback, causing duplicate calls during React re-renders.
Fix
Use stateRef to access current state without including in dependencies:
Common Bug Patterns This Catches
React Hook Issues
statein useCallback dependencies causing recreation- Missing dependencies causing stale closures
- useEffect running multiple times
API/Network Issues
- Duplicate requests (visible in Network tab)
- Race conditions between requests
- CORS failures
- Timeout handling
State Management Issues
- State updates not batching correctly
- Optimistic updates conflicting with server response
- Multiple sources of truth
Chrome Tools Quick Reference
| Tool | Use For | |
|---|---|---|
read_network_requests | See all fetch/XHR calls, duplicates, failures | |
read_console_messages | Errors, warnings, debug logs | |
read_page | Current DOM state | |
javascript_tool | Execute debug code in page context |
Tips for Success
- Evidence first, hypotheses second - Don't guess until you have concrete data
- Network tab is gold - Most frontend bugs show symptoms there
- Parallel agents save time - 3 perspectives at once vs sequential guessing
- Cross-reference findings - Agreement = confidence
- Verify with same evidence - Confirm fix with same tools that found bug
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 repositoryCheckingskills/deep-debug/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 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/fefogarcia/approved-skills/deep-debug)