elastic/agent-skills/elasticsearch-query-optimization
Diagnose slow Elasticsearch Query DSL searches and propose measured fixes. Use when a search is slow, profile output shows an expensive clause, exact-match filters sit in scoring context, or leading wildcards dominate latency. Ground every recommendation in search profiling — move non-scoring clauses to filter context, eliminate leading wildcards, and re-profile to confirm improvement.
Agent skill · version 0.0.0-main.1794519712.g09d879d · from elastic/agent-skills
Install
npx yarkr-cli add skill:elastic/agent-skills/elasticsearch-query-optimizationWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:elastic/agent-skills/elasticsearch-query-optimization
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:elastic/agent-skills/elasticsearch-query-optimizationOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:elastic/agent-skills/elasticsearch-query-optimizationWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.