debugging-and-error-recovery

debugging-and-error-recovery is a skill for Claude Code from shennawardana23/skillme. It costs 92 tokens per session (1,826 once invoked), scanned A, original, Apache-2.0.

A process for handling unexpected test failures, build problems, runtime errors, and production incidents.

In plain words
What is it for?
Use it to classify failures, investigate regressions by narrowing down changes, design safe fallback behavior, and add or remove debugging instrumentation at the right time.
Why use it?
It prevents new work from hiding or worsening an existing problem by preserving evidence, finding the root cause, fixing it, and checking that it does not return.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the skillme plugin — 137 skills, 2 commands shipped together

Good fit Use it to classify failures, investigate regressions by narrowing down changes, design safe fallback behavior, and add or remove debugging instrumentation at the right time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shennawardana23/skillme/debugging-and-error-recovery
Install

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.

Any agent
npx skills add shennawardana23/skillme --skill debugging-and-error-recovery
Clone the repo
git clone --depth 1 https://github.com/shennawardana23/skillme

Made for: Claude Code.

Or install skillme, the plugin that ships this one along with the rest of its 137 skills, 2 commands.

Wrote 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.

agentmods badge for debugging-and-error-recovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/shennawardana23/skillme/debugging-and-error-recovery/github.svg)](https://agentmods.dev/skills/shennawardana23/skillme/debugging-and-error-recovery)
Your own site
<a href="https://agentmods.dev/skills/shennawardana23/skillme/debugging-and-error-recovery"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/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.

agentmods 80×15 button for debugging-and-error-recovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/shennawardana23/skillme/debugging-and-error-recovery"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/debugging-and-error-recovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,826 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.01826
Opus 5 $0.00046 $0.00913
Sonnet 5 $0.00018 $0.00365
Haiku 4.5 $0.00009 $0.00183

Measured 11d ago against content hash 6884746c38a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

debugging-and-error-recovery scanned grade A with 0 findings 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 11d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/debugging-and-error-recovery/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Debugging and Error Recovery

Where debug is a tight four-phase loop for one already-identified bug, this skill is the surrounding policy: what to do the instant something breaks, which triage tree applies to which failure class, and two extra practices that class-specific triage requires — bisection for regressions and safe-fallback design for degraded operation.

The stop-the-line rule

The instant something unexpected happens:

1. STOP adding features or making changes
2. PRESERVE evidence (error output, logs, repro steps)
3. DIAGNOSE using the triage tree for this failure class
4. FIX the root cause
5. GUARD against recurrence
6. RESUME only after verification passes

Don't push past a failing test or broken build to work on the next feature — errors compound, and an unfixed bug in step 3 makes everything built on top of it wrong too.

Triage trees by failure class

Test failure:

Did you change code the test covers?
├── YES → is the test or the code wrong?
│         ├── Test outdated → update the test
│         └── Code has a bug → fix the code
├── Changed unrelated code → likely a side effect: check shared state, imports, globals
└── Test was already flaky → check timing issues, order dependence, external dependencies

Build failure: type error → read it, check types at the cited location; import error → confirm the module exists and paths/exports match; config error → check build config syntax/schema; dependency error → check the manifest, reinstall; environment error → check runtime version/OS compatibility.

Runtime error: TypeError/nil dereference → trace where the value should have been set, not just where it was used; network/CORS error → check URLs, headers, server CORS config; render error/blank screen → check the error boundary, console, component tree; wrong behavior with no error → add logging at key points, verify data at each step.

Reproducing the non-reproducible

Cannot reproduce on demand:
├── Timing-dependent? → add timestamps around the suspected area; widen race windows with artificial delays; run under load to raise collision probability
├── Environment-dependent? → compare runtime/OS/env vars; compare data shape (empty vs populated); reproduce in CI where the environment is clean
├── State-dependent? → check for leaked state between tests/requests (globals, singletons, shared caches); run the scenario isolated vs. after other operations
└── Truly random? → add defensive logging at the suspected site; alert on the specific error signature; document conditions and revisit when it recurs

Read the full file on GitHub · 139 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 11d ago First seen · 139 lines · 92 tokens per session scan A 6884746c38a2

Subscribe to this mod's changes

debugging-and-error-recovery is a skill published in the GitHub repository shennawardana23/skillme (2 stars, last pushed 13d ago), licensed Apache-2.0. It adds 92 tokens to every session and 1,826 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

ego-lite-simplify

Find and implement evidence-backed simplifications in the ego-lite repository. Use when reviewing the codebase for dead code, duplicated state or APIs, speculative abstractions, unnecessary compatibility layers, hand-written infrastructure, excessive tests or documentation, or when the user asks to reduce code size or…

citrolabs/ego-lite · 68 tokens

coding-protocol

Risk-scaled repo execution and code-evidence protocol. Skip architecture-only work, explanation, contract-preserving prose, and status. Use for contract changes, debugging, code review, implementation plans, and Git mutation; mixed tasks: only those parts.

lencx/skills · 54 tokens

fix-bug

Resolves a single bug from any starting evidence — Dash0 telemetry (span / log / web event / RUM error link), raw stack trace, error message, code pointer (file:line), screen recording, Linear ticket URL, or free-text symptom. Classifies the input, triages complexity (Phase 0.5) to pick between a fast lane and a full…

mthines/agent-skills · 343 tokens

holistic-analysis

Forces a full holistic re-analysis when a fix or refactor isn't working. Instead of continuing to patch in isolation, this skill triggers a structured step-back analysis that traces the entire execution path end-to-end — from entry point to exit — analyzing each block, every contract boundary, and the full data flow.…

mthines/agent-skills · 224 tokens

ci-auto-fix

Diagnoses a failed CI check, classifies it with an explicit verdict (code-bug | workflow-bug | dep-bug | env-bug | flaky | unsure), confidence-gates the fix (>=90 auto, 80-89 ask, <80 escalate), applies it, pushes, and iteratively verifies until CI passes — reverting the last commit if a brand-new failure appears.…

mthines/agent-skills · 154 tokens