routes

routes is a skill for Claude Code from filipebraida/adonisjs-starter-kit. It costs 121 tokens per session (1,765 once invoked), scanned A, original, MIT.

Rules for defining web routes in an AdonisJS module. A route connects a URL and HTTP method, such as GET or POST, to application code and can also apply access checks.

In plain words
What is it for?
Use them when adding CRUD endpoints, custom actions such as publish or activate, named URLs, middleware, or numeric URL parameters.
Why use it?
They make URLs, middleware, route names, and parameter types consistent. Numeric checks stop invalid values from reaching the database and causing server errors.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use them when adding CRUD endpoints, custom actions such as publish or activate, named URLs, middleware, or numeric URL parameters.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/filipebraida/adonisjs-starter-kit/routes
Install

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.

Any agent
npx skills add filipebraida/adonisjs-starter-kit --skill routes
Clone the repo
git clone --depth 1 https://github.com/filipebraida/adonisjs-starter-kit

Made for: Claude Code.

Wrote 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.

agentmods badge for routes

README.md
[![agentmods](https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/routes/github.svg)](https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/routes)
Your own site
<a href="https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/routes"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/routes/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.

agentmods 80×15 button for routes

Your own site · 80×15
<a href="https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/routes"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/routes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,765 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00121 $0.01765
Opus 5.5 $0.00048 $0.00706
Sonnet 5.5 $0.00024 $0.00353
Haiku 4.5 $0.00012 $0.00177

Measured 7d ago against content hash 6322b0a7449b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

routes 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 7d 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.

packages/skills/routes/SKILL.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Routes

Each module owns its routes.ts. The file is imported, in order, by apps/web/start/routes.ts, wired in [[module-scaffolding]] — there is no autoloader. Controllers are referenced through the generated registry (controllers.<mod>.<Name> from #generated/controllers, rebuilt by pnpm ace codegen or the dev server), and middleware comes from #start/kernel. Routes have three loads to bear: they're the source of truth for URL generation (typed clients like Tuyau and the server-side URL builder read the named routes), for the middleware chain that guards the endpoint, and for the param typing that keeps garbage input out of the ORM.

Rules

  1. Numeric params get router.matchers.number(). Without it, a non-numeric URL reaches the controller, Number('foo') → NaN, and Postgres throws invalid input syntax for type integer — the response is a 500. With the matcher the router 404s upstream, before boot.
  2. CRUD verbs go through router.resource(), trimmed with .only([...]) / .except([...]) to what the controller exposes. Custom verb actions (activate, publish, finalize) are separate router.post(...) in the same file, each on its own single-action controller (<verb>_<object>_controller.ts, only handle()) — never an extra method on the resource controller. See [[crud]] for the two controller shapes.
  3. Reference controllers via the registry. [controllers.users.ImpersonateUser] for a single-action controller (resolves to handle), [controllers.users.Invite, 'store'] when naming a resource method, controllers.users.Users for router.resource. Never import UsersController from ... or a lazy () => import(...) in a routes file.
  4. Every route is named with .as(...), following the URL hierarchy: parents.children.action. Named routes are the single source of truth for both the typed frontend URL client and the server-side urlFor(...) / signedUrlFor(...) used in mails and workflows. Both derive the URL from the name; the name is a contract.
  5. Param names: the resource the route acts on is :id; every other param is camelCase, as the controller reads it (/parents/:parentId/children/:id). For a nested resource rename the parent segment with .params({ parents: 'parentId' }) and pin every id.
  6. Group by shared middleware. Put every route that shares the same auth/middleware stack inside one router.group(() => {...}).use([...]) block; a single route takes .middleware(middleware.auth()) (or .use(...)) directly. Public routes live outside, guarded ones inside.

Read the full file on GitHub · 97 lines

Changes

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.

  1. 7d ago Changed 6322b0a7449b
  2. 15d ago Changed · +11 lines · +23 tokens per session 12dcf2885c1c
  3. 3mo ago First seen · 86 lines · 98 tokens per session scan A 0e9f0f9b73fc

Subscribe to this mod's changes

routes is a skill published in the GitHub repository filipebraida/adonisjs-starter-kit (99 stars, last pushed yesterday), licensed MIT. It adds 121 tokens to every session and 1,765 once invoked, about $0.0005 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.

Related

routes compared with skills from other repositories

routes next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
routesfilipebraida/adonisjs-starter-kitSkill99yesterdayMITA121Claude Code
calendarcnvmnog/calendarcnSkill1644d agoMITA76Claude Code, Codex
ui-beatsnikhils4/ui-beatsSkill2363mo agoMITA62Claude Code, Codex
framework-nextjswahidyankf/ose-publicSkill12yesterdayMITA47Claude Code
declare-typesone-ie/oneSkill1358d agononeA49Claude Code, Codex
sdkone-ie/oneSkill1358d agononeA34Claude Code
frontend-engineerbuiphucminhtam/forgewrightSkill493d agononeA55Claude Code