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 alivirgo/Major-AI-Skills --skill elasticsearchgit clone --depth 1 https://github.com/alivirgo/Major-AI-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/alivirgo/major-ai-skills/elasticsearch)<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/elasticsearch"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/elasticsearch/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/alivirgo/major-ai-skills/elasticsearch"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/elasticsearch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00043 | $0.01585 |
| Opus 5.5 | $0.00017 | $0.00634 |
| Sonnet 5.5 | $0.00009 | $0.00317 |
| Haiku 4.5 | $0.00004 | $0.00159 |
Grade A, and why
elasticsearch 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 2mo 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 -s -H 'Content-Type: application/x-ndjson' -XPOST localhost:9200/_bulk \ How it starts
The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Elasticsearch Search Cluster AI Skill Guide
Overview & Engine Architecture
Elasticsearch is a distributed search and analytics engine: documents in indices (sharded, replicated), mappings define field types, queries use JSON DSL. Ingest is bulk-oriented; coordinators merge shard results. Mapping changes are mostly immutable—plan reindex + alias swap. OpenSearch shares many APIs; verify version-specific behavior.
Ingest (bulk / Beats / OTel)
-> coordinating node
-> primary/replica shards (Lucene segments)
-> merge / refresh / flush
-> ILM: hot -> warm -> cold -> delete
Visibility index (async) != transactional DB
When to use / when not to
Use when
- Full-text search, faceted browse, log/metrics search at scale
- Time-series indices with ILM rollover and retention
- Aggregations over denormalized documents
Do not use when
- You need primary OLTP with row-level updates as the main pattern (
@postgresql) - Join-heavy relational models without denormalization
- Someone wants dynamic mapping on unbounded user keys in production—block or constrain
Operational Capabilities & Agent Directives
- Connection/auth safety: HTTPS + API keys or native security; never expose
:9200anonymously on the public internet; rotate keys; use least-privilege roles per index pattern. - Mappings: Explicit
propertiesfor prod fields; disable or limit dynamic mapping; usekeywordfor filter/sort/agg,textfor search (multi-fields when both needed). - Aliases: Clients read/write
logs-write/logs-readaliases; reindex tologs-v2, atomic alias flip—never delete old index until verified. - Backpressure: Bulk with bounded batch bytes/docs; exponential backoff on
429andcircuit_breaking_exception; watch thread pools and indexing pressure. - Index design: Shard count is hard to change—start conservative; use ILM rollover on size/age; avoid oversharding small clusters.
- Backup/restore: Snapshot repositories (S3/GCS); restore creates new indices—rename/alias carefully; snapshot restore is not a merge into live index names without downtime plan.
- Exactly-once myth: Ingest pipelines may retry; use
_idor external version for idempotent indexing; consumers of search results still see near-real-time delay (refresh_interval).
What ships with it
2 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.
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.
- 2mo ago Changed · +31 lines · +18 tokens per session scan B → A 3e6b8c46e8cb
- 2mo ago Changed · -6 tokens per session 5cc5dd05986c
- 3mo ago First seen · 133 lines · 31 tokens per session scan B 32cdad0563c5
elasticsearch is a skill published in the GitHub repository alivirgo/Major-AI-Skills (6 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 1,585 once invoked, about $0.0002 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-05.
elasticsearch compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| elasticsearchalivirgo/Major-AI-Skills | Skill | 6 | yesterday | MIT | A | 43 | Claude Code |
| Elasticsearch Testing PatternsPramodDutta/qaskills | Skill | 253 | 1mo ago | MIT | A | 27 | Claude Code, Codex |
| elasticsearch-expertpersonamanagmentlayer/pcl | Skill | 47 | 1mo ago | Apache-2.0 | A | 41 | Claude Code |
| elasticsearch-mcpFriz-zy/ai-capability-registry | Skill | 12 | 7d ago | MIT | A | 15 | Claude Code, Codex |
| elasticsearchchaterm/terminal-skills | Skill | 60 | 9mo ago | Apache-2.0 | A | 8 | Claude Code, Codex |
| nestjs-searchFilippoDeSilva/skills | Skill | 2 | 5mo ago | none | A | 29 | Claude Code, Codex |
| accounting-software-selectionsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 37 | Claude Code |