error-handling-recovery

error-handling-recovery is a skill for Claude Code, Codex from sanky369/vibe-building-skills. It costs 140 tokens per session (2,054 once invoked), scanned A, original, MIT.

A guide for designing and implementing the user experience when an application fails. It covers validation, network, permission, system, and not-found errors, including clear messages and recovery actions.

In plain words
What is it for?
Use it to audit error states, rewrite error messages, handle offline or network failures, build permission-denied and 404 pages, and add recovery workflows.
Why use it?
It prevents users from being blamed or left stuck when something goes wrong. Each failure is given a suitable message, location, and way to continue.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit error states, rewrite error messages, handle offline or network failures, build permission-denied and 404 pages, and add recovery workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sanky369/vibe-building-skills/error-handling-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 sanky369/vibe-building-skills --skill error-handling-recovery
Clone the repo
git clone --depth 1 https://github.com/sanky369/vibe-building-skills

Made for: Claude Code, Codex.

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 error-handling-recovery

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sanky369/vibe-building-skills/error-handling-recovery"><img src="https://agentmods.dev/badge/skills/sanky369/vibe-building-skills/error-handling-recovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 140 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,054 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.00140 $0.02054
Opus 5 $0.00070 $0.01027
Sonnet 5 $0.00028 $0.00411
Haiku 4.5 $0.00014 $0.00205

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

Security

Grade A, and why

error-handling-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 13d 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/frontend-design/error-handling-recovery/SKILL.md · 120 lines

How it starts

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

Error Handling & Recovery

Turn every failure into a guided path forward: find each way the app can fail, give it a specific human message, a correct placement, and at least one recovery action. The prime directive: never blame the user, and never leave them at a dead end — every error state ships with a way out. Deliver an error-state matrix covering the failure modes plus the implemented components and copy — not messaging guidelines alone.

When to use / when not to

Use for: error message copy, validation UX, network/offline failure handling, permission-denied and 404 pages, recovery workflows, graceful degradation, error accessibility.

Hand off instead when the real need is:

  • Preventing the wait/failure in the first place (retries as performance, optimistic rollback mechanics) → skills/frontend-design/performance-optimization
  • The loading half of the async lifecycle (skeletons, spinners, empty states) → skills/frontend-design/loading-states — this skill owns what happens when loading fails
  • Error animation timing → skills/frontend-design/interaction-physics
  • Full accessibility audit beyond error surfaces → skills/frontend-design/accessibility-excellence

Step 0 — Inspect the codebase, then ask only what's left

  1. Harvest existing error surfaces: grep for catch, .catch(, onError, error state variables, toast.error, alert(, error boundary components, and string literals like "error", "failed", "wrong", "invalid". Collect the actual message strings — the current copy is your before-picture.
  2. Map failure classes present in the app: forms (validation), API calls (network/server), auth'd resources (permission), routing (404), plus anything domain-specific (payment declines, quota limits, file-type rejections).
  3. Find the gaps: catch blocks that swallow errors silently, fetches with no error branch, forms that only style the border red, missing error boundaries around independent sections, no offline handling.
  4. Check a11y wiring: search for role="alert", aria-live, aria-invalid, aria-describedby. Absence = automatic fix items.

Read the full file on GitHub · 120 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. 13d ago First seen · 120 lines · 140 tokens per session scan A a5f51497efaf

Subscribe to this mod's changes

error-handling-recovery is a skill published in the GitHub repository sanky369/vibe-building-skills (30 stars, last pushed 2mo ago), licensed MIT. It adds 140 tokens to every session and 2,054 once invoked, about $0.0007 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-30.

Related

Other skills, from other repositories