Search

From aladicf/better-web-ui · View interactive version

Search is an AI agent skill from the GitHub repository aladicf/better-web-ui. 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.

How to use this skill

Skill file

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

Autocomplete and suggestions

Filter integration

Result Presentation

Result list

Empty states

Ranking controls

Pagination and Loading

| Pattern | Best for |

|---------|----------|

| Pagination | Large result sets, SEO-critical pages, users who reference specific pages |

| Infinite scroll | Discovery browsing, image galleries, social feeds |

| Load more | Balanced approach; user controls when to load |

Accessibility

Anti-Patterns

Verify Search Quality

Before shipping:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.