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 kavo-labs/kavo --skill query-grammargit clone --depth 1 https://github.com/kavo-labs/kavoWrote 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/kavo-labs/kavo/query-grammar)<a href="https://agentmods.dev/skills/kavo-labs/kavo/query-grammar"><img src="https://agentmods.dev/badge/skills/kavo-labs/kavo/query-grammar/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/kavo-labs/kavo/query-grammar"><img src="https://agentmods.dev/badge/skills/kavo-labs/kavo/query-grammar.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00083 | $0.02216 |
| Opus 5 | $0.00042 | $0.01108 |
| Sonnet 5 | $0.00017 | $0.00443 |
| Haiku 4.5 | $0.00008 | $0.00222 |
Grade A, and why
query-grammar 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 4d ago.
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 — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Query grammar reference
Every generated findMany/findOne route (and the programmatic
findMany({ filter, sort, ... }) equivalent) is driven by one query model,
normalized in core/src/query/ (DefaultFilterParser, QueryNormalizer,
PaginationStrategy). This doc is end-user-safe — hand it to an API
consumer as-is. Full source: docs/internals/architecture/05-query-grammar.md
(operators/grammar) and docs/internals/architecture/12-relations-and-includes.md
(includes). What an entity allows through these params is configured via
allowed/relations on @Kavo — see the kavo-decorator skill.
Filtering — filter[field][operator]=value
| AST operator | Wire token | Example |
|---|---|---|
EQ |
eq |
filter[status][eq]=active |
NE |
ne |
filter[status][ne]=banned |
GT / GTE |
gt / gte |
filter[age][gte]=18 |
LT / LTE |
lt / lte |
filter[age][lt]=65 |
IN |
in |
filter[status][in]=active,pending |
NOT_IN |
notIn |
filter[role][notIn]=bot,test |
LIKE |
like |
filter[name][like]=%25john%25 |
ILIKE |
ilike |
filter[name][ilike]=%25john%25 |
BETWEEN |
between |
filter[createdAt][between]=2026-01-01,2026-06-01 |
IS_NULL |
isNull |
filter[deletedAt][isNull]=true |
IS_NOT_NULL |
isNotNull |
filter[deletedAt][isNotNull]=true |
Logical operators: AND (implicit), OR, NOT — wire tokens and, or,
not. Wire tokens are camelCase and exact-case matched, no aliases
(GTE/Gte are 400s).
- Multiple
filter[...]params AND together implicitly, including repeats on the same field:filter[age][gte]=18&filter[age][lt]=65. in/notIn: comma-separated by default (in=active,pending); the repeated-key formfilter[status][in][]=a&filter[status][in][]=balso works. Capped bylimits.inValues(default 100).between: exactly two comma-separated bounds.isNull/isNotNull: boolean-valued;isNull=false≡isNotNull=true— both spellings mean what they read as.like/ilike: never auto-wrap wildcards — pass%/_explicitly. Literal%/_escape with a backslash (\%,\_).ilikeis portable (LOWER(col) LIKE LOWER(:v)), identical across drivers. String columns only.- Relation-path filtering: dot notation (
filter[profile.city][eq]=Helsinki), permitted only on the filterable allowlist. This restricts root rows via a non-selecting join — it never loads or filters the included collection. - Nested boolean trees:
filteralso accepts one JSON-encoded value —?filter={"or":[{"name":{"eq":"admin"}},{"not":{"status":{"eq":"x"}}}]}— producing the identical AST as the bracket form. Bracket notation is sugar for the flat common case; JSON is the full-power escape hatch. When both appear on the same request, they AND together. - Nesting depth is capped by
limits.filterDepth(default 3).
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.
- 4d ago Changed 252729269246
- 8d ago First seen · 160 lines · 83 tokens per session scan A 2cdfe0770991
query-grammar is a skill published in the GitHub repository kavo-labs/kavo (14 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 2,216 once invoked, about $0.0004 per session on Opus 5. 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-09-02.
Other skills, from other repositories
servicenow-table-api
Foundational ServiceNow data access — generic Table API CRUD, Aggregate/stats roll-ups, and raw REST escape-hatch via the servicenow-api MCP server. Use when the agent must read, insert, update, patch, delete, count, or aggregate records in ANY ServiceNow table (including scoped app tables with no dedicated API), or…
prisma-8
Comprehensive guide for building with Prisma 8 (Prisma Next), the contract-first data layer. Use whenever working on Prisma code in a project that uses it — authoring or editing the data contract (contract.prisma, PSL, TypeScript builders), migrations, queries (db.orm / db.sql), runtime wiring (db.ts, middleware…
horse-database-pooling
Guide for setting up thread-safe database connection pooling (FireDAC / UniDAC) in multithreaded Horse applications.
ocli-api
Turn any OpenAPI/Swagger API into CLI commands and call them. Search endpoints with BM25, check parameters, execute — no MCP server needed.
db-infra-mocks
Propose minimal seams and local substitutes so tests run without real RDBMS/Redis/Mongo infrastructure.
mail-time
Use when building, wiring, reviewing, or debugging MailTime and ostrio:mailer email queues for horizontally scaled Node.js, Bun, or Meteor apps. Trigger on MailTime, MongoQueue, RedisQueue, PostgresQueue, mailTimePreset, JoSk email scheduling, Redis Cluster / KeyDB Cluster / Valkey useHashTags, KeyDB…