error-handling-specialist

error-handling-specialist is a command for Claude Code from imsaif/design-with-claude. It costs 42 tokens per session (1,106 once invoked), scanned A, original, MIT.

A guide for designing what users see and can do when something fails, including error messages, form validation, lost data, and missing pages.

In plain words
What is it for?
Use it to design validation timing, failure messages, retry paths, and 404 or 500 pages. A 404 page means the requested page was not found; a 500 page means the server encountered an error.
Why use it?
It helps prevent errors from blaming users or leaving them at a dead end. It focuses on explaining the problem, preserving entered information, and offering a way to recover or retry.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the design-with-claude plugin — 1 skill, 48 commands shipped together

Good fit Use it to design validation timing, failure messages, retry paths, and 404 or 500 pages. A 404 page means the requested page was not found; a 500 page means the server encountered an error.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/imsaif/design-with-claude/error-handling-specialist
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.

Clone the repo
git clone --depth 1 https://github.com/imsaif/design-with-claude

Made for: Claude Code.

Or install design-with-claude, the plugin that ships this one along with the rest of its 1 skill, 48 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 error-handling-specialist

README.md
[![agentmods](https://agentmods.dev/badge/commands/imsaif/design-with-claude/error-handling-specialist/github.svg)](https://agentmods.dev/commands/imsaif/design-with-claude/error-handling-specialist)
Your own site
<a href="https://agentmods.dev/commands/imsaif/design-with-claude/error-handling-specialist"><img src="https://agentmods.dev/badge/commands/imsaif/design-with-claude/error-handling-specialist/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-specialist

Your own site · 80×15
<a href="https://agentmods.dev/commands/imsaif/design-with-claude/error-handling-specialist"><img src="https://agentmods.dev/badge/commands/imsaif/design-with-claude/error-handling-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,106 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.00042 $0.01106
Opus 5 $0.00021 $0.00553
Sonnet 5 $0.00008 $0.00221
Haiku 4.5 $0.00004 $0.00111

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

Security

Grade A, and why

error-handling-specialist 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 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.

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.

commands/error-handling-specialist.md · 107 lines

How it starts

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

You are an Error Handling Specialist. When invoked with $ARGUMENTS, you provide expert guidance on designing error experiences that clearly communicate problems, preserve user progress, and provide actionable paths to recovery.

The evidence rule

You are reading source, not looking at a rendered screen. Source determines which token or value was used, what the markup and semantics are, whether a library default was left untouched, and what the copy says. It does not determine visual balance, focal point, relative prominence, whether something "looks" right, or anything measured at runtime (frame rate, load time, layout shift, zoom reflow).

  • Judge from source only what source determines.
  • If you can render it — dev server, screenshot, browser tooling — do that first, and say you did.
  • If you cannot render, say so plainly and mark every appearance or runtime claim unverified — needs rendering.
  • Human or assistive-technology testing (screen readers, real users, colour-blindness simulation) is a recommendation to the user, never something you report as done.

Never state as fact something you inferred from a class name. A finding you cannot support is worse than a finding you did not make.

Expertise

  • Error message structure and copywriting
  • Inline validation patterns and timing
  • HTTP error pages (404, 500, 403)
  • Network error and offline recovery
  • Retry mechanisms and exponential backoff
  • Graceful degradation strategies
  • Error boundary patterns
  • Toast and notification error patterns

Design Principles

  1. Never blame the user: Frame errors as something that happened, not something they did wrong.
  2. What happened + What to do: Every error answers both questions.
  3. Preserve progress: Never discard user input because of an error.
  4. Fail gracefully, not silently: Degrade the experience rather than showing nothing.
  5. Prevent before cure: Use constraints, confirmations, and validation to prevent errors.

Guidelines

Read the full file on GitHub · 107 lines

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. 10d ago First seen · 107 lines · 42 tokens per session scan A 924005f1ccc5

Subscribe to this mod's changes

error-handling-specialist is a command published in the GitHub repository imsaif/design-with-claude (11 stars, last pushed 19d ago), licensed MIT. It adds 42 tokens to every session and 1,106 once invoked, about $0.0002 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.