← スキル一覧に戻る

error-states
by Soborbo
⭐ 1🍴 0📅 2026年1月19日
SKILL.md
name: error-states description: Error handling patterns for Astro sites. 404/500 pages, form errors, offline states, loading failures. Use for graceful degradation and user experience.
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
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です