Communitygithub.com

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for content discovery interfaces, defining the visual and spatial organization of filters, facets, and sorting controls to maximize findability and reduce cognitive load.

coastai-skills 是什么?

coastai-skills is a Claude Code agent skill that design and implement a systematic framework for content discovery interfaces, defining the visual and spatial organization of filters, facets, and sorting controls to maximize findability and reduce cognitive load.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/coastdigitalgroup/coastai-skills/tree/HEAD/website-design/filter-and-sort-system

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Filter and Sort System

Purpose

The Filter and Sort System provides a methodology for designing discovery interfaces that help users navigate large datasets or product catalogs. While technical implementation handles the logic, this system defines the spatial composition and visual affordances of the discovery tools. It ensures that users can easily refine their view, understand their current state of filtering, and switch between prioritization modes (sorting) without losing context or feeling overwhelmed.

Use Cases

  • Designing the sidebar or top-bar discovery layer for e-commerce sites.
  • Organizing complex search results pages (SERPs) for directories or resource hubs.
  • Implementing "Discovery Drawers" for mobile-first application interfaces.
  • Creating faceted navigation for content-heavy documentation or blog archives.

When NOT to Use

  • Small Datasets (<12 items): If all content fits in a single view, adding filtering and sorting introduces unnecessary interaction cost.
  • Single-Path Workflows: Where the user is meant to follow a linear sequence rather than explore a catalog.
  • Raw Data Tables: Where users are likely to use browser-native "Find" or advanced spreadsheet-like tools (though high-level sorting still helps).

Inputs

  1. Facet Inventory: A list of all attributes users can filter by (e.g., Size, Color, Rating, Price).
  2. Priority Ranking: Which facets are "Primary" (used by 80% of users) vs. "Secondary" (niche specifications).
  3. Control Types: Mapping data types to UI controls (e.g., Checkboxes for multi-select, Range sliders for price).
  4. Layout Context: The available horizontal and vertical space (from the responsive-grid-system).

Outputs

  1. Discovery Layout Blueprint: Defined placement for the filter bar (Sidebar vs. Top-bar) and the results grid.
  2. Facet Component Spec: Visual design for checkboxes, swatches, and range inputs within the discovery context.
  3. State Map: Visual treatments for Active Filters (chips/pills), Loading states (skeletons), and Empty states.
  4. Responsive Strategy: A plan for how filters transform from Desktop (e.g., Sidebar) to Mobile (e.g., Bottom Drawer).

Workflow

1. Select the Primary Layout Pattern

Choose a spatial arrangement based on the number of facets:

  • Sidebar (Left/Right): Best for 5+ facets. Provides high visibility and persistent access to discovery tools.
  • Horizontal Top Bar: Best for 1–4 facets. Maximizes the width for results but can become cluttered if more facets are added later.
  • Overlay/Drawer: Best for mobile or "clean" desktop interfaces where discovery is a secondary task.

2. Define Facet Visual Hierarchy

Apply visual-hierarchy-system principles to the filter list:

  • Group Headers: Use bold, concise titles (e.g., Category, Brand).
  • Control Sizing: Ensure checkboxes and text links have enough vertical rhythm (usually --space-s gap).
  • Initially Expanded vs. Collapsed: Expand the top 3 most-used facets; collapse the rest to save vertical space.

3. Design the "Active State" System

Users must always know what filters are applied:

  • Summarization (Pills/Chips): Place a horizontal list of active filters above the results or at the top of the sidebar.
  • Clear All: Provide a single, prominent action to reset the entire view.
  • Visual Feedback: The results container should indicate it is "updating" (e.g., 20% opacity or a skeleton screen) when a filter is toggled.

4. Establish Sorting Affordances

Distinguish between inclusion (Filtering) and prioritization (Sorting):

  • Placement: Keep sorting in the top-right or top-left of the results area, separate from the filters.
  • Labeling: Use clear labels like "Sort by: Price (Low to High)" rather than just "Price."

5. Plan for Mobile Discovery

  • The Discovery Trigger: Use a sticky button (e.g., "Filter & Sort") at the bottom or top of the screen.
  • The Drawer Pattern: Open filters in a full-screen or bottom drawer to maximize touch target size.
  • Immediate vs. Batch: Decide if the mobile view should update instantly (Faceted) or require a "Show X Results" button to apply.

Decision Rules

  • The "80/20" Rule: Only show the top 5 values for any given facet; use a "Show More" link to reveal the rest.
  • Sidebar vs. Top Bar: If your facet list requires scrolling on a standard laptop screen, use a Sidebar. If it fits in one line, use a Top Bar.
  • Selection Persistence: Applied filters must remain visible even if they are scrolled out of the sidebar (e.g., using a sticky chip bar).
  • Empty State Fallback: Never allow a filter combination to lead to a dead end; always provide a "Reset" button or suggested alternatives.

Constraints

  • Accessibility: All filter controls must have visible focus rings and be operable via keyboard. Use aria-expanded for collapsible facets and aria-live="polite" on the results count/container so screen reader users know when results have updated.
  • Responsiveness: Filters must stack or move into a drawer on mobile to avoid horizontal overflow or "squeezing" the content grid. Prefer container queries over viewport breakpoints when the filter bar can appear in more than one layout context (e.g., sidebar vs. embedded widget).
  • Contrast: Ensure that active/selected states (e.g., a checked box or a blue chip) meet the 3:1 contrast ratio against the background.

Common Failure Patterns

  • The "Mystery Filter": Users can't tell which filters are active because there's no summary pill/chip bar.
  • The "Infinite Sidebar": A sidebar that is so long it becomes a task to manage, often caused by not using "Show More" for long lists.
  • Mobile Cramming: Trying to fit a desktop sidebar into a mobile view, making the results grid unreadable.
  • Lack of "Applied" Feedback: Toggling a filter without the results grid visually indicating a change (even if the change is fast).
  • The Dead End: Filtering down to zero items and providing no way to go back.

Validation Criteria

  • A clear distinction exists between Filtering (inclusion) and Sorting (prioritization).
  • Active filters are summarized visually (e.g., chips/pills).
  • Top-used facets are expanded by default; others are collapsible.
  • A "Clear All" or "Reset" action is easily accessible.
  • The system provides a mobile-specific discovery pattern (e.g., Drawer).
  • Loading states (skeletons/spinners) are defined for when the results update.
  • All controls meet touch-target size (24x24px minimum per WCAG 2.2 SC 2.5.8, 44x44px preferred) and keyboard accessibility requirements.

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.

相关技能