error-states
Error States Skill
Purpose
Provides error handling patterns that maintain trust and guide users when things go wrong. Includes custom error pages, form validation states, loading indicators, offline fallbacks, and network error handling.
Core Rules
- Never blame the user — "We couldn't find that" not "Invalid request"
- Offer next steps — Always provide a way forward
- Keep branding — Error pages should match site design
- Be helpful — Search, popular links, contact info
- Log errors — Track 404s to fix broken links
- Accessible errors — Use ARIA labels and semantic HTML
- Loading feedback — Show spinners for async operations
- Network awareness — Handle offline states gracefully
- User-friendly messages — Translate HTTP codes to plain language
- Prevent error loops — Fail silently in error handlers
References
See the references/ directory for detailed implementations:
- error-pages.md — Custom 404 and 500 error pages with tracking
- form-errors.md — Inline field errors and error summary components
- loading-states.md — Loading spinners and offline fallback page
- empty-states.md — Empty state component with icons and actions
- network-handling.md — Safe fetch utility, toast notifications, error logging
Forbidden
- Technical jargon in error messages
- Blaming users for errors
- Generic "Something went wrong" with no next steps
- Error pages without navigation
- Silent failures (no feedback)
- Ignoring 404 tracking
Definition of Done
- Custom 404 page with search and links
- Custom 500 page with recovery options
- Form validation with inline errors
- Loading states for async operations
- Offline fallback page
- Empty states for lists/search
- Toast notifications for actions
- Error logging in production
- All error pages match site branding
More from soborbo/claudeskills
astro-seo
SEO markup patterns for Astro lead generation sites. Meta tags, Open Graph, Schema.org, sitemap, robots. Use for all SEO implementation.
37astro-architecture
Technical architecture for Astro lead generation websites. Use when setting up new projects, configuring build tools, or establishing project foundations. For images use astro-images skill. For SEO use astro-seo skill.
20astro-performance
Core Web Vitals and performance optimization for Astro sites. LCP preloading, font strategy, image patterns, critical path, third-party scripts, Cloudflare Tag Gateway. Use for performance tuning.
18astro-animations
Animation patterns for Astro sites. Scroll animations, micro-interactions, transitions, loading states. Performance-focused, accessibility-aware.
17astro-a11y
Accessibility patterns for Astro lead generation sites. WCAG 2.1 AA compliance, screen readers, keyboard navigation, focus management, ARIA. Use for all accessibility implementation.
14astro-ux
UX patterns and section templates for Astro lead generation sites. Hero, features, testimonials, CTAs, FAQ sections. Use for page section design.
13