elasticsearch-cluster-health
Skill by elastic
Diagnoses a non-green Elasticsearch cluster in read-only mode and reports the single most likely cause with remediation. Built for operators who see yellow or red status or unassigned shards.
Install elasticsearch-cluster-health
Built from the published package, never by AI.
git clone --depth 1 https://github.com/elastic/agent-skills /tmp/agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agent-skills/skills/elasticsearch/elasticsearch-cluster-health ~/.claude/skills/elasticsearch-cluster-healthRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install elasticsearch-cluster-health in Claude Code
git clone --depth 1 https://github.com/elastic/agent-skills /tmp/agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-skills/skills/elasticsearch/elasticsearch-cluster-health ~/.gemini/antigravity-cli/skills/elasticsearch-cluster-healthAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install elasticsearch-cluster-health in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill triages a non-green Elasticsearch cluster without changing its state. It reads cluster health, picks the index that drives the overall status, and runs allocation explain on a representative unassigned shard. It then maps the blocking decider to a cause class, such as disk watermark, allocation filtering, awareness, or throttling.
The report names the single most likely cause and one remediation path. It separates yellow replica gaps, which carry no data loss, from red primary failures, which are flagged as urgent. The skill does not run reroutes, restores, or settings changes, so the operator applies any fix. It is written for operators who report yellow or red status or unassigned shards, and it requires the elastic CLI with stack es support.
Written from the project's SKILL.md and checked against it.
What it can do
- Read cluster statusChecks overall health and shard counters to decide whether triage is needed.
- Localize the problemPicks the single index that drives the cluster-wide status, favoring red and system indices.
- Run allocation explainExplains why a chosen unassigned shard cannot be allocated, using the allocation explain API.
- Classify the blocking deciderMaps decider results such as disk_threshold, filter, awareness, or throttling to a cause class.
- Recommend remediationReports the most likely cause and a primary fix, without executing any writes.
- Flag data loss riskWarns when a primary has no valid copy and explains snapshot and empty primary recovery paths.
What you need
- Elasticsearch 8.x or 9.x, self-managed or Elastic Cloud Hosted
- elastic CLI version 0.2 or later with stack es support
Try asking
- Why is my Elasticsearch cluster showing yellow status?
- Check unassigned shards on the logs index and explain the cause.
- Triage this red cluster read-only and tell me if data is at risk.
Good to know
- Read-only triage: it does not run reroutes, snapshot restores, or settings changes.
- Not applicable to Elastic Cloud Serverless, where cluster and allocation APIs are managed internally.
- Requires the elastic CLI; it does not call the HTTP API directly.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/elasticsearch/elasticsearch-cluster-health/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to elasticsearch-cluster-health
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
elasticsearch-cluster-health: common questions
Does yellow status mean I lost data?
No. The skill describes yellow as all primaries assigned with at least one replica missing, so data remains readable but redundancy is degraded.
Will this skill fix my cluster automatically?
No. It is read-only and only surfaces the cause and remediation advice, leaving any write actions to the operator.
Which Elasticsearch deployments does it support?
The source lists Elasticsearch 8.x or 9.x, self-managed or Elastic Cloud Hosted. It states Elastic Cloud Serverless is not applicable.
How do I install elasticsearch-cluster-health?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is elasticsearch-cluster-health free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is elasticsearch-cluster-health safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to elasticsearch-cluster-health?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
