error-handling

error-handling is a skill for Claude Code from oborchers/fractional-cto. It costs 64 tokens per session (841 once invoked), scanned A, original, MIT.

A set of guidance for designing responses to failures in online applications. It covers validation errors, missing permissions, expired sessions, offline use, conflicting edits, rate limits, and server failures.

In plain words
What is it for?
Use it to review error pages, field errors, permission-denied screens, session-expiry warnings, offline states, concurrent-edit conflicts, rate-limit messages, and server-error recovery.
Why use it?
It helps replace vague messages such as “Something went wrong” with explanations and useful next steps. This lets users recover from problems or understand what they can do instead.

Skill for Claude Code

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

Part of the saas-design-principles plugin — 13 skills, 1 command, 1 agent shipped together

Good fit Use it to review error pages, field errors, permission-denied screens, session-expiry warnings, offline states, concurrent-edit conflicts, rate-limit messages, and server-error recovery.

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

Made for: Claude Code.

Or install saas-design-principles, the plugin that ships this one along with the rest of its 13 skills, 1 command, 1 agent.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/oborchers/fractional-cto/error-handling"><img src="https://agentmods.dev/badge/skills/oborchers/fractional-cto/error-handling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 841 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.00064 $0.00841
Opus 5.5 $0.00026 $0.00336
Sonnet 5.5 $0.00013 $0.00168
Haiku 4.5 $0.00006 $0.00084

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

Security

Grade A, and why

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

saas-design-principles/skills/error-handling/SKILL.md · 92 lines

How it starts

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

The Full Taxonomy of What Goes Wrong

Error handling in SaaS extends far beyond "something went wrong" modals. A production-ready application must account for every failure mode with specific, actionable responses.

Validation Errors

Surface inline, below the specific field, with red borders and actionable text.

Never use toasts for validation errors. Toasts stack, auto-dismiss before reading, and force users to hunt for the relevant field.

Permission Errors (403)

Must explain what the user can't do, why, and what they can do about it.

Bad Good
"Access denied" "Only workspace admins can manage billing. Request access from @admin-name"
"Contact your administrator" Show who has the required permission + a "Request Access" button
"Forbidden" Suggest alternative actions the user CAN take

Three response options to offer:

  1. Show who has the required permission
  2. Provide a "Request Access" button
  3. Suggest alternative actions

Session Expiry

Special care required. Jared Spool documented a case where a user completed a purchase, opened another tab, returned to find "Your session expired" — with no clarity on whether the purchase completed.

The principle: Always clearly communicate what was saved and what was lost.

Requirements:

  • Show a warning modal with a countdown timer BEFORE expiration
  • Include both "Continue Session" and "Log Out" buttons
  • After auto-logout, display an inline notification on the login page explaining what happened
  • Never leave ambiguity about what data was preserved

For additional session management guidance (adaptive MFA, auth flows), see the authentication skill.

Concurrent Edit Conflicts

The deepest technical-UX intersection. Figma's approach: model documents as property-level maps.

Resolution strategy:

  • Two users changing different properties on the same object = no conflict
  • Two users changing the same property = last-write-wins
  • This is simpler than Operational Transformation or full CRDTs, and sufficient for most SaaS products

Read the full file on GitHub · 92 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 First seen · 92 lines · 64 tokens per session scan A a0ca35311358

Subscribe to this mod's changes

error-handling is a skill published in the GitHub repository oborchers/fractional-cto (32 stars, last pushed 5d ago), licensed MIT. It adds 64 tokens to every session and 841 once invoked, about $0.0003 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-10-13.