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.
git clone --depth 1 https://github.com/blockmatic/basilicWrote 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/rules/blockmatic/basilic/fastify)<a href="https://agentmods.dev/rules/blockmatic/basilic/fastify"><img src="https://agentmods.dev/badge/rules/blockmatic/basilic/fastify/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/rules/blockmatic/basilic/fastify"><img src="https://agentmods.dev/badge/rules/blockmatic/basilic/fastify.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.00578 |
| Opus 5.5 | $0.00000 | $0.00231 |
| Sonnet 5.5 | $0.00000 | $0.00116 |
| Haiku 4.5 | $0.00000 | $0.00058 |
Grade A, and why
fastify 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 1mo 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
-
CRITICAL: Never edit
@repo/dbSQL migrations or OpenAPI schema files directly.- All DB changes MUST follow the Drizzle standard migration flow: update schema TypeScript (
packages/db/src/schema/tables/*.ts), thenpnpm --filter @repo/db db:generate—never touch generated migration SQL files. - OpenAPI schemas are autogenerated from API route code. Never modify generated OpenAPI files manually; always update the route schemas instead.
- All DB changes MUST follow the Drizzle standard migration flow: update schema TypeScript (
-
Each endpoint in its own file. Structure mirrors URL path:
routes/{domain}/{group}/{action}.ts. Examples:routes/auth/magiclink/request.ts,routes/auth/magiclink/verify.ts -
Keep handler code lean inside the route definition to leverage typescript inference (typebox schema based)
-
Collocate route definition, handler and typebox schema
-
Keep routes focused/single-purpose, use route grouping, thin handlers
-
Use @sinclair/typebox route schemas
-
Avoid unnecessary validations - Fastify already validates inputs based on route schemas
-
Pass
logger: request.logto@repo/errorfor Fastify's Pino logger with request context. -
Routes can throw - global handler catches/formats
-
Prefer the app error catalog in the global error handler;
@fastify/sensibleis optional and not registered by default
Testing
- Use
fastify.inject()for integration testing - Vitest ESM-native, tests TypeScript source directly (not built output)
- CRITICAL: pglite does NOT support concurrent writers reliably. Vitest parallelizes. Control worker boundaries and DB lifecycle strictly.
- Group entry pattern:
routes/{domain}/{group}/{group}.spec.tsis the only Vitest-discovered file per group. Owns Fastify + DB lifecycle. Imports route-level test modules - Route-level tests:
routes/{domain}/{group}/{endpoint}.test.tscontains pure test definitions (describe/it). No Fastify bootstrapping, no DB setup/teardown. Executes in same worker as importing.spec.ts - Vitest config:
include: ['**/*.spec.ts']only. Never include*.test.tsin include patterns, handle pglite db instantiation and teardown removal per worker. - Naming:
*.spec.ts= test entrypoints/worker boundary,*.test.ts= imported test modules. Do not mix.e2e-spec.ts,.spec.ts,.test.tsarbitrarily - Parallelism: Vitest runs test files in parallel, not
describe()blocks or imports. Imported files execute in same worker. DB initialized once per group entry file
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.
- 1mo ago Changed fdebd65fc7c0
- 2mo ago Changed · -548 tokens per session 14214f06d572
- 2mo ago First seen · 33 lines · 548 tokens per session scan A b28e603bffef
fastify is a cursor rule published in the GitHub repository blockmatic/basilic (90 stars, last pushed 22d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 578 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-30.
fastify compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fastifyblockmatic/basilic | Cursor rule | 90 | 22d ago | MIT | A | 0 | Cursor |
| trigger.basicagentset-ai/agentset | Cursor rule | 2.1k | 9d ago | MIT | A | 1,354 | Cursor |
| handle-rate-limiting-responsesPaulJPhilp/EffectPatterns | Cursor rule | 806 | 4mo ago | MIT | A | 1,598 | Cursor |
| control-repetition-with-schedulePaulJPhilp/EffectPatterns | Cursor rule | 806 | 4mo ago | MIT | A | 520 | Cursor |
| define-a-type-safe-configuration-schemaPaulJPhilp/EffectPatterns | Cursor rule | 806 | 4mo ago | MIT | A | 267 | Cursor |
| hatch3r-scalabilityhatch3r/hatch3r | Cursor rule | 26 | 1mo ago | MIT | A | 0 | Cursor |
| pn-rust-backendperniemann/pnCore | Cursor rule | 0 | 5d ago | MIT | A | 0 | Cursor |