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.
npx skills add antflydb/antfly --skill antfly-retrievalgit clone --depth 1 https://github.com/antflydb/antflyWrote 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/antflydb/antfly/antfly-retrieval)<a href="https://agentmods.dev/skills/antflydb/antfly/antfly-retrieval"><img src="https://agentmods.dev/badge/skills/antflydb/antfly/antfly-retrieval/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/antflydb/antfly/antfly-retrieval"><img src="https://agentmods.dev/badge/skills/antflydb/antfly/antfly-retrieval.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.00000 | $0.00527 |
| Opus 5.5 | $0.00000 | $0.00211 |
| Sonnet 5.5 | $0.00000 | $0.00105 |
| Haiku 4.5 | $0.00000 | $0.00053 |
Grade A, and why
antfly-retrieval 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.
How it starts
The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Antfly Retrieval
Use this skill when an agent needs tenant-scoped context from Antfly tables, either as raw evidence or as a synthesized, cited answer.
Pick the right tool
| Need | Use |
|---|---|
| Exact records you can describe as a query | MCP query (see the antfly-query-builder skill) |
| One document by key | MCP get_document |
| Retrieval plus generation in one bounded call | MCP retrieval |
| A multi-step, cited report over tables and the web | MCP research (see the antfly-research skill) |
retrieval and research run Antfly's native agents. When your client supports the MCP tasks extension they
run as durable tasks: the call returns a task id at once and you poll for the result while you keep working.
retrieval falls back to a synchronous call for clients without tasks.
Retrieval arguments
query: the user's question, verbatim.queries: one or more retrieval queries. Each needs atable; addsemantic_searchorfull_text_search,indexes,fieldsandlimitas you would in aQueryRequest. A baretableNameis shorthand for one full-text query against that table.steps: optional native retrieval steps (for examplegenerationwith ageneratororchain). Without a generation step the agent returns ranked evidence only.
Direct matches versus grouped documents
Documents ingested with chunking are hierarchical: a source document has units (pages, sections) and chunks. Read references/hierarchy.md before you query hierarchical tables. In short:
- Prefer direct matches (
hierarchy: {}plus boundedancestorsprojections) when the matched chunks are the evidence you need. - Use
hierarchy.group_bywithmatcheswhen you need one hit per source document with its best passages. - Use
hierarchy.childrenwithorder_by: [{"field": "_hierarchy.position"}]to read a document in order. - Never request
_chunks.*; it expands the stored child array and overflows the response budget.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- yesterday First seen · 44 lines · 0 tokens per session scan A b454108b3015
antfly-retrieval 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 527 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.
antfly-retrieval compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| antfly-retrievalantflydb/antfly | Skill | 535 | today | Apache-2.0 | A | 0 | Claude Code, Codex |
| xerjxerj-org/xerj | Skill | 24k | today | Apache-2.0 | A | 38 | Claude Code, Codex |
| swiftidebosun-ai/swiftide | Skill | 813 | yesterday | MIT | A | 43 | Claude Code, Codex |
| exportbibinprathap/VeritasGraph | Skill | 328 | 5d ago | MIT | A | 29 | Claude Code |
| assessing-vector-and-embedding-weaknessesadriannoes/awesome-agentic-ai | Skill | 108 | 6d ago | MIT | A | 26 | Claude Code, Codex |
| testing-prompt-injection-in-rag-pipelinesadriannoes/awesome-agentic-ai | Skill | 108 | 6d ago | MIT | B | 26 | Claude Code, Codex |
| role-ai-ml-engineeroyi77/1ai-skills | Skill | 19 | yesterday | MIT | A | 45 | Claude Code |