Communitygithub.com

coastdigitalgroup/coastai-skills

Design a systematic framework for site-level error states and system statuses (404, 500, Maintenance, Offline) to maintain user trust and provide clear recovery paths.

coastai-skills란 무엇인가요?

coastai-skills is a Claude Code agent skill that design a systematic framework for site-level error states and system statuses (404, 500, Maintenance, Offline) to maintain user trust and provide clear recovery paths.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/coastdigitalgroup/coastai-skills/tree/HEAD/website-design/error-and-status-system

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Error and Status System

Purpose

The Error and Status System provides a methodology for designing the "unhappy paths" of a website—the moments when something goes wrong at a system level. Unlike form-level validation or contextual banners, this system handles full-page or site-wide states. It ensures that failures are communicated with clarity, empathy, and a clear "way out," preventing user frustration and abandonment during technical issues.

Use Cases

  • 404 Not Found: When a user navigates to a URL that doesn't exist.
  • 500 Server Error: When a critical backend failure prevents a page from loading.
  • Maintenance Mode: When a site is intentionally taken offline for updates.
  • Offline States: When a user loses connectivity in a web application.
  • Access Denied (403): When a user lacks permission to view a specific resource.

When NOT to Use

  • Form Validation: Use form-design-system for field-level errors.
  • Contextual Notifications: Use banner-and-alert-system for non-blocking updates or minor errors.
  • Empty Lists: Use empty-state-system when a page loads correctly but contains no data.
  • Loading States: Use skeleton-state-system for standard content fetching.

Inputs

  1. Error Type: Is it a client error (4xx), server error (5xx), or system state (Maintenance)?
  2. Technical Context: Can the system explain why it failed without leaking sensitive data?
  3. Recovery Paths: What are the most likely next steps for the user?
  4. Brand Tone: Is the brand voice humorous, professional, or strictly technical?
  5. System Constraints: Does the offline state need to support specific local-first actions?

Outputs

  1. Status Page Anatomy: A defined layout for the error message, visual anchor, and recovery actions.
  2. Messaging Hierarchy: Standards for the headline (what happened) and description (what to do next).
  3. Recovery Blueprint: A map of links, search inputs, or help resources tailored to the specific error.
  4. Offline UI Spec: Rules for how the interface changes when connectivity is lost.

Workflow

1. Categorize the Failure Gravity

Determine the impact of the error:

  • Low (404/403): Localized to one URL. The site is healthy. Focus on Redirection.
  • High (500): System-wide or page-breaking. The site is struggling. Focus on Reassurance and Support.
  • Systemic (Maintenance): Intentional downtime. Focus on Expectation Management (e.g., "Back at 2 PM").
  • Connectivity (Offline): Environmental failure. Focus on State Preservation (e.g., "Changes saved locally").

2. Establish the Recovery Path

Every error page must have a "Way Out":

  • The "Home" Button: The absolute minimum requirement.
  • Smart Suggestions: For 404s, provide links to popular pages or a search bar.
  • The "Refresh" Trigger: For 5xx errors, provide a prominent way to retry the request.
  • Support Links: For persistent issues, provide a direct path to a help center or status page.

3. Design the Visual Anatomy

Apply visual-hierarchy-system to the error view:

  • Visual Anchor: Use a brand-aligned illustration or icon to soften the impact of the failure.
  • Clear Headline: Use a "human" headline (e.g., "We can't find that page") instead of just the status code ("404 Error").
  • Subtle Metadata: Keep technical codes (e.g., Error ID: 12345) small and low-contrast, intended for support teams rather than the user.

4. Apply the "Human First" Messaging Rule

Avoid technical jargon that alienates users:

  • Bad: "500 Internal Server Error: Connection reset by peer."
  • Good: "Something went wrong on our end. We're working on fixing it now."
  • Bad: "404 Resource not located."
  • Good: "Looks like this page took a wrong turn."

5. Plan for Responsive Adaptation

  • Full-Page vs. Modal: Decide if the error should take over the whole viewport (standard for 404/500) or appear as a fixed banner (common for Offline states).
  • Centered Layout: Centering content is often best for error pages as it minimizes scanning effort and emphasizes the "Pause" in the user journey.

Decision Rules

  • The "Direct Path" Rule: Never let an error page be a dead end. If there are no specific suggestions, always include a "Back to Home" and "Search" option.
  • Search-on-404: If a site has >100 pages, the 404 page MUST include a search bar.
  • Maintenance Transparency: If in maintenance mode, always provide an estimated time of return or a link to a status page.
  • Offline Persistence: When offline, visually "gray out" or disable non-functional actions (e.g., "Submit" buttons) to prevent data loss.

