awesome-error-standards

awesome-error-standards is a skill for Claude Code from khasky/awesome-agent-skills. It costs 46 tokens per session (2,270 once invoked), scanned A, original, MIT.

A guide for handling failures consistently in an application or API. It distinguishes expected operational problems, such as timeouts or invalid input, from programmer errors that indicate a bug.

In plain words
What is it for?
Use it when adding error handling, reviewing failure paths, designing an API error format, or deciding whether an error should be retried, reported, or crash the process.
Why use it?
It makes failures easier to understand and keeps services from hiding bugs or exposing sensitive internal details. It also helps define consistent error responses and HTTP status codes.

Skill for Claude Code

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

Part of the awesome-agent-skills plugin — 49 skills shipped together

Good fit Use it when adding error handling, reviewing failure paths, designing an API error format, or deciding whether an error should be retried, reported, or crash the process.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/khasky/awesome-agent-skills/awesome-error-standards
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 khasky/awesome-agent-skills --skill awesome-error-standards
Clone the repo
git clone --depth 1 https://github.com/khasky/awesome-agent-skills

Made for: Claude Code.

Or install awesome-agent-skills, the plugin that ships this one along with the rest of its 49 skills.

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 awesome-error-standards

README.md
[![agentmods](https://agentmods.dev/badge/skills/khasky/awesome-agent-skills/awesome-error-standards/github.svg)](https://agentmods.dev/skills/khasky/awesome-agent-skills/awesome-error-standards)
Your own site
<a href="https://agentmods.dev/skills/khasky/awesome-agent-skills/awesome-error-standards"><img src="https://agentmods.dev/badge/skills/khasky/awesome-agent-skills/awesome-error-standards/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 awesome-error-standards

Your own site · 80×15
<a href="https://agentmods.dev/skills/khasky/awesome-agent-skills/awesome-error-standards"><img src="https://agentmods.dev/badge/skills/khasky/awesome-agent-skills/awesome-error-standards.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,270 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00046 $0.02270
Opus 5.5 $0.00018 $0.00908
Sonnet 5.5 $0.00009 $0.00454
Haiku 4.5 $0.00005 $0.00227

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

Security

Grade A, and why

awesome-error-standards 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 5d 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/awesome-error-standards/SKILL.md · 132 lines

How it starts

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

Error Handling Patterns

Apply consistent patterns for throwing, catching, logging, and surfacing errors so failures are predictable and debuggable without leaking internals.

When to Activate

  • Implementing or refactoring error handling in an API or app
  • User asks for "error handling", "how to handle errors", or "consistent errors"
  • Reviewing code for proper failure handling
  • Defining or documenting error contract for a service or API

Core principles

  • Operational vs programmer errors — Classify first. Operational failures (network timeout, invalid input, missing record) are expected: handle, retry, or surface them. Programmer errors (undefined access, broken invariant) are bugs: crash loudly or restart the process rather than limping on with corrupted state.
  • Make the bug impossible, not just fixed — A single-point fix stops one path; defense in depth stops the class. Prefer prevention left of production, in order: (1) make invalid states unrepresentable in the type system (discriminated unions, branded/opaque types) so bad states won't compile; (2) validate at the boundary; (3) runtime guards; (4) error boundaries. For a high-value invariant, guard it at more than one layer and test that bypassing an outer layer still gets caught by an inner one (deliberately skip Layer 1, verify Layer 2 catches it; confirm mocks don't silently disable a validation). Rate every fix on a ladder of rungs. Control: the mistake cannot be made (the type, the API shape, the removed option). Warning: it announces itself at the moment it is made (a compile error, a failed validation, a lint rule). Detection: it is found later (tests, monitoring, alerts). The zero rung is a comment, a doc line or "be careful"; it is not a fix and does not count. Monitoring is not prevention: an alert on a bug that already reached users has moved the bug, not stopped it. A fix report names what it made impossible and what it deliberately left possible.
  • Fail at startup, not in production — Validate all required config, env vars, and connections at init and refuse to boot on failure, rather than discovering a missing value on the first request.
  • Fail fast — Validate inputs and preconditions early; throw or return errors with clear messages. Do not continue with invalid state.
  • Do not swallow — Avoid empty catch or broad catch that ignores; log and/or rethrow or return a result type. Propagate with context.
  • Structured errors — Use a consistent shape (e.g. code, message, details) for API errors and for logs. Typed error classes or codes help callers handle by type.
  • User vs developer — User-facing messages are safe and actionable; developer-facing detail (stack, internal message, request id) in logs or debug only. Never expose stack traces or SQL to end users.

Read the full file on GitHub · 132 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. 5d ago Changed c05c4e79b6cd
  2. 7d ago Changed 31f4fc303fe9
  3. 15d ago Changed · +1 lines f8f45971bd93
  4. 1mo ago Changed · -34 tokens per session 66a3118eeee3
  5. 1mo ago Changed 78462d231086
  6. 1mo ago Changed · -17 tokens per session f8a8b14cb001
  7. 1mo ago First seen · 131 lines · 97 tokens per session scan A 7ace95a0ed8b

Subscribe to this mod's changes

awesome-error-standards is a skill published in the GitHub repository khasky/awesome-agent-skills (17 stars, last pushed 6d ago), licensed MIT. It adds 46 tokens to every session and 2,270 once invoked, about $0.0002 per session on Opus 5.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

modular-monolith

Expert Modular Monolith architecture assistance covering bounded module boundaries, internal public APIs, decoupled package structures, and single-deployment velocity. Use when scaling monolith development teams, preventing spaghetti code, or preparing for future microservice extraction.

G1Joshi/Agent-Skills · 52 tokens

actix

Expert Actix Web assistance covering async actors, routing, extractors, middleware, and high-performance Rust web services. Use when building blazing fast REST APIs or microservices in Rust.

G1Joshi/Agent-Skills · 39 tokens

remix

Expert Remix (React Router v7) assistance covering Loaders, Actions, nested routing, optimistic UI, and Web Fetch standards. Use when developing resilient, full-stack React web applications.

G1Joshi/Agent-Skills · 40 tokens

api-gateway

Expert API Gateway architecture assistance covering reverse proxies, request routing, rate limiting, authentication offloading, and SSL termination. Use when designing API gateways, configuring Kong/Envoy/Traefik, securing microservice entrypoints, or managing edge routing.

G1Joshi/Agent-Skills · 54 tokens

cqrs

Expert CQRS (Command Query Responsibility Segregation) assistance covering command handlers, read projections, event denormalization, and asymmetric scaling. Use when separating read and write models, optimizing read performance, or pairing with Event Sourcing.

G1Joshi/Agent-Skills · 50 tokens

domain-driven-design

Expert Domain-Driven Design (DDD) assistance covering strategic bounded contexts, ubiquitous language, aggregates, value objects, domain events, and repository patterns. Use when modeling complex business domains, decomposing monoliths into microservices, or implementing rich domain models.

G1Joshi/Agent-Skills · 55 tokens