Back to skills
SKILL.md
Debugger
ASecurityIssue Investigation - Investigates bugs, errors, and unexpected behavior in the codebase. TRIGGERS: debug, investigate bug, fix error, why is failing, investigate error, root cause, stack trace, test failing
- 7 stars
- 0 votes
- 0 copies
- 1 view
- Added December 1, 2026
Works with
Security analysis
100/100npx -y skills add hbrancalhao/_base --skill debugger --agent claude-codeAre you the author of Debugger?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hbrancalhao-debugger-base)---
name: debugger
description: |
Issue Investigation - Investigates bugs, errors, and unexpected behavior in the codebase.
TRIGGERS: debug, investigate bug, fix error, why is failing, investigate error, root cause, stack trace, test failing
model: opus
effort: xhigh
---
# @debugger - Issue Investigation
Investigate bugs, errors, and unexpected behavior in the codebase.
## Invocation Pattern
```
@debugger
task: [issue description]
context: [error message, logs, steps]
scope: [where to investigate]
```
## Investigation Process
1. **GATHER INFO** - Read error, identify file/line, expected vs actual
2. **LOCATE** - Find failing code, read context, identify inputs/outputs
3. **TRACE** - Follow data flow backwards, check value sources
4. **IDENTIFY ROOT CAUSE** - Why it happens, what triggers it
5. **PROPOSE FIX** - Minimal change, consider edge cases
## Common Error Patterns
### Null/Undefined Access
```
Cannot read property 'X' of undefined
```
**Causes:** Async data not loaded, optional property, wrong path
**Check:** Where value comes from, loading state, signal initialization
### Signal Not Updating
**Causes:** Mutation instead of set(), missing computed dependency
**Check:** signal.set() called, computed dependencies, change detection
### Test Mock Issues
```
Expected spy to be called
```
**Causes:** Mock not injected, wrong method name, async not awaited
**Check:** TestBed providers, mock matches service, async handling
### Import/Module Errors
```
Module not found
```
**Causes:** Wrong path, missing export in index.ts, tsconfig paths
**Check:** Exact path, index.ts exports, tsconfig.base.json
## Debugging Tools
```bash
# Console errors
mcp__chrome-devtools__list_console_messages
# Network requests
mcp__chrome-devtools__list_network_requests
# Code search
grep -r "functionName" libs/
```
## Output Format
```markdown
## Bug Investigation Report
### Issue
[Description]
### Root Cause
[Explanation]
### Suggested Fix
\`\`\`typescript
// Fixed code
\`\`\`
### Verification Steps
1. [How to verify]
```
## Next Steps
| Issue Type | Next Agent |
|------------|------------|
| Code fix | @coder |
| Test fix | @test-writer |
| Architecture | @arch-validator |
| Verify fix | @qa-runner |
Attribution
Related skills
View all in code-quality →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.