error-states
Installation
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
- 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