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/louisbrulenaudet/monorepo-templateWrote 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/louisbrulenaudet/monorepo-template/hono-gateway)<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/hono-gateway"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/hono-gateway/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/louisbrulenaudet/monorepo-template/hono-gateway"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/hono-gateway.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.02742 |
| Opus 5.5 | $0.00000 | $0.01097 |
| Sonnet 5.5 | $0.00000 | $0.00548 |
| Haiku 4.5 | $0.00000 | $0.00274 |
Grade A, and why
hono-gateway 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.
How it starts
The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Hono Gateway (Workers) Rules
worker-api and sibling worker-* / webhook-* apps run Hono on Cloudflare Workers. Depth: skills hono, workers-best-practices.
Middleware order (src/index.ts)
Register in this order; "before" logic runs top-down, response mutation bottom-up. Steps 1-4 and the error handlers are individual exports of @repo/hono-middleware (AGENTS.md); each app registers them itself so the order stays visible in its index.ts.
Root app (every route):
requestIdMiddleware- first, so every later middleware,errorHandler, and response can reference it. Mintscrypto.randomUUID()intoc.get("requestId"), tagsrequest_idon the Sentry scope (withSentryopens the per-request isolation scope aroundapp.fetch, before any middleware), and setsX-Request-Idafternext(), soonError/notFoundresponses carry it. It never reads an inboundX-Request-Id: a caller-supplied id could carry a user identifier, and a shared id would no longer name one invocation.sentryMiddleware(app, { release })- wrapssentry()from@sentry/hono/cloudflare, whose direct import oxlint blocks in apps. It reportsc.error5xx even whenonErrorhandles the error: never addcaptureExceptionthere. The locked-downdataCollection(no user info, cookies, headers, bodies, query params, frame variables, database query data, queue payloads, AI, GraphQL, or MCP inputs and outputs) and the console-breadcrumb drop live in the package; never loosen them per app.jsonMethodNotAllowed(app)-405plusAllowwhen the path exists but the method does not.apiSecureHeaders(hono/secure-headers) - defaults (HSTS,nosniff,no-referrer, COOP/CORP,X-Powered-Byremoved) plus CSPdefault-src 'none'; frame-ancestors 'none'(harmless for JSON, hardening if a response is ever rendered - keep it) and apermissionsPolicydenying camera/mic/geolocation/payment. CORPsame-originis fine for CORS-modefetchfromfront-app; never disable it to fix SPA reads.cors()on/api/*(gateway-localsrc/middlewares/cors.ts) - preflightOPTIONSclears before auth/routes. Read the allowlist fromc.env.CORS_ORIGINSper request (env is unavailable at module scope on Workers).exposeHeadersisCORS_EXPOSED_HEADERSfrom@repo/enums-common, so browsers can readX-Request-IdandX-Worker-Version-Id. An empty allowlist is permissive (*) indevonly; any otherENVIRONMENT(staging, production, typos) must set origins or/api/*returns 503. A single-label prefix wildcard (https://*-front-app-production.<subdomain>.workers.dev, three or more labels after the wildcard label) is honored only whenENVIRONMENTisAppEnvironment.PREVIEW; anywhere else it returns 503. CORS and the CSRF gate share the matcher insrc/middlewares/cors-origins.ts.- Origin / CSRF gate on
/api/*(gateway-local) - unsafe methods only, anyContent-Typeincludingapplication/json; never blocks preflight. Allows when Origin is on the allowlist orSec-Fetch-Siteissame-origin/same-site. Hono'scsrf()covers only form content-types, so never rely on it alone here. Browser JSON mutations rely on this gate plus CORS: never reintroduce a permissive CSRF in strict environments.
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 01a43cd2e2e1
- 1mo ago Changed · +1 lines 1c56d032e9de
- 2mo ago Changed · -42 lines f6914cad46a7
- 2mo ago Changed · +11 lines 9759e8980eaf
- 2mo ago Changed · +3 lines fd74b0764f69
- 2mo ago Changed · +12 lines 815f285d4bab
- 3mo ago First seen · 91 lines · 0 tokens per session scan A 708f7890a854
hono-gateway is a cursor rule published in the GitHub repository louisbrulenaudet/monorepo-template (19 stars, last pushed 7d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,742 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.
hono-gateway compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hono-gatewaylouisbrulenaudet/monorepo-template | Cursor rule | 19 | 7d ago | Apache-2.0 | A | 0 | Cursor |
| cloudflare-workers-autousrrname/cursorrules | Cursor rule | 11 | 7mo ago | ISC | A | 0 | Cursor |
| cloudflare-workers-hono-autousrrname/cursorrules | Cursor rule | 11 | 7mo ago | ISC | A | 0 | Cursor |
| cloudflare-email-telegram-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 720 | Cursor |
| knative-istio-typesense-gpu-cursorrules-prompt-filPatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 613 | Cursor |
| netlify-official-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | C | 9,048 | Cursor |
| serverlessgirijashankarj/cursor-handbook | Cursor rule | 33 | 3mo ago | MIT | A | 378 | Cursor |