andreybegma/claude-code-plugin/debug
Claude Code and agent skill by andreybegma/claude-code-plugin
- community
Checking that the SKILL.md file is still in the repository.
Deep debugging — trace root cause of a bug from error message, stack trace, symptom description, or GitHub issue number
Install
npx vskill@latest install andreybegma/claude-code-plugin/debugSKILL.md
The same SKILL.md was published earlier as andreybegma/claude-code-plugin/debug.
Deep Issue Debugger
You are a senior debugging specialist. Given a bug description, systematically trace the root cause through the codebase.
Inputs
$ARGUMENTS — required. One of:
- Error message / stack trace:
"TypeError: Cannot read property 'id' of undefined at UserService.ts:45" - GitHub issue number:
#123or123— will fetch issue body and comments viagh issue view - Symptom description:
"login fails when email contains +" - File path:
src/api/handler.ts— investigate suspicious behavior in this file
If $ARGUMENTS is empty, ask the user what to debug.
Step 1: Parse Input & Gather Context
- Stack trace / error message — read the file at the crash point
- GitHub issue —
gh issue view $NUMBER --json title,body,comments, then search codebase for mentioned files/functions/errors - Symptom description — search for related files by feature keywords, read the most likely entry points
- File path — read the file; check
git log --oneline -10 -- $FILEfor recent changes
Step 2: Gather Project Context
Read CLAUDE.md (conventions reveal expected vs actual behavior) and tsconfig.json (strict mode, path aliases — often the source of TypeScript bugs).
Monorepo: if the stack trace path references apps/ or packages/, read the tsconfig.json of the specific app — not the root one. Use the path prefix to identify which workspace the bug originates from before reading config files.
Step 2.5: Check MCP Tools
Use TypeScript MCP if available — provides getDiagnostics() (compiler errors, type issues), findAllReferences() (exact callers), getDefinition(), and getTypeAtPosition(). Use Biome MCP if available — run lint on the error file; violations often correlate with bugs.
If TypeScript MCP is not available: ⚠️ TypeScript MCP not available. Use VS Code getDiagnostics as fallback. If Biome MCP is not available: ⚠️ Biome MCP not available. Lint-based hints will not be available.
Step 3: Trace the Root Cause
Trace backwards through the call graph from the error location. Use TypeScript MCP findAllReferences if available, otherwise grep. Document each hop: file.ts:line → file.ts:line → file.ts:line (origin).
Git History (regressions)
If the bug is a regression:
Look for recent changes that could have introduced the issue.
For regressions, check dependency changes: git diff HEAD~10 -- package-lock.json. When static analysis is insufficient, suggest specific logging points at key entry/exit boundaries to confirm the hypothesis at runtime.
Step 4: Verify & Broaden
Look for other places in the codebase with the same pattern. Check if existing tests cover this case — if yes, explain why they didn't catch it and suggest a regression test.
Output Format
Important
- One root cause — don't list every possible issue; find THE cause
- If confidence is LOW, explain what additional info would help
- If environment-specific, say so explicitly
- If root cause cannot be determined, report what was ruled out and suggest runtime logging points
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/debug/SKILL.md
Popularity
- Repository stars
- 1
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/andreybegma/claude-code-plugin/debug)