Constraints

  • Accessibility: Error pages must maintain the site's global navigation and footer (where possible) to provide familiar wayfinding. For dynamic status changes (like going offline), use an aria-live="assertive" region to announce the change immediately.
  • Responsiveness: Error pages must be as resilient as possible. Avoid heavy assets that might fail to load if the system is already struggling.
  • Branding: Error pages should look like part of the site, not a generic browser or server default page.

Common Failure Patterns

  • The "Dead End": A 404 page with no links, forcing the user to use the browser's back button or leave.
  • The "Jargon Wall": Displaying raw stack traces or database errors that confuse users and potentially leak security info.
  • The "Blame Game": Messaging that implies the user did something wrong (e.g., "You entered an invalid URL") instead of taking responsibility for the discovery failure.
  • Style Mismatch: An error page that uses different fonts/colors than the rest of the site, making it look broken or malicious.

Validation Criteria

  • Every error state (404, 500, etc.) has a clear, human-readable headline.
  • At least one primary recovery action (e.g., "Back to Home") is present.
  • For 404 pages, a search bar or popular links are provided for discovery.
  • Technical metadata (Error IDs) is present but subordinated in hierarchy.
  • Connectivity shifts (Offline) are announced via ARIA live regions.
  • Visual styling remains consistent with the core brand/design system.
  • Maintenance pages provide an "Expected Return" or "Status Page" link.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for progressive disclosure using accordions, ensuring structural integrity, visual affordances, and accessibility across different content densities and devices.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for long-form content, managing readability, vertical rhythm, and information density to ensure a superior reading experience.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for informational elements that communicate state (Badges) and categorization (Tags) with clarity and accessibility.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for non-overlay notifications, managing global announcements and contextual inline alerts to communicate system states without interrupting the user's flow.

coastdigitalgroup/coastai-skills

Design and implement a systematic, asymmetrical bento-grid layout framework to organize diverse content types cohesively while maintaining strict visual hierarchy, logical focus order, and responsive flexibility.

coastdigitalgroup/coastai-skills

Design a responsive, mobile-first bottom navigation bar and persistent action dock system for mobile websites and web applications, establishing spatial anchors, tab bar anatomy, badge indicators, thumb-zone ergonomics, safe area inset handling, active/inactive state contrast, and desktop responsive adaptation rules.

coastdigitalgroup/coastai-skills

Design a mobile-first bottom sheet overlay system with configurable detents, drag affordances, safe area padding, responsive desktop modal/popover adaptation, and WCAG AA accessibility compliance.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for secondary navigation trails that provide orientation, context, and one-click access to parent levels in deep information architectures.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for buttons and interactive triggers, managing visual hierarchy, variant logic, and action grouping to ensure clear intent and accessible interaction.

coastdigitalgroup/coastai-skills

Design a systematic framework for date and time selection, managing calendar grids, range pickers, and scheduling interfaces to ensure precision and accessibility.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for modular content containers that maintain hierarchy, structural integrity, and action alignment across variable content and responsive viewports.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for horizontal discovery components, managing navigation affordances, scroll behavior, and accessibility to ensure effective content density without compromising usability.

coastdigitalgroup/coastai-skills

Design a systematic, highly accessible, and developer-friendly UI layout framework for code blocks, snippet showcases, multi-file code tabs, line-highlighting, diff views, and syntax token contrast in technical documentation and developer platforms.

coastdigitalgroup/coastai-skills

Design a systematic framework for global command menus (Cmd+K panels) that combines keyboard-driven navigation, command execution, and shortcut discovery into an accessible, responsive overlay.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for threaded conversations, managing nesting depths, action hierarchies, and community signaling to foster engagement and readability.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for side-by-side comparison interfaces, managing high attribute density and responsive complexity to support informed decision-making.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for user privacy, managing consent banners, preference centers, and persistent privacy controls to balance legal compliance with user trust.

coastdigitalgroup/coastai-skills

Design and implement a systematic, highly accessible, and responsive visual layout framework for conversational chat widgets, live chat boxes, and chatbot panels that ensures clear message scannability, native focus flow, and seamless mobile keyboard adaptation.

coastdigitalgroup/coastai-skills

Design a systematic, accessible, and high-conversion framework for custom select dropdowns and comboboxes, defining anatomy, states, search-filtering, and responsive mobile-adaptive patterns.

coastdigitalgroup/coastai-skills

Design and implement a systematic color palette that ensures WCAG 2.2 accessibility compliance. Trigger this skill when asked to define brand colors, create UI themes, or establish a visual system for a website.

관련 스킬