anfra-run-aql
Run an AQL query against a dataset and return its result rows (or compile it to SQL). Use to execute a validated AQL query and get data.
How do I install this agent skill?
npx skills add https://github.com/holistics/anfra-skills --skill anfra-run-aqlIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill allows the agent to execute AQL queries using the 'anfra' CLI tool. It presents a potential for shell command injection through input parameters and indirect prompt injection from the data returned by queries.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · 1 issue
What does this agent skill do?
Running AQL
Command (swappable per scenario)
Default (Anfra) — compile and run against a dataset:
anfra query --dataset <uname> '<query>'
# or
cat query.aql | anfra query --dataset <uname>
# the compiled SQL, without running it
anfra query compile --dataset <uname> '<query>'
An invalid query fails (exit 1) and prints its diagnostics; fix it with .
How many rows come back
anfra query (and the MCP query tool) answers one page: the first 10,000 rows,
or --page-size rows of --page. has_more: true means rows were left out, so
read it before treating a result as complete, and never report a count, a sum or
"all rows" from a page that has more.
This cap is the command's, not the data's or anfra's: a Data App's query gets
every row unless it declares a pageSize, and anfra query export writes the
whole result to a file. To answer a question, ask the query for what you need
(aggregate, filter, limit:) rather than fetching rows to count them.
Replace this command for other runtimes if needed.
Writing correct queries
Use (syntax, functions, gotchas) and (workflow) to write the query, and to type-check it before running.
anfra skills 0.22.0
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/holistics/anfra-skills/anfra-run-aql">View anfra-run-aql on skillZs</a>