Command Palette

Search for a command to run...

YepAPI
Free · All Tools

Search Engine Agent Skill

Full-text search with Meilisearch/Typesense/Algolia, faceted filtering, and instant results.

searchmeilisearchtypesensefulltext

The Skill

Full content, every format. Copy it, download it, or install with one command.

SKILL.md
---
description: Full-text search with Meilisearch/Typesense/Algolia, faceted filtering, and instant results.
homepage: https://yepapi.com/skills/search-engine
metadata:
  tags: [search, meilisearch, typesense, fulltext]
---

# Search Engine

## Rules

- Meilisearch for self-hosted: fast, typo-tolerant, zero-config — best for most projects
- Typesense for self-hosted with advanced features: geo-search, joins, analytics built in
- Algolia for managed: best DX and instant search widgets — but expensive at scale
- Index strategy: sync data on write (webhook or after-save hook), full reindex on schema change
- Searchable attributes: explicitly define which fields to search — don't index everything
- Ranking rules: relevance first, then custom ranking (popularity, date, featured) — configure per index
- Faceted filtering: define filterable attributes upfront — use for category, price range, status, tags
- Typo tolerance: enabled by default in Meilisearch/Typesense — set `minWordSizeForTypos` for short words
- Instant search: debounce input 200-300ms, show results in a dropdown — use `instantsearch.js` or custom hook
- Pagination: prefer `hitsPerPage` + `page` for simple pagination, or search-after cursor for infinite scroll
- Highlight matches: return highlighted snippets with `<mark>` tags — display in search results
- Keep search index in sync: use a background job or queue to handle reindexing — don't block user requests

## Avoid

- Using database LIKE queries for search — slow, no relevance ranking, no typo tolerance
- Indexing large text blobs without truncation — index summaries or first 500 chars
- Exposing admin API keys to the client — use search-only keys with rate limits
- Rebuilding the entire index on every document change — use partial updates

Install

Why Use the Search Engine Skill?

Without this skill, your AI guesses at search engine patterns. It might hallucinate deprecated APIs, use outdated conventions, or miss best practices entirely. With it, your AI follows a proven ruleset — every suggestion aligns with current standards.

Drop this skill into your project and your AI instantly knows the rules. Better code suggestions, fewer errors, faster shipping.

Try These Prompts

These prompts work better with the Search Engine skill installed. Your AI knows the context and writes code that fits.

"Build a full-text search feature with Meilisearch, faceted filtering, and instant results"

"Create a search UI with autocomplete, typo tolerance, and highlighted results"

"Set up Typesense search with index syncing, relevance tuning, and analytics"

Search Engine skill — FAQ

It provides Meilisearch, Typesense, and Algolia patterns with faceted filtering and instant results. Your AI sets up full-text search with proper indexing, relevance tuning, and UI patterns.

Run `npx skills add YepAPI/skills --skill search-engine` in your project root. This copies the skill file into your repo where your AI coding tool can read it automatically.

The skill covers both. Meilisearch is open-source and self-hostable. Algolia is a managed service with more features. Start with Meilisearch for cost control; switch to Algolia for enterprise search needs.

Want more skills?

Browse all 110 free skills for builders.

See All Skills