Skip to content
Back to skills

Esql Query Builder

ASecurity

"Guide the Elasticsearch Python ES|QL builder, safe parameterized

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
databasespythonrustsqlexpressapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill esql-query-builder --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Esql Query Builder?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Esql Query Builder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-esql-query-builder/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-esql-query-builder)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: esql-query-builder
description: "Guide the Elasticsearch Python ES|QL builder, safe parameterized
  queries, sync/async execution, functions, and tabular response conversion."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# ES|QL query builder

Use this route for ES|QL source/processing commands, Python expressions,
parameterized user input, `client.esql.query()`, or ES|QL table results. The
builder is technical preview at this source snapshot; check the target client
and server versions before relying on it.

## Fast route

1. Build a source with `ESQL.from_(...)`, `ESQL.row(...)`, `ESQL.show("INFO")`,
   `ESQL.ts(...)`, or `ESQL.branch()`.
2. Chain processing commands such as `.where(...)`, `.keep(...)`, `.eval(...)`,
   `.sort(...)`, `.stats(...)`, `.limit(...)`, `.metadata(...)`, and other
   methods on the returned `ESQLBase` object.
3. Render with `str(query)` or `query.render()` and review the result offline.
4. Pass the builder to `client.esql.query(query=query, params=[...])`; await the
   call for `AsyncElasticsearch`. Keep untrusted values in `params`, not in
   concatenated query strings.

Read [api-reference.md](references/api-reference.md) for sources, expressions,
and execution parameters; [workflows.md](references/workflows.md) for safe
recipes; [pandas-integration.md](references/pandas-integration.md) for tabular
conversion; and [troubleshooting.md](references/troubleshooting.md) for preview,
syntax, optional-dependency, and response issues. Run
[scripts/esql_query_smoke.py](scripts/esql_query_smoke.py) for offline checks.

## Offline example

```python
from elasticsearch.esql import E, ESQL

query = (
    ESQL.from_("employees")
    .keep("first_name", "last_name")
    .where(E("first_name") == E("?"))
    .limit(10)
)
print(query.render())
# client.esql.query(query=query, params=[name])  # requires a live cluster
```

Do not treat rendering as server validation. Check index names, privileges,
ES|QL feature availability, response columns/values, and server version when
executing.

Files in this skill

  • SKILL.md2 KB
  • references/api-reference.md1.5 KB
  • references/pandas-integration.md960 B
  • references/troubleshooting.md1.8 KB
  • references/workflows.md1.4 KB
  • scripts/esql_query_smoke.py1011 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.