askill
error-states

error-statesSafety 100Repository

Error handling patterns for Astro sites. 404/500 pages, form errors, offline states, loading failures. Use for graceful degradation and user experience.

1 stars
1.2k downloads
Updated 1/16/2026

Package Files

Loading files...
SKILL.md

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

  1. Never blame the user — "We couldn't find that" not "Invalid request"
  2. Offer next steps — Always provide a way forward
  3. Keep branding — Error pages should match site design
  4. Be helpful — Search, popular links, contact info
  5. Log errors — Track 404s to fix broken links
  6. Accessible errors — Use ARIA labels and semantic HTML
  7. Loading feedback — Show spinners for async operations
  8. Network awareness — Handle offline states gracefully
  9. User-friendly messages — Translate HTTP codes to plain language
  10. Prevent error loops — Fail silently in error handlers

References

See the references/ directory for detailed implementations:

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

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

72/100Analyzed 2/20/2026

A well-structured error handling skill for Astro sites covering 404/500 pages, form errors, offline states, and loading failures. Contains 10 clear core rules, forbidden practices, and a definition of done checklist. Refers to 5 detailed implementation files in a references/ directory. Scores well on clarity and safety, moderately on completeness and reusability. Actionability is moderate because the actual code/instructions are in referenced external files rather than in this skill document itself. Good bonus from having structured rules, tags, and being in a dedicated skills folder.

100
85
65
70
55

Metadata

Licenseunknown
Version-
Updated1/16/2026
PublisherSoborbo

Tags

apiobservability