# Debug Issue

> Diagnose runtime errors, exceptions, and failing tests. Triggers on: debug issue, fix bug, analyze traceback, exception error, investigate failure, test breaking.

- Skill: `ashvin-to/debug-issue` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ashvin-to/debug-issue`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ashvin-to/debug-issue/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ashvin-to (https://skillmd.com/u/ashvin-to)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/ashvin-to/debug-issue

---


# Systematic Debugging Protocol

Isolate root causes using symbol search and targeted window reads before writing any code fixes.

## Workflow

| Step | Tool | Input | Purpose |
| :--- | :--- | :--- | :--- |
| 1 | `code_find` | `query="ErrorString"`, `grep=True` | Locate exact line numbers of error strings or symbols (~0 tokens) |
| 2 | `get_review_context` | `files=["failing_file.py"]` | Find callers, dependents, and impact radius of the failing module |
| 3 | `code_read` | `path`, `offset`, `limit` (max 50 lines) | Inspect code surrounding the error site |
| 4 | `logInteraction` | `topic`, `decision="Fixed root cause..."` | Log the verified root cause and fix |

## Rules

1. **No Superficial Patches**: Never swallow exceptions or comment out tests.
2. **Empirical Verification**: Inspect actual tracebacks before making code edits.
3. **Log Resolution**: Record why the underlying contract broke using `logInteraction`.

