/godmode:searchfrom godmode
Implements full-text search with relevance tuning, facets, autocomplete, and fuzzy matching. Guides engine selection (PostgreSQL FTS, Meilisearch, Algolia, Elasticsearch) and index design.
Ships in godmode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/godmode:search, "add search", "improve relevance"SEARCH REQUIREMENTS:
Use case: site | product | document | log | autocomplete
Data volume: <N docs>, Avg size: <N KB>
Query volume: <QPS>, Latency target: <P95 ms>
Existing infra: PostgreSQL | MongoDB | none
ENGINE SELECTION:
IF already on PG + <1M docs: PostgreSQL FTS
IF <10M docs + typo tolerance: Meilisearch/Typesense
IF e-commerce + managed preferred: Algolia
IF large scale + complex queries: Elasticsearch
# Check existing search setup
grep -r "elasticsearch\|meilisearch\|algolia\|typesense" \
package.json 2>/dev/null
grep -r "tsvector\|ts_rank\|to_tsquery" \
--include="*.sql" --include="*.ts" -l 2>/dev/null
FIELD MAPPINGS:
text -> searchable (weight: title 3x > tags 2x > body 1x)
keyword -> filter, sort, facet
numeric -> filter, sort, facet (range)
datetime -> filter, sort
geo_point -> location filter/sort
ANALYZERS:
search: standard + lowercase + stop + stemmer + synonyms
autocomplete: standard + lowercase + edge_ngram(1,20)
exact: keyword + lowercase
SHARD SIZING:
Start 1 shard, 1 replica
Scale shards at 10M+ docs (10-50GB per shard)
RANKING COMPONENTS:
Text relevance (BM25): 60% weight
Field boosting: title 3x, exact match 5x
Recency signal: 15% (30-day half-life decay)
Popularity signal: 15% (views, CTR, log1p)
Personalization: 10% (user history)
Penalties: out of stock -50%, flagged -100%
RELEVANCE TESTING:
Build suite: query -> expected top 3 -> pass/fail
Metrics: Precision@10, Recall@10, NDCG@10, MRR
Target: NDCG@10 >= 0.85, zero-result rate <3%
TYPES:
Query suggest: prefix on popular queries, <50ms
Result suggest: edge_ngram on fields, <100ms
Completion suggest: with category context, <30ms
Did you mean: phrase suggester, <100ms
CLIENT RULES:
Debounce 200-300ms, min 2 chars
Cancel previous with AbortController
Max 5-8 suggestions, highlight matched prefix
FACET TYPES:
Terms (checkbox): category, brand, color
OR within facet, AND across facets
Range (slider): price, rating
Boolean (toggle): availability
Show counts per value. Hide facets with 0 results.
Encode in URL for shareable links.
FUZZY: fuzziness=AUTO
0 edits for 1-2 chars
1 edit for 3-5 chars
2 edits for 6+ chars
prefix_length=2, max_expansions=50
SYNONYMS:
Two-directional: laptop, notebook, portable
One-directional: js => javascript, k8s => kubernetes
External file (update without reindex)
Review monthly, add from zero-result queries
Refresh interval: 1s default, 30s batch, -1 bulk
Bulk indexing: batch 500-5000, 2-4 threads
Disable replicas + refresh during bulk load
Index lifecycle: hot-warm-cold
Rollover at 50GB or 30 days
TARGETS:
Index throughput: >5000 docs/sec
Search P50: <50ms, P95: <200ms
Autocomplete P95: <50ms
TRACK:
Zero-result rate: target <3%
CTR: target >30%
Click position: target <3
Search exit rate: target <15%
Autocomplete accept: target >40%
ACTION: top zero-result queries ->
add synonyms, fix data, add content
Commit: "search: <index> -- <engine>, <N> fields, NDCG <score>"
grep -r "elasticsearch\|meilisearch\|algolia" \
package.json 2>/dev/null
grep -r "tsvector" --include="*.sql" -l 2>/dev/null
Append to .godmode/search-results.tsv:
timestamp\tengine\tindexes\tfacets\tautocomplete\tndcg\tstatus
SEARCH: Engine: {name}. Indexes: {N}. Facets: {N}.
NDCG@10: {score}. Zero-result: {N}%.
P50: {N}ms. P95: {N}ms. Status: {DONE|PARTIAL}.
KEEP if: NDCG >= previous AND Precision >= previous
DISCARD if: either metric regressed
Never deploy without full relevance test suite.
STOP when:
- NDCG@10 >= 0.85 AND zero-result <3% AND P95 <200ms
- Improvement <0.01 per iteration
- User requests stop OR max 10 iterations
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
135 skills in this plugin
/a11yAccessibility. WCAG 2.1 AA/AAA, a11y audit, color contrast, keyboard navigation, screen reader, Axe, Pa11y, Lighthouse./agentAI agent development. ReAct/plan-and-execute/multi-agent architectures, tool design, memory systems, guardrails, orchestration (LangChain, LlamaIndex, CrewAI, AutoGen)./analyticsProduct analytics implementation — event tracking, funnel analysis, A/B testing, Segment/Amplitude/Mixpanel/PostHog, privacy-compliant instrumentation./angularAngular architecture. NgRx, Signals, RxJS, standalone components, lazy loading, dependency injection, Jasmine, Jest.Other plugins' skills for the same job