elasticsearch-cli

elasticsearch-cli is a skill for Claude Code, Codex from abdullahkhawer/devops-skills. It costs 28 tokens per session (1,045 once invoked), scanned B, original, Apache-2.0.

An Elasticsearch API helper that uses curl to query search indexes, stored documents, field definitions, and cluster health. Elasticsearch is a search and data-storage system that exposes an HTTP interface.

In plain words
What is it for?
It is for searching indexes, inspecting documents and mappings, and checking whether an Elasticsearch cluster is healthy.
Why use it?
It provides a consistent way to target the right Elasticsearch instance and keep API keys out of displayed commands and results.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for searching indexes, inspecting documents and mappings, and checking whether an Elasticsearch cluster is healthy.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abdullahkhawer/devops-skills/elasticsearch-cli
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 abdullahkhawer/devops-skills --skill elasticsearch-cli
Clone the repo
git clone --depth 1 https://github.com/abdullahkhawer/devops-skills

Made for: Claude Code, Codex.

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-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/elasticsearch-cli/github.svg)](https://agentmods.dev/skills/abdullahkhawer/devops-skills/elasticsearch-cli)
Your own site
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/elasticsearch-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/elasticsearch-cli/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-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/elasticsearch-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/elasticsearch-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,045 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.00028 $0.01045
Opus 5.5 $0.00011 $0.00418
Sonnet 5.5 $0.00006 $0.00209
Haiku 4.5 $0.00003 $0.00104

Measured 23d ago against content hash c98defedca9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

elasticsearch-cli 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 23d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

mkdir -p ~/.elasticsearch && echo "<your-api-key>" > <CREDENTIAL_FILE> && chmod 600 <CREDENTIAL_FILE>

Makes network callslowCapability

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

description: Perform Elasticsearch operations using the Elasticsearch HTTP API via curl. Use for querying indices, documents, mappings, and cluster health.
skills/elasticsearch-cli/SKILL.md · 100 lines

How it starts

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

Elasticsearch CLI Skill

Use the instance and rules below when constructing all Elasticsearch API commands.

Instances

Update the table below with your Elasticsearch instance URLs and corresponding credential file paths:

Environment Base URL Credential File
Production https://<your-es-prod-url> ~/.elasticsearch/prod.token
Staging https://<your-es-staging-url> ~/.elasticsearch/staging.token

If the target instance is unclear, ask the user before running any command.

Prerequisites (one-time setup by user)

Generate an Elasticsearch API key for each instance you intend to use and save it to the corresponding credential file (see instance table above). Never print or display credential values. Do not perform these steps yourself.

mkdir -p ~/.elasticsearch && echo "<your-api-key>" > <CREDENTIAL_FILE> && chmod 600 <CREDENTIAL_FILE>

Command Format

All API calls use curl with the API key read from the instance's credential file:

curl -s -H "Authorization: ApiKey $(cat <CREDENTIAL_FILE>)" \
  "<BASE_URL>/<endpoint>" | jq .

Example (production):

curl -s -H "Authorization: ApiKey $(cat ~/.elasticsearch/prod.token)" \
  "https://<your-es-prod-url>/_cluster/health" | jq .

Available API Endpoints

Read-only (safe, no confirmation needed)

Endpoint Method Description
/_cluster/health GET Show cluster health status
/_cat/indices?v GET List all indices with stats
/_cat/nodes?v GET List cluster nodes
/_cat/shards?v GET List shard allocation
/<index>/_mapping GET Show field mappings for an index
/<index>/_settings GET Show index settings
/<index>/_search GET/POST Search documents (query in body)
/<index>/_count GET/POST Count matching documents
/<index>/_doc/<id> GET Get a document by ID
/_cat/aliases?v GET List index aliases
/_nodes/stats GET Show node-level statistics

Read the full file on GitHub · 100 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. 23d ago First seen · 100 lines · 28 tokens per session scan B c98defedca9e

Subscribe to this mod's changes

elasticsearch-cli is a skill published in the GitHub repository abdullahkhawer/devops-skills (8 stars, last pushed 24d ago), licensed Apache-2.0. It adds 28 tokens to every session and 1,045 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

Other skills, from other repositories

db-migration-helper

Use when generating database migration SQL from model or schema changes — compares current vs desired schema, detects diffs, outputs reversible safe migrations.

wu529778790/shenzjd-skills · 32 tokens

lore

SpecStory Lore - mine your SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more) into a persistent corpus, surface your reproducible workflows with corroborated evidence, and interactively forge the chosen ones into skills installed across all your agent harnesses. Use when the user…

specstoryai/getspecstory · 109 tokens

docs-manage

Manage the Grounded Docs MCP Server documentation index. Covers scraping and indexing documentation from URLs or local files, refreshing existing indexes with changed content, removing libraries from the index, and compacting the SQLite store. Use when you need to add, update, or delete indexed documentation, or…

arabold/docs-mcp-server · 67 tokens

release-db-config-sync

Compute the remote DB migration + Nacos config diff before a test release — apc release db-config-sync really spawns sync-test-migrations.ts --dry-run (never a stub) and diffs Nacos key dumps, stopping at the write boundary. green(0) no diff · staged(3) pending migrations/missing keys await approval · blocked(1) real…

Prismer-AI/PrismerCloud · 91 tokens

alembic-migration

Create, review, and apply database schema changes with Alembic. Use whenever a SQLAlchemy model is added or changed, a column/index/constraint needs to change, or a data backfill is required — anything that alters the PostgreSQL schema.

vstorm-co/full-stack-ai-agent-template · 56 tokens

fetch-url

Fetch a single URL and convert its content to Markdown. Use when you need to read a web page, documentation page, or API reference without indexing it. The content is returned as plain Markdown text on stdout.

arabold/docs-mcp-server · 45 tokens