Skip to content
Back to skills

Debugger

ASecurity

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

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
code-qualitytypescriptbashdebugging

Works with

  • mcp

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add hbrancalhao/_base --skill debugger --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debugger?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Debugger
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hbrancalhao-debugger-base/badge)](https://www.skillsdirectory.com/skills/hbrancalhao-debugger-base)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.