Skip to content
cccskills
FreePublished on GitHub

search

Design or improve search experiences, result presentation, and filtering interfaces. Use when the user asks to add search, redesign search results, improve findability, build autocomplete, add filters, or fix zero-results dead ends.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md6.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Build search experiences that help users find what they need quickly, even when they are uncertain about what they are looking for. The goal is not perfect relevance on the first try; it is guiding users from intent to outcome through forgiving search and clear results.

Consult the search and filtering UX reference for autocomplete patterns, filter architecture, result presentation, and zero-results recovery. Consult the search and findability reference for site search, autosuggest, command palettes, and intent-aware findability. Consult the collection browsing and filtering reference for long result lists, faceted browsing, and filter overlays. Consult the predictive and intent-driven UI reference for recommendations, smart defaults, and resume flows.

MANDATORY PREPARATION

Users start this workflow with /search. Once this skill is active, load $frontend-design — it contains design principles, anti-patterns, and the Context Gathering Protocol. Follow that protocol before proceeding — if no design context exists yet, you MUST load $setup first. Additionally gather: what users typically search for, what common queries fail, and how large the searchable dataset is.

Assess Search Needs

Understand the search context before designing the interface:

  1. Search intent: Are users looking for a specific item (known-item search), exploring a category (exploratory), or trying to complete a task (transactional)?
  2. Dataset size: Small datasets (< 100 items) may not need search; filtering or categorization may suffice. Large datasets need faceted search and ranking.
  3. Query patterns: What do users actually type? Common misspellings, synonyms, and abbreviations should be handled.
  4. Failure modes: What happens when search returns nothing? When it returns too much?

Search Interface Design

Query input

  • Use concrete placeholder text ("Search for "project alpha"") instead of generic filler
  • Show a clear button once the user has typed
  • Support Enter to submit; do not rely solely on live results
  • Include a visible search button, not just a decorative icon
  • If scope is selectable ("All", "Products", "Help"), make it obvious and changeable

Autocomplete and suggestions

  • Show suggestions after 2-3 characters
  • Group by type: recent searches, popular queries, products, help articles
  • Bold the matching substring
  • Support arrow-key navigation, Enter to select, Escape to close
  • On mobile, ensure suggestions are scrollable and do not overflow
  • Show a helpful message when nothing matches instead of an empty list

Filter integration

  • Sidebar filters for many filters on wide layouts
  • Top bar for a few key filters
  • Drawer/overlay on narrow layouts
  • Inline chips for active filters that can be removed directly
  • Synchronize filter state with the URL for shareability
  • Show active filter count when collapsed

Result Presentation

Result list

  • Clear hierarchy: title, metadata, snippet, thumbnail
  • Highlight matching query terms in titles and snippets
  • Consistent formatting across all results
  • Each result should be a clear link or have a primary action

Empty states

  • Acknowledge the query ("No results for 'xyz'")
  • Suggest alternatives: corrected spelling, related terms, broader categories
  • Offer to clear filters if any are active
  • Provide a fallback action ("Browse all", "Contact support")

Ranking controls

  • Allow users to change sort order (relevance, price, date, rating)
  • Label the default sort and explain why it is the default
  • If results are promoted, label them transparently ("Featured")

Pagination and Loading

PatternBest for
PaginationLarge result sets, SEO-critical pages, users who reference specific pages
Infinite scrollDiscovery browsing, image galleries, social feeds
Load moreBalanced approach; user controls when to load
  • Show skeleton screens that match result layout during loading
  • Preserve previous results while loading new ones when possible

Accessibility

  • Announce result count changes for screen readers
  • Associate filter controls with result regions using aria-controls
  • Ensure active filters are announced when changed
  • Provide skip links from filters to results
  • Support keyboard navigation through suggestions and filters

Anti-Patterns

  • Case-sensitive search: Users should not guess capitalization
  • No visual feedback during search: Silent search feels broken
  • Filters that produce zero results: Disable or hide invalid combinations
  • Overwhelming filter panels: Too many filters create decision paralysis
  • Hidden active filters: Users forget what they filtered
  • Losing filter state on refresh: Filters should persist in the URL
  • Infinite scroll without footer access: Users cannot reach footer links
  • Search requiring exact matches: Fuzzy matching and stemming are essential
  • No zero-results recovery: An empty screen with no guidance is a dead end
  • Autocomplete that hijacks the cursor: Suggestions should not auto-submit

Verify Search Quality

Before shipping:

  • Search handles typos, partial matches, and common synonyms
  • Autocomplete is keyboard-navigable and mobile-friendly
  • Active filters are visible and individually removable
  • Filter state is reflected in the URL
  • Zero-results pages offer alternatives and recovery paths
  • Result rankings can be changed by the user
  • Loading states match the result layout
  • Screen readers announce result count and filter changes
  • Focus management follows a logical path
  • Search is tested with realistic queries and misspellings

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

a11y

Free

Systematically audit and remediate accessibility issues in UI, focusing on keyboard navigation, screen reader support, color contrast, semantic HTML, ARIA usage, and motion sensitivity. Use when the user wants to improve accessibility, make a component accessible, fix WCAG violations, add keyboard support, or ensure screen reader compatibility.

The English summary is being prepared. Showing the original description.

aladicf/better-web-ui43Updated May 22, 2026

adapt

Free

Adapt designs for narrow, medium, wide, embedded, or print web contexts without losing usability, hierarchy, or target sizing. Use when the user mentions responsive design, breakpoints, narrow layouts, viewport changes, touch-capable browsers, or cross-context adaptation.

The English summary is being prepared. Showing the original description.

aladicf/better-web-ui43Updated May 22, 2026

add-ui

Free

Generate 5 distinct, production-grade UI variations for a requested new or existing section, component, page, flow, or shell, then help the user preview and apply one. Use when the user asks to add or redesign UI like a hero, pricing, navbar, auth flow, dashboard shell, ecommerce surface, or data component.

The English summary is being prepared. Showing the original description.

aladicf/better-web-ui43Updated May 22, 2026

Improve or implement purposeful motion systems, micro-interactions, gestures, and transition behavior for production-grade UI. Use when the user mentions animation, motion, transitions, micro-interactions, hover states, drawers, toasts, gestures, or making the UI feel more alive.

The English summary is being prepared. Showing the original description.

aladicf/better-web-ui43Updated May 22, 2026

Improve layout composition, spacing systems, grouping, and visual rhythm. Use when the user mentions weak layout structure, arbitrary spacing, weak grouping, crowded composition, or layout monotony rather than priority/emphasis problems.

The English summary is being prepared. Showing the original description.

aladicf/better-web-ui43Updated May 22, 2026

audit

Free

Run technical quality checks across accessibility, performance, theming, responsive design, and anti-patterns. Generates a scored report with P0-P3 severity ratings and actionable plan. Use when the user wants measurable accessibility, performance, responsive, theming, or anti-pattern findings—not when they mainly want an overall UX critique or final visual/detail polish.

The English summary is being prepared. Showing the original description.

aladicf/better-web-ui43Updated May 22, 2026

See all skills by aladicf

Report a problem with this skill