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 lukasrepublic/agentic-foundry --skill fastify-backend-patternsgit clone --depth 1 https://github.com/lukasrepublic/agentic-foundryWrote 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/lukasrepublic/agentic-foundry/fastify-backend-patterns)<a href="https://agentmods.dev/skills/lukasrepublic/agentic-foundry/fastify-backend-patterns"><img src="https://agentmods.dev/badge/skills/lukasrepublic/agentic-foundry/fastify-backend-patterns/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/lukasrepublic/agentic-foundry/fastify-backend-patterns"><img src="https://agentmods.dev/badge/skills/lukasrepublic/agentic-foundry/fastify-backend-patterns.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.01684 |
| Opus 5.5 | $0.00000 | $0.00674 |
| Sonnet 5.5 | $0.00000 | $0.00337 |
| Haiku 4.5 | $0.00000 | $0.00168 |
Grade A, and why
fastify-backend-patterns 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.
How it starts
The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
When to trigger
- Implementing a spec that names api work in the backend package.
- Authoring a new route handler (GET/POST/PUT/PATCH/DELETE) for a resource.
- Adding or modifying schema validation (request body, query params, response shape).
- Writing a new Fastify plugin (encapsulating a service, middleware, or feature module).
- Authoring a DB migration in the api migrations directory.
- Wiring a queue producer-side dispatch from a route handler.
Procedure
-
Place the route file under
src/routes/<resource>/<verb>.tsper the package convention. Register the route via a Fastify plugin encapsulated insrc/routes/<resource>/index.ts(or per the existing folder structure — readsrc/routes/before adding new files). -
Declare request and response schemas using Fastify's schema-validator integration (Zod or TypeBox per the project convention). Attach schemas to the route options object:
{ schema: { body: BodySchema, response: { 200: SuccessSchema, 4xx: ErrorSchema } } }. No unvalidated routes. -
Register route via Fastify plugin: wrap route registrations in
fastify.register(async function(instance) { instance.get(...) }). Plugin scope ensures encapsulation of prefix, decorators, and hooks. -
Error handler: return a structured
{ error: string, code: string }(or the project's error shape) rather than throwing untyped errors. Usefastify.setErrorHandlerat the plugin level for domain-specific error mappings. Never throw a raw JSErrorfrom a route handler — map it to an HTTP status code with a structured body. -
DB migration: place the migration file in
migrations/<timestamp>-<slug>.sql(or the migration-tool format the project uses). Migrations are append-only and reversible — include a down migration or add a-- no-op down: <reason>comment. Never edit a landed migration. -
Queue producer dispatch: follow the
bullmq-jobsskill's producer pattern. Add a// dispatched-to: <queue-name>comment at eachqueue.add()call site so the consumer is traceable from the producer.
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 · 82 lines · 0 tokens per session scan A c90a87ac9845
fastify-backend-patterns is a skill published in the GitHub repository lukasrepublic/agentic-foundry (0 stars, last pushed 23d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,684 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-08-31.
fastify-backend-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fastify-backend-patternslukasrepublic/agentic-foundry | Skill | 0 | 23d ago | MIT | A | 0 | Claude Code |
| spine-designtonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 62 | Claude Code |
| warden-hardentonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 61 | Claude Code |
| cortex-integratetonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 58 | Claude Code |
| spine-apitonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 57 | Claude Code |
| spine-perftonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 55 | Claude Code |
| spine-reviewtonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 52 | Claude Code |