elasticsearch

elasticsearch is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 43 tokens per session (1,585 once invoked), scanned A, original, MIT.

An operational guide for Elasticsearch, a distributed system that stores documents for search and analytics. It covers field definitions, data-retention rules, queries, cluster health, data-ingest pipelines, and safer reindexing.

In plain words
What is it for?
Use it to design search indexes, investigate slow queries or failed bulk writes, manage log and metrics retention, and reindex data through read/write aliases.
Why use it?
It helps agents avoid risky mapping changes, unhealthy clusters, overloaded indexes, and reindexing that breaks applications.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the major-ai-skills plugin — 147 skills, 8 plugins shipped together

Good fit Use it to design search indexes, investigate slow queries or failed bulk writes, manage log and metrics retention, and reindex data through read/write aliases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivirgo/major-ai-skills/elasticsearch
Install

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.

Any agent
npx skills add alivirgo/Major-AI-Skills --skill elasticsearch
Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills

Made for: Claude Code.

Or install major-ai-skills, the plugin that ships this one along with the rest of its 147 skills, 8 plugins.

Wrote 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.

agentmods badge for elasticsearch

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/elasticsearch/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/elasticsearch)
Your own site
<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.

agentmods 80×15 button for elasticsearch

Your own site · 80×15
<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>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,585 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash 3e6b8c46e8cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 \
skills/elasticsearch/SKILL.md · 164 lines

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

  1. Connection/auth safety: HTTPS + API keys or native security; never expose :9200 anonymously on the public internet; rotate keys; use least-privilege roles per index pattern.
  2. Mappings: Explicit properties for prod fields; disable or limit dynamic mapping; use keyword for filter/sort/agg, text for search (multi-fields when both needed).
  3. Aliases: Clients read/write logs-write / logs-read aliases; reindex to logs-v2, atomic alias flip—never delete old index until verified.
  4. Backpressure: Bulk with bounded batch bytes/docs; exponential backoff on 429 and circuit_breaking_exception; watch thread pools and indexing pressure.
  5. Index design: Shard count is hard to change—start conservative; use ILM rollover on size/age; avoid oversharding small clusters.
  6. 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.
  7. Exactly-once myth: Ingest pipelines may retry; use _id or external version for idempotent indexing; consumers of search results still see near-real-time delay (refresh_interval).

Read the full file on GitHub · 164 lines

Files

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.

Changes

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.

  1. 2mo ago Changed · +31 lines · +18 tokens per session scan B → A 3e6b8c46e8cb
  2. 2mo ago Changed · -6 tokens per session 5cc5dd05986c
  3. 3mo ago First seen · 133 lines · 31 tokens per session scan B 32cdad0563c5

Subscribe to this mod's changes

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.

Related

elasticsearch compared with skills from other repositories

elasticsearch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
elasticsearchalivirgo/Major-AI-SkillsSkill6yesterdayMITA43Claude Code
Elasticsearch Testing PatternsPramodDutta/qaskillsSkill2531mo agoMITA27Claude Code, Codex
elasticsearch-expertpersonamanagmentlayer/pclSkill471mo agoApache-2.0A41Claude Code
elasticsearch-mcpFriz-zy/ai-capability-registrySkill127d agoMITA15Claude Code, Codex
elasticsearchchaterm/terminal-skillsSkill609mo agoApache-2.0A8Claude Code, Codex
nestjs-searchFilippoDeSilva/skillsSkill25mo agononeA29Claude Code, Codex
accounting-software-selectionsickn33/agentic-awesome-skillsSkill51ktodayMITA37Claude Code