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 filipebraida/adonisjs-starter-kit --skill queriesgit clone --depth 1 https://github.com/filipebraida/adonisjs-starter-kitWrote 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/filipebraida/adonisjs-starter-kit/queries)<a href="https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/queries"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/queries/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/filipebraida/adonisjs-starter-kit/queries"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/queries.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.00106 | $0.00606 |
| Opus 5.5 | $0.00042 | $0.00242 |
| Sonnet 5.5 | $0.00021 | $0.00121 |
| Haiku 4.5 | $0.00011 | $0.00061 |
Grade A, and why
queries 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 3mo 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.
What it actually says
Queries
Reads live in app/<mod>/queries/ — never services/ (those are for behavior with side effects). Types are defined inside the query file; the frontend consumes them via import type, so there is no duplication and no separate types/ file.
Two flavors — pick one, then open its reference
The two shapes never coexist in one task. Choose by what you're building:
- List query — a paginated CRUD table (search / filter / sort), returning
ModelPaginatorContract<Model>for a resourceindex. → references/list-queries.md. - Read model — an aggregate screen (dashboard, report): one query per business concept, composed by the controller with
Promise.all([...]). → references/read-models.md.
Rules (both flavors)
- Location:
app/<mod>/queries/<verb>_<subject>.ts— e.g.,list_users.ts,get_revenue_metrics.ts. - Shape: default-export a class with
async handle(input).Inputis a plaintypeorinterface. NoHttpContext. - Split by business concept — not by widget (fragmentation) and not per screen (couples the query to a UI).
- Frontend consumes types via
import typefrom the query file. Type-only imports are stripped at build, so the frontend never bundles server code. - Never return raw Lucid instances to Inertia — lists run through a Transformer variant ([[crud]]); read models return a plain object shape.
Doc refs
- Lucid pagination — https://lucid.adonisjs.com/docs/pagination
- CQRS reads (Martin Fowler) — https://martinfowler.com/bliki/CQRS.html
- Read models in CQRS — https://learn.microsoft.com/en-us/azure/architecture/patterns/cqrs
Testing
Unit-test the query directly (await new ListInvoices().handle({...})) with a factory-seeded DB inside wrapInGlobalTransaction. See [[testing]].
Related skills
[[crud]] · [[inertia]] · [[actions-events]] · [[testing]] · [[authorization]]
What ships with it
2 files 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.
- 3mo ago First seen · 40 lines · 106 tokens per session scan A 5282c305fcaf
queries is a skill published in the GitHub repository filipebraida/adonisjs-starter-kit (99 stars, last pushed 6d ago), licensed MIT. It adds 106 tokens to every session and 606 once invoked, about $0.0004 per session on Opus 5.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-08-30.
queries compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| queriesfilipebraida/adonisjs-starter-kit | Skill | 99 | 6d ago | MIT | A | 106 | Claude Code |
| calendarcnvmnog/calendarcn | Skill | 168 | 5d ago | MIT | A | 76 | Claude Code, Codex |
| ui-beatsnikhils4/ui-beats | Skill | 236 | 3mo ago | MIT | A | 62 | Claude Code, Codex |
| react-doctorshipkit-io/bones | Skill | 21 | 3d ago | none | A | 31 | Claude Code, Codex |
| migrate-radix-to-baseshadcn-ui/ui | Skill | 130k | yesterday | MIT | A | 61 | Cursor |
| build-with-tinybasetinyplex/tinybase | Skill | 5.2k | today | MIT | A | 90 | Claude Code, Codex |
| gpt-image-playgroundCookSleep/gpt_image_playground | Skill | 4.2k | yesterday | MIT | A | 164 | Claude Code, Codex |