elasticsearch

elasticsearch is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 25 tokens per session (1,078 once invoked), scanned B, 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 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,078 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. 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.00025 $0.01078
Opus 5 $0.00013 $0.00539
Sonnet 5 $0.00005 $0.00216
Haiku 4.5 $0.00003 $0.00108

Measured yesterday against content hash 5cc5dd05986c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

elasticsearch scanned grade B with 2 findings 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 yesterday.

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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -s localhost:9200/products/_search -H 'Content-Type: application/json' -d '{

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s localhost:9200/_cluster/health?pretty
skills/elasticsearch/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Elasticsearch Search Cluster AI Skill Guide

Overview

Elasticsearch is a distributed search and analytics engine. Documents live in indices sharded across nodes; mappings define field types; queries use the JSON DSL. Agents should treat mapping changes as high-risk (many require reindex), watch cluster health (green/yellow/red), and use Index Lifecycle Management (ILM) for time-series log indices.

Ingest (Beats/Logstash/OTel/app)
        |
        v
Coordinating + data nodes
        |
        +--> primary shards / replicas
        +--> ILM hot -> warm -> delete

Note: OpenSearch forks share many APIs; confirm product-specific differences before copying settings.

When to use

  • Designing index mappings and analyzers for search features
  • Debugging slow queries, mapping explosions, or rejected bulk requests
  • Setting ILM policies for logs/metrics indices
  • Reindexing safely after mapping fixes

Operational directives

  1. Check GET _cluster/health and node disk watermarks before heavy indexing.
  2. Define explicit mappings for production fields - avoid dynamic mapping blowups.
  3. Use aliases (logs-write, logs-read) so reindex/cutover does not break clients.
  4. Prefer bulk API with backoff; respect 429 / circuit breakers.
  5. Never delete indices without confirming alias targets and retention policy.

Concrete examples

Index + mapping

PUT /products-v1
{
  "settings": { "number_of_shards": 1, "number_of_replicas": 1 },
  "mappings": {
    "properties": {
      "name": { "type": "text", "fields": { "keyword": { "type": "keyword" } } },
      "price": { "type": "scaled_float", "scaling_factor": 100 },
      "created_at": { "type": "date" }
    }
  }
}

Alias cutover after reindex

POST /_reindex
{
  "source": { "index": "products-v1" },
  "dest": { "index": "products-v2" }
}

POST /_aliases
{
  "actions": [
    { "remove": { "index": "products-v1", "alias": "products" } },
    { "add": { "index": "products-v2", "alias": "products" } }
  ]
}

Read the full file on GitHub · 133 lines

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. yesterday Changed · -6 tokens per session 5cc5dd05986c
  2. 7d 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 (1 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 1,078 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

Elasticsearch Testing Patterns

Elasticsearch testing including index management, query validation, mapping verification, bulk operation testing, and search relevance scoring.

PramodDutta/qaskills · 27 tokens

algolia-search

Algolia Search Integration workflow skill. Use this skill when the user needs Expert patterns for Algolia search implementation, indexing and the operator should preserve the upstream workflow, copied support files, and provenance before merging or handing off.

diegosouzapw/awesome-omni-skills · 48 tokens

mysql-expert

Design, optimize, and maintain MySQL databases. Covers schema design, indexing strategies, query optimization, replication, and performance tuning.

AtulPurohit/Antigravity-Awesome-Skills · 30 tokens

postgresql-expert

Design, optimize, and administer PostgreSQL databases. Covers advanced indexing, partitioning, full-text search, JSON operations, replication, and performance tuning.

AtulPurohit/Antigravity-Awesome-Skills · 35 tokens

mongodb

Use when modeling MongoDB documents (embed versus reference, the 16MB cap, bucket and subset patterns), choosing or fixing indexes (compound order by the ESR rule, partial, TTL, multikey, reading explain), writing aggregation pipelines that stay index-eligible, running multi-document transactions with retry, or…

ericrisco/rsc-harness · 118 tokens

mysql

Use when designing, querying, indexing or operating a MySQL or MariaDB database and engine-specific behaviour matters — schema and type choices, index design, reading EXPLAIN, online schema change, replication and replica lag, locking and InnoDB deadlocks, charset traps, and server config. NOT portable…

ericrisco/rsc-harness · 116 tokens