Communitygithub.com

coastdigitalgroup/coastai-skills

Design a systematic framework for the end-to-end search experience, defining the visual and spatial organization of search triggers, autocomplete patterns, and results page layouts to maximize findability.

Was ist coastai-skills?

coastai-skills is a Claude Code agent skill that design a systematic framework for the end-to-end search experience, defining the visual and spatial organization of search triggers, autocomplete patterns, and results page layouts to maximize findability.

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

In Ihrer bevorzugten KI fragen

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

Dokumentation

Search Interface System

Purpose

The Search Interface System provides a methodology for designing a cohesive, high-performance discovery experience. While internal-search-optimization focuses on the "growth" and logic side, this system defines the design patterns and spatial ergonomics of the search UI. It ensures that users can find the search entry point instantly, interact with it effortlessly (even on mobile), and process results in a way that minimizes cognitive load and maximizes the "scent of information."

Use Cases

  • Designing the search entry points in global headers or persistent toolbars.
  • Creating the "Command Center" or "Omnibox" experience for SaaS applications.
  • Structuring e-commerce "Visual Search" and autocomplete dropdowns.
  • Designing high-density Search Results Pages (SERPs) for documentation or catalogs.
  • Implementing "Full-screen Search" overlays for mobile-first designs.

When NOT to Use

  • Static Landing Pages: Where the content is fixed and discovery is not a primary goal.
  • Micro-Sites (<20 pages): Where robust navigation and breadcrumbs are sufficient for findability.
  • Purely Relational Dashboards: Where data is accessed exclusively via defined filters and tabs rather than free-text search.

Inputs

  1. User Intent Profile: Is the user looking for a specific SKU (Precision) or exploring a topic (Discovery)?
  2. Catalog Density: How many items are in the system, and how diverse is the metadata?
  3. Primary Device: Is the search predominantly used on mobile (touch) or desktop (keyboard)?
  4. Existing Systems: Color systems, spacing tokens, and typography scales (from fluid-spacing-system and fluid-typography-system).

Outputs

  1. Search Trigger Spec: Visual definitions for the search bar (static, expandable, or icon-only).
  2. Autocomplete Anatomy: Design for the suggestion dropdown, including categories, images, and keyboard states.
  3. SERP Layout Blueprint: Spatial organization of the results page, balancing metadata density and readability.
  4. Mobile Interaction Map: A plan for how search transitions from a header icon to a full-screen focused interface.

Workflow

1. Define the Search Trigger Pattern

Choose a trigger based on its importance to the user journey:

  • The Persistent Bar: Always visible, high-contrast input. Best for e-commerce or search-primary sites.
  • The Expandable Input: Starts as an icon or small bar and expands on click. Best for sites where search is secondary to navigation.
  • The "Command + K" Trigger: A subtle hint or icon that opens a modal. Best for power-user SaaS tools or documentation.

2. Design the Autocomplete (Instant) Experience

Reduce the "distance to result" by providing immediate feedback:

  • Categorization: Group results by type (e.g., Products, Articles, Help).
  • Rich Metadata: Include small thumbnails, prices, or status badges within the dropdown.
  • Focused State: Use interactive-state-system to clearly highlight the currently selected suggestion for keyboard users.
  • ARIA Pattern: Model the input/listbox relationship on the ARIA APG Combobox pattern (role="combobox" with aria-expanded, aria-controls, and aria-activedescendant pointing at the highlighted role="option") rather than inventing a custom interaction model.

3. Establish the Results Page (SERP) Hierarchy

Apply visual-hierarchy-system to the search results:

  • The "Query Echo": Display the user's search term prominently to confirm the context.
  • Result Cards: Use the card-ui-system to standardize the result format.
  • Metadata Weight: Ensure titles are the most prominent, followed by the "Snippet" (the part of the content that matches the query).

4. Build the Mobile Discovery Layer

Search on mobile is a dedicated mode, not a widget:

  • The Mode Shift: Tapping search should open a full-screen overlay to remove background distractions.
  • Auto-Focus: Automatically focus the input and trigger the keyboard.
  • The "Thumb-Zone" Action: Place a "Clear" and "Cancel" button within easy reach (min 44x44px).

5. Define Loading and Empty States

  • Skeleton Results: Use skeleton-state-system to maintain layout stability while results are fetching.
  • Smart No-Results: Use empty-state-system to provide alternative paths when no exact matches are found.

Decision Rules

  • The Visibility Rule: If search is used by >30% of your audience, it must be a persistent, full-width bar on desktop.
  • The "Three-Word" Minimum: Don't start showing auto-suggestions until the user has typed at least 3 characters (to prevent visual jitter).
  • The Result Limit: Limit autocomplete suggestions to 5-8 items. If more exist, provide a "View all results for '...'" link.
  • Scent of Information: Bold the matching terms in the search results snippet to help users quickly scan for relevance.

Constraints

  • Accessibility: The search input must have a visible label (or aria-label). Keyboard users must be able to navigate the autocomplete list using arrow keys, select with Enter, and dismiss with Escape without losing their typed query. All interactive targets (clear button, suggestion rows) must meet the WCAG 2.2 24x24px minimum target size (2.5.8).
  • Responsiveness: Autocomplete dropdowns must never exceed the viewport width.
  • Contrast: Highlighting matching text must meet WCAG AA contrast ratios (usually using a background-color shift or bolding).

Common Failure Patterns

  • The "Hidden Search": Forcing users to hunt for a magnifying glass icon when search is the primary way they navigate.
  • The "Disconnected" Dropdown: Autocomplete menus that don't match the width or alignment of the input, creating visual "float."
  • Keyboard Trap: Not allowing users to exit the search overlay or dropdown with the Escape key.
  • The Dead-End Results: Not maintaining the search term in the input box on the results page, forcing the user to re-type if they want to refine.

Validation Criteria

  • Search entry point is visible within 2 seconds of page scan.
  • Autocomplete dropdown includes rich metadata (images/labels) where appropriate.
  • Keyboard navigation (Arrows, Enter, Escape) is fully defined for search, following the ARIA APG combobox pattern.
  • Mobile search opens a full-screen mode with immediate keyboard focus.
  • Search results page echoes the query and highlights matching terms.
  • Skeleton states are used for results loading.
  • All interactive elements meet the 44x44px touch target minimum.

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