antfly-query-builder

antfly-query-builder is a skill for Claude Code, Codex from antflydb/antfly. It costs 0 tokens per session (446 once invoked), scanned A, original, Apache-2.0.

A guide for turning a user's intent into a concrete Antfly table query. It explains when to inspect tables and indexes, when to use a query builder, and when to run a known query directly.

In plain words
What is it for?
Use it to inspect table structure, choose full-text or semantic search, build a QueryRequest, and run or review database queries.
Why use it?
It helps avoid querying the wrong table, fields, or index and keeps natural-language requests separate from deterministic query execution.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect table structure, choose full-text or semantic search, build a QueryRequest, and run or review database queries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/antflydb/antfly/antfly-query-builder
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add antflydb/antfly --skill antfly-query-builder
Clone the repo
git clone --depth 1 https://github.com/antflydb/antfly

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for antfly-query-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/antflydb/antfly/antfly-query-builder/github.svg)](https://agentmods.dev/skills/antflydb/antfly/antfly-query-builder)
Your own site
<a href="https://agentmods.dev/skills/antflydb/antfly/antfly-query-builder"><img src="https://agentmods.dev/badge/skills/antflydb/antfly/antfly-query-builder/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.

agentmods 80×15 button for antfly-query-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/antflydb/antfly/antfly-query-builder"><img src="https://agentmods.dev/badge/skills/antflydb/antfly/antfly-query-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 446 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00446
Opus 5.5 $0.00000 $0.00178
Sonnet 5.5 $0.00000 $0.00089
Haiku 4.5 $0.00000 $0.00045

Measured yesterday against content hash 480050c46581, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

antfly-query-builder 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 yesterday.

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.

zig/pkg/antfly/src/api/ard/skills/antfly-query-builder/SKILL.md · 36 lines

What it actually says

Antfly Query Builder

Use this skill when an agent needs to translate user intent into an Antfly table query.

Choose the surface

  • The intent is underspecified (which table, which fields, which index): call the native query builder, POST /db/v1/agents/query-builder with {"intent": "...", "table": "..."}, or the A2A query-builder skill. It inspects the table and returns a concrete QueryRequest you can review before running.
  • The caller already knows the query shape: run it directly with the MCP query tool (or POST /db/v1/tables/{table}/query).

The MCP server is deliberately deterministic. It never plans natural-language queries itself.

Inspect before you query

  1. list_tables, then describe_table for the table you need. It returns schema, indexes and status.
  2. describe_indexes tells you which index names exist and what they cover (full text, embeddings, graph).
  3. sample_documents with a small limit and explicit fields shows real field names and value shapes.
  4. describe_query_request returns the compact QueryRequest reference and examples.

Run the query

The query tool has two exclusive modes; never mix them:

  • Shorthand: fullTextSearch, fullTextSearchField, fullTextIndex, semanticSearch, fields, limit, orderBy, indexes, filterPrefix.
  • Raw: queryRequest, the full /tables/{table}/query body. Use tableName to select the table; a queryRequest.table field is rejected.

Always set fields and a modest limit (5–20). Results larger than the server's MCP budget (96 KiB by default) come back as an actionable error instead of data; narrow fields and limit and retry.

Keep table and field selection scoped to what the authenticated identity can see. A table missing from list_tables is not available to you; do not guess its name.

Changes

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.

  1. yesterday First seen · 36 lines · 0 tokens per session scan A 480050c46581

Subscribe to this mod's changes

antfly-query-builder is a skill published in the GitHub repository antflydb/antfly (535 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 446 tokens. 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-12-03.

Related

antfly-query-builder compared with skills from other repositories

antfly-query-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
antfly-query-builderantflydb/antflySkill535todayApache-2.0A0Claude Code, Codex
changebibinprathap/VeritasGraphSkill3285d agoMITA27Claude Code
deduplicatebibinprathap/VeritasGraphSkill3285d agoMITA29Claude Code
querybibinprathap/VeritasGraphSkill3285d agoMITA26Claude Code
abi-superpower-wdbxdonaldfilimon/abiSkill189d agoApache-2.0A33Claude Code, Codex
wdbxdonaldfilimon/abiSkill189d agoApache-2.0A30Claude Code, Codex
chromaNousResearch/hermes-agentSkill268ktodayMITA12Claude Code, Codex