Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add j4flmao/agent-skills --skill search-patternsgit clone --depth 1 https://github.com/j4flmao/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/j4flmao/agent-skills/search-patterns)<a href="https://agentmods.dev/skills/j4flmao/agent-skills/search-patterns"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/search-patterns/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/search-patterns"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/search-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Data Exfiltration · line 262 Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00077 | $0.05154 |
| Opus 5.5 | $0.00031 | $0.02062 |
| Sonnet 5.5 | $0.00015 | $0.01031 |
| Haiku 4.5 | $0.00008 | $0.00515 |
Grade A, and why
backend-search-patterns scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -X PATCH 'http://localhost:7700/indexes/products/settings' \ How it starts
The opening of the file, as written. The whole thing — 472 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Backend Search Patterns
Purpose
Design search architecture with indexing strategy, query design, and relevance tuning.
Agent Protocol
Trigger
Exact user phrases: "search", "Elasticsearch", "Meilisearch", "Algolia", "full-text search", "search index", "search query", "faceted search", "autocomplete", "search ranking", "search relevance", "indexing strategy", "search aggregation", "synonym search", "fuzzy search".
Input Context
Before activating, verify:
- Data volume (documents count, average document size, growth rate)
- Search requirements (full-text, faceted navigation, geo-spatial, autocomplete)
- Update frequency (real-time CDC, hourly batch, daily reindex)
- Consistency requirements (eventual consistency acceptable, or need read-your-writes)
Output Artifact
Search architecture design as formatted text.
Response Format
# Index mapping with analyzers
# Indexing strategy (CDC/batch/webhook)
# Query DSL template
# Aggregation patterns
# Cluster config and resource limits
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
Completion Criteria
- Search provider selected based on requirements
- Index mapping defined with field types, analyzers, and doc values
- Indexing strategy chosen (CDC/batch/webhook) with sync mechanism
- Search query patterns designed (full-text, faceted, autocomplete, geo)
- Relevance tuning configured (BM25, field boosting, function scoring)
- Operational concerns addressed (aliases, shards, snapshots, monitoring)
Max Response Length
300 lines of mapping, queries, and configuration.
Decision Tree
Which Search Engine?
What kind of search do you need?
├── Complex search: aggregations, geo, custom scoring, multi-language
│ └── Elasticsearch / OpenSearch — full control, steep learning curve
├── Simple typo-tolerant full-text search, instant setup
│ └── Meilisearch — excellent out-of-box relevance, minimal config
├── Managed, no ops, global edge network, per-query pricing
│ └── Algolia — fastest time-to-value for e-commerce and content
├── Fast, simpler alternative to Elasticsearch, lower resource usage
│ └── Typesense — REST-first, good relevance, low memory footprint
└── Already using AWS ecosystem, simple search needs
└── OpenSearch Service — managed, familiar if coming from ES 6.x
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/indexing-strategies.md 8.9 KB
- references/search-architecture.md 7.7 KB
- references/search-engines.md 8.8 KB
- references/search-faceted-navigation.md 4.4 KB
- references/search-implementation.md 5.5 KB
- references/search-optimization.md 2.8 KB
- references/search-performance.md 6.7 KB
- references/search-synonyms.md 5.5 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 16d ago Changed · +1 lines · -17 tokens per session 418f70b3e412
- 17d ago Changed 2538849ca7a2
- 23d ago Changed · +2 lines 95451090e771
- 1mo ago Changed · -121 lines 4d195bcfefe2
- 3mo ago First seen · 590 lines · 94 tokens per session scan A 588bffccde1e
backend-search-patterns is a skill published in the GitHub repository j4flmao/agent-skills (47 stars, last pushed 17d ago), licensed MIT. It adds 77 tokens to every session and 5,154 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
backend-search-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| backend-search-patternsj4flmao/agent-skills | Skill | 47 | 17d ago | MIT | A | 77 | Claude Code, Codex |
| event-store-designwshobson/agents | Skill | 43k | 2d ago | MIT | A | 33 | Claude Code |
| platform-custom-field-generateforcedotcom/sf-skills | Skill | 1.2k | 7d ago | Apache-2.0 | A | 139 | Claude Code |
| field-service-sobject-create-configureforcedotcom/sf-skills | Skill | 1.2k | 7d ago | Apache-2.0 | A | 74 | Claude Code |
| nornicdb-grpcorneryd/NornicDB | Skill | 936 | today | MIT | A | 98 | Claude Code, Codex |
| firebaseericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 77 | Claude Code, Codex |
| azure-resource-manager-sql-dotnetbenjaminasterA/antigravity-awesome-skills | Skill | 527 | yesterday | MIT | A | 0 | Claude Code, Codex |