Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/aspectrr/deernpx agentmods add skills/aspectrr/deer/elasticsearch-esqlWrote 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.
[](https://agentmods.dev/skills/aspectrr/deer/elasticsearch-esql)<a href="https://agentmods.dev/skills/aspectrr/deer/elasticsearch-esql"><img src="https://agentmods.dev/badge/skills/aspectrr/deer/elasticsearch-esql/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.
<a href="https://agentmods.dev/skills/aspectrr/deer/elasticsearch-esql"><img src="https://agentmods.dev/badge/skills/aspectrr/deer/elasticsearch-esql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.01637 |
| Opus 5.5 | $0.00019 | $0.00655 |
| Sonnet 5.5 | $0.00009 | $0.00327 |
| Haiku 4.5 | $0.00005 | $0.00164 |
Grade A, and why
elasticsearch-esql scanned grade A with 0 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 3mo 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Elasticsearch ES|QL
Execute ES|QL queries against Elasticsearch.
What is ES|QL?
ES|QL (Elasticsearch Query Language) is a piped query language for Elasticsearch. It is NOT the same as:
- Elasticsearch Query DSL (JSON-based)
- SQL
- EQL (Event Query Language)
ES|QL uses pipes (|) to chain commands:
FROM index | WHERE condition | STATS aggregation BY field | SORT field | LIMIT n
Prerequisite: ES|QL requires
_sourceto be enabled on queried indices. Indices with_sourcedisabled (e.g.,"_source": { "enabled": false }) will cause ES|QL queries to fail.Version Compatibility: ES|QL was introduced in 8.11 (tech preview) and became GA in 8.14. Features like
LOOKUP JOIN(8.18+),MATCH(8.17+), andINLINE STATS(9.2+) were added in later versions. On pre-8.18 clusters, useENRICHas a fallback forLOOKUP JOIN(see generation tips).INLINE STATSand counter-fieldRATE()have no fallback before 9.2. Check references/esql-version-history.md for feature availability by version.
Environment Configuration
See Environment Setup for full connection configuration options (Elastic Cloud, direct URL, basic auth, local development).
Usage
Get Index Information (for schema discovery)
node scripts/esql.js indices # List all indices
node scripts/esql.js indices "logs-*" # List matching indices
node scripts/esql.js schema "logs-2024.01.01" # Get field mappings for an index
Execute Raw ES|QL
node scripts/esql.js raw "FROM logs-* | STATS count = COUNT(*) BY host.name | SORT count DESC | LIMIT 5"
Execute with TSV Output
node scripts/esql.js raw "FROM logs-* | STATS count = COUNT(*) BY component | SORT count DESC" --tsv
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.
- 3mo ago First seen · 184 lines · 47 tokens per session scan A 7503f7b6dba8
elasticsearch-esql is a skill published in the GitHub repository aspectrr/deer (405 stars, last pushed 7mo ago), licensed MIT. It adds 47 tokens to every session and 1,637 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
elasticsearch-esql compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| elasticsearch-esqlaspectrr/deer | Skill | 405 | 7mo ago | MIT | A | 47 | Claude Code, Codex |
| aws-essentialsericrisco/rsc-harness | Skill | 691 | 6d ago | MIT | A | 89 | Claude Code, Codex |
| infrahub-sotautomateyournetwork/netclaw | Skill | 740 | yesterday | Apache-2.0 | A | 71 | Claude Code |
| forge-infratonone-ai/tonone | Skill | 84 | 3d ago | MIT | A | 53 | Claude Code |
| forge-audittonone-ai/tonone | Skill | 84 | 3d ago | MIT | A | 54 | Claude Code |
| cache-designtonone-ai/tonone | Skill | 84 | 3d ago | MIT | A | 46 | Claude Code |
| cache-recontonone-ai/tonone | Skill | 84 | 3d ago | MIT | A | 45 | Claude Code |