Communitygithub.com

coastdigitalgroup/coastai-skills

Design and implement purposeful "empty states" (zero-data screens) that guide users, reduce frustration, and provide clear paths to action when content is missing or yet to be created.

Was ist coastai-skills?

coastai-skills is a Claude Code agent skill that design and implement purposeful "empty states" (zero-data screens) that guide users, reduce frustration, and provide clear paths to action when content is missing or yet to be created.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/coastdigitalgroup/coastai-skills/tree/HEAD/website-design/empty-state-system

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Empty State System

Purpose

The Empty State System provides a framework for designing screens or components that appear when there is no data to display. Instead of showing a blank screen or a generic "No results found" message, this system treats empty states as opportunities for onboarding, education, and proactive discovery. It transforms potential dead-ends into productive moments that maintain user momentum and clarify system utility.

Use Cases

  • First-run Experiences: When a user logs in for the first time and hasn't created any content (e.g., an empty dashboard or project list).
  • Search Results: When a user's search query returns zero matches.
  • Filtering: When a combination of active filters results in an empty grid.
  • Empty Containers: Specific UI elements like an empty shopping cart, a cleared notification center, or a fresh favorites list.
  • Error States: When content fails to load due to permissions or connection issues (secondary use case).

When NOT to Use

  • Loading States: Use a skeleton screen or spinner when content is expected to appear shortly.
  • Permanent "Dead" Pages: Use a 404 page for broken links or deleted resources.
  • Partial Content: If some data is available but limited, use standard layout patterns rather than an empty state.
  • Passive Backgrounds: Do not use for sections that are meant to be blank by design (e.g., margins or decorative whitespace).

Inputs

  1. Empty Scenario Type: Is this a user-cleared state (success), a first-run state (onboarding), or a search failure (discovery)?
  2. User Intent: What was the user trying to achieve or find?
  3. Core Value Prop: What is the primary benefit of the content that is currently missing?
  4. Available Actions: What is the "single best next step" for the user?

Outputs

  1. Empty State Blueprint: A structural definition including illustration, headline, body copy, and primary CTA.
  2. Contextual Logic: Rules for when and where the empty state should be triggered.
  3. Discovery Strategy: Recommendations for suggested content or educational tips to fill the void.

Workflow

1. Identify the Empty Trigger

Determine why the state is empty. Categorize it to choose the right tone:

  • First-run (Educational): Encourage the first "create" action.
  • User-cleared (Positive): Acknowledge completion (e.g., "All caught up!").
  • Search/Filter (Helper): Provide ways to broaden or pivot the search.

2. Establish Visual Hierarchy

Structure the empty state using the "Three-Point Rule" (modified for empty states):

  • The Anchor (Visual): A non-distracting icon or illustration that sets the tone.
  • The Context (Messaging): A clear headline explaining why it's empty and body copy explaining how to change it.
  • The Target (CTA): A primary button that triggers the creation of content or resets filters.

3. Draft Action-Oriented Copy

  • Headline: Be specific. Instead of "No Items," use "You haven't created any projects yet."
  • Body: Offer value. "Projects help you organize your tasks. Create your first one to get started."
  • CTA: Use benefit-driven verbs. "Create Project" or "Start Free Trial."

4. Provide Discovery Paths (Secondary Actions)

If there is no direct "create" action (like in search), offer alternatives:

  • Reset: A link to clear all filters.
  • Suggestions: Popular categories or "Did you mean?" suggestions.
  • Education: Link to documentation or a video tutorial.

5. Define Technical Constraints

  • Responsiveness: Ensure the empty state remains centered and legible on small viewports.
  • Accessibility: Use appropriate ARIA roles (e.g., role="status") to ensure the state is announced when it appears dynamically.

Decision Rules

  • The One-Action Rule: Focus on exactly ONE primary action to avoid overwhelming the user in a moment of potential confusion.
  • Empathy over Humor: While a bit of personality is fine, prioritize clarity and helpfulness. Avoid "clever" copy that hides the solution.
  • Direct vs. Indirect:
    • If the user can fix it (e.g., first-run), use a Primary CTA.
    • If the user can't fix it (e.g., search failure), use suggestions or reset links.
  • Image Relevance: Use illustrations that reinforce the specific context (e.g., a magnifying glass for search, a folder for files).

Constraints

  • Accessibility: Empty state illustrations must have aria-hidden="true" or be purely decorative. The text must meet WCAG AA contrast ratios. The primary CTA and any secondary links/buttons must meet WCAG 2.2 SC 2.5.8 (24x24px minimum target size).
  • Scale: Empty states should not exceed the container width of the actual content they replace.
  • Consistency: Use the same visual style and layout for all empty states across the site to build pattern recognition.

Common Failure Patterns

  • The "Dead End": Telling the user something is empty without telling them how to fix it.
  • Over-Design: Using complex, heavy illustrations that distract from the primary CTA.
  • Negative Tone: Using language that sounds like an error or a failure (e.g., "Search Failed!").
  • Generic Copy: Using "No results" for everything from search to first-time onboarding.
  • Mobile Overflow: Designs that look great on desktop but require vertical scrolling on mobile just to see the CTA.

Validation Criteria

  • The empty state clearly explains why it is appearing.
  • There is a clear, actionable primary CTA or "reset" path.
  • The visual hierarchy leads the eye from the visual to the CTA.
  • The tone matches the context (onboarding vs. search failure).
  • The state is accessible (contrast, keyboard navigation, screen reader announcements via role="status" or equivalent live region).
  • The primary CTA meets WCAG 2.2 SC 2.5.8 (24x24px minimum target size).
  • The layout is responsive and centered within its parent container.

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.

Verwandte Skills