Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add vanja-emichi/a0_agent_skills --skill debugging-and-error-recoverygit clone --depth 1 https://github.com/vanja-emichi/a0_agent_skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/vanja-emichi/a0_agent_skills/debugging-and-error-recovery)<a href="https://agentmods.dev/skills/vanja-emichi/a0_agent_skills/debugging-and-error-recovery"><img src="https://agentmods.dev/badge/skills/vanja-emichi/a0_agent_skills/debugging-and-error-recovery/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/vanja-emichi/a0_agent_skills/debugging-and-error-recovery"><img src="https://agentmods.dev/badge/skills/vanja-emichi/a0_agent_skills/debugging-and-error-recovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00043 | $0.02676 |
| Opus 5 | $0.00022 | $0.01338 |
| Sonnet 5 | $0.00009 | $0.00535 |
| Haiku 4.5 | $0.00004 | $0.00268 |
Grade A, and why
debugging-and-error-recovery scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
→ Confirm the resource exists via code_execution_tool (curl/fetch) How it starts
The opening of the file, as written. The whole thing — 385 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Debugging and Error Recovery
Overview
Debug systematically, not randomly. The most common debugging mistake is jumping to a fix before understanding the problem. Premature fixes mask symptoms, introduce new bugs, and waste time. The correct approach: reproduce the bug, read the error carefully, form a hypothesis, verify it, fix the root cause, confirm the fix.
When to Use
- Encountering an error message or exception
- Tests are failing unexpectedly
- A feature works in some cases but not others
- Recent changes broke something that was working
- Runtime behavior doesn't match what the code suggests
The Debugging Protocol
Step 1: Read the Error (Don't Skim)
The error message contains the answer most of the time. Read it in full:
READ THE ERROR:
→ What is the error type? (TypeError, ReferenceError, 404, etc.)
→ What is the exact message?
→ What file and line number?
→ What is the full stack trace (not just the first line)?
→ Is there a "caused by" or inner exception?
Use code_execution_tool to capture full error output:
# Run with full stack trace
node --stack-trace-limit=50 script.js 2>&1
# Python with full traceback
python -m traceback script.py 2>&1
# Capture test failures in full
npx vitest run --reporter=verbose 2>&1
Step 2: Reproduce Reliably
Before fixing, make the bug reproducible on demand:
REPRODUCTION QUESTIONS:
- Can I trigger this consistently?
- What exact inputs/conditions trigger it?
- Does it happen in isolation, or only with other code?
- Does it happen in test environment? Production? Both?
- Did it ever work? If so, what changed?
If you can't reproduce it, you can't verify when it's fixed. Use code_execution_tool to write a minimal reproduction:
// Minimal reproduction — remove everything not needed to trigger the bug
const { processTask } = require('./task-processor');
const task = { id: '123', title: '', status: 'pending' };
const result = processTask(task);
console.log(result); // Should trigger the bug
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 385 lines · 43 tokens per session scan A e509470d0d37
debugging-and-error-recovery is a skill published in the GitHub repository vanja-emichi/a0_agent_skills (5 stars, last pushed 1mo ago), licensed MIT. It adds 43 tokens to every session and 2,676 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
systematic-debugging
Methodical bug investigation and root cause analysis.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.
Debugging
Systematic root-cause isolation and minimal fix proposal for software bugs.
systematic-debugging
Systematic Debugging Methodology: Provides structured approaches to diagnose and fix bugs in any technology stack. Covers scientific debugging method, binary search for bugs, log analysis, memory/performance debugging, distributed system debugging, and production incident investigation. Use whenever the user is stuck…
Error Debugging
Systematic approach to debugging errors in any codebase.
trace
Use when encountering bugs, test failures, runtime errors, broken builds, or "this doesn't work" reports. Systematic root-cause analysis before any patch — never blind-patches symptoms. Standalone, ends with a final-integration review of the fix. Trigger with /hyperflow:trace, "debug this", "find the root cause", "why…