/saas-design-principles:error-handlingfrom saas-design-principles
Guides building and reviewing full-spectrum SaaS error handling: validation, permissions, session expiry, concurrent edits, network failures, and rate limiting with user-facing patterns.
Ships in saas-design-principles. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
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.
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:
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:
For additional session management guidance (adaptive MFA, auth flows), see the authentication skill.
The deepest technical-UX intersection. Figma's approach: model documents as property-level maps.
Resolution strategy:
UI requirements:
Graceful degradation is mandatory.
Rules:
Working implementations in examples/:
examples/error-states.md — Permission denied (403), offline banner with action queue, server error (500) with retry, and rate limiting (429)When reviewing or building error handling:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub oborchers/fractional-cto --plugin saas-design-principles13 skills in this plugin
/accessibilityThis skill should be used when the user is building or reviewing accessibility (a11y), WCAG 2.2 AA compliance, keyboard navigation, focus management, screen reader support, ARIA attributes, color contrast, or SPA accessibility. Covers legal requirements, accessible component primitives, and the unique focus challenges of single-page applications./authenticationThis skill should be used when the user is building or reviewing login flows, magic links, SSO (SAML/OIDC), multi-factor authentication (MFA), OTP input fields, password reset, or session management. Covers the modern auth stack hierarchy, MFA fatigue prevention, session expiry UX, and GDPR compliance for authentication./data-tablesThis skill should be used when the user is building or reviewing data tables, pagination, column alignment, bulk actions, sorting, filtering, row selection, or table-to-card responsive patterns. Covers the pagination vs infinite scroll decision, DataTable vs IndexTable patterns, and column default strategy./design-tokensThis skill should be used when the user is building or reviewing theming systems, design tokens, dark mode implementation, CSS custom properties, color naming conventions, or theme switching architecture. Covers the three-tier token model (primitive/semantic/component), purpose-based naming, and the DTCG specification./form-designThis skill should be used when the user is building or reviewing form validation, inline validation, auto-save vs explicit save patterns, form error messages, multi-step wizards, toggle switches, or input fields. Covers the "reward early, punish late" validation strategy and form UX best practices./notification-hierarchyThis skill should be used when the user is building or reviewing toast notifications, banners, modal dialogs, inline messages, snackbars, or alert systems. Covers the four-tier notification hierarchy, feedback patterns, success and error messaging, and alert fatigue prevention.Other plugins' skills for the same job