antfly-retrieval

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

A guide for finding information in Antfly tables, either as source records or as an answer with citations. It supports exact queries, single-record lookups, and retrieval that combines searching with answer generation.

In plain words
What is it for?
Use it to retrieve records, search text or meaning, answer questions from stored data, and return evidence for the answer.
Why use it?
It helps choose the right way to search instead of treating every question as the same kind of database query. It also supports tenant-scoped results and longer-running retrieval tasks.

Skill for Claude CodeCodex

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

Good fit Use it to retrieve records, search text or meaning, answer questions from stored data, and return evidence for the answer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/antflydb/antfly/antfly-retrieval
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-retrieval
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-retrieval

README.md
[![agentmods](https://agentmods.dev/badge/skills/antflydb/antfly/antfly-retrieval/github.svg)](https://agentmods.dev/skills/antflydb/antfly/antfly-retrieval)
Your own site
<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.

agentmods 80×15 button for antfly-retrieval

Your own site · 80×15
<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>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 527 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.00527
Opus 5.5 $0.00000 $0.00211
Sonnet 5.5 $0.00000 $0.00105
Haiku 4.5 $0.00000 $0.00053

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

Security

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.

zig/pkg/antfly/src/api/ard/skills/antfly-retrieval/SKILL.md · 44 lines

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 a table; add semantic_search or full_text_search, indexes, fields and limit as you would in a QueryRequest. A bare tableName is shorthand for one full-text query against that table.
  • steps: optional native retrieval steps (for example generation with a generator or chain). 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 bounded ancestors projections) when the matched chunks are the evidence you need.
  • Use hierarchy.group_by with matches when you need one hit per source document with its best passages.
  • Use hierarchy.children with order_by: [{"field": "_hierarchy.position"}] to read a document in order.
  • Never request _chunks.*; it expands the stored child array and overflows the response budget.

Read the full file on GitHub · 44 lines

Files

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.

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 · 44 lines · 0 tokens per session scan A b454108b3015

Subscribe to this mod's changes

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.

Related

antfly-retrieval compared with skills from other repositories

antfly-retrieval next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
antfly-retrievalantflydb/antflySkill535todayApache-2.0A0Claude Code, Codex
xerjxerj-org/xerjSkill24ktodayApache-2.0A38Claude Code, Codex
swiftidebosun-ai/swiftideSkill813yesterdayMITA43Claude Code, Codex
exportbibinprathap/VeritasGraphSkill3285d agoMITA29Claude Code
assessing-vector-and-embedding-weaknessesadriannoes/awesome-agentic-aiSkill1086d agoMITA26Claude Code, Codex
testing-prompt-injection-in-rag-pipelinesadriannoes/awesome-agentic-aiSkill1086d agoMITB26Claude Code, Codex
role-ai-ml-engineeroyi77/1ai-skillsSkill19yesterdayMITA45Claude Code