inertia

inertia is a skill for Claude Code from filipebraida/adonisjs-starter-kit. It costs 155 tokens per session (3,001 once invoked), scanned A, original, MIT.

A guide for connecting AdonisJS server routes and React 19 pages with Inertia, a system that lets server-side routes render a browser interface without building a separate API for every page.

In plain words
What is it for?
It helps add pages, pass shared data, build forms, create type-checked links, and display modal screens in an AdonisJS and React application.
Why use it?
It prevents inconsistent page locations, form handling, URL creation, shared data, and application-wide provider setup.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps add pages, pass shared data, build forms, create type-checked links, and display modal screens in an AdonisJS and React application.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/filipebraida/adonisjs-starter-kit/inertia
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 inertia
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 inertia

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/inertia"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/inertia.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 155 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,001 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.00155 $0.03001
Opus 5.5 $0.00062 $0.01200
Sonnet 5.5 $0.00031 $0.00600
Haiku 4.5 $0.00015 $0.00300

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

Security

Grade A, and why

inertia 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 6d 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/inertia/SKILL.md · 187 lines

How it starts

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

Inertia

Inertia is the bridge between AdonisJS routes and React pages: controllers call inertia.render('<name>', { props }), the client resolves that name to a .tsx file inside a module's ui/pages/. Shared props flow globally through an Inertia middleware. Forms use the project <Form> (#core/ui/components/form), which wraps the AdonisJS <Form route> and feeds validation errors to its fields; URLs come from Tuyau's urlFor('route.name', params?) for type safety. Modals are Inertia responses too — inertia.modal(...) renders one page over another. Every provider (theme, i18n, tooltip, Tuyau, modal stack) is wired at the root client entry. The ui preset of @filipebraida/eslint-config-adonis enforces most rules below; an exception is a named block in apps/web/eslint.config.js, never an eslint-disable comment.

Rules

  • Page location: app/<mod>/ui/pages/<subpath>/<page>.tsx. Controllers reference the page by the path minus .tsx and everything before <mod>/: inertia.render('users/index') → app/users/ui/pages/index.tsx, inertia.render('users/create') → app/users/ui/pages/create.tsx. First segment = module.
  • Shell import: every page imports its layout shell explicitly ([[layout-shells]]). No runtime chooser.
  • Title: every page renders <Head title={t('<mod>.<page>.title')} /> from @inertiajs/react. A modal page (its component returns <Modal> as the root) keeps the title of the page under it.
  • Client entry mounts the global provider tree — theme, i18n, tooltip, Tuyau, modal stack. Don't reorder without reason; theme + i18n need to be outermost so shells see them.
  • Shared props: added by the Inertia middleware via ctx.inertia.always(...). Available on the frontend via a typed usePageProps<{...}>() hook. Per-request data (page-specific) goes in the controller's inertia.render(...) call, not in the middleware.
  • Form: default is the project <Form route="route.name"> from #core/ui/components/form, with <Field name> + <FieldError /> from the same module — the method comes from the route, errors reach each field through context, processing comes from the render prop. useForm from @inertiajs/react only for state that is not a flat set of named inputs (upload progress + preview, a controlled shared field component, a confirm button outside the <form>), and then the file opens with // useForm and not <Form>: <reason>.
  • URLs: never hardcode. <Link route="route.name" routeParams={{ id }}> from @adonisjs/inertia/react for links, urlFor('route.name', { param: value }, { qs }) from ~/app/client for programmatic visits and hrefs with a query string. Route names come from .as('route.name') in the module's routes.ts.
  • Dates and numbers go through #core/ui/format/date (formatDate, formatDateTime, formatRelativeTime) and #core/ui/format/number (formatNumber, formatCurrency, formatPercent) with the user's locale (useTranslation().language). No toLocaleString / Intl in a screen.
  • Capability-gated UI: useCan(CAPABILITIES_<MOD>.x) from @adonis-agora/authz-react for one check; useAllows() (#core/ui/hooks/use_allows) to filter a list in one render (nav items). Ask what the user can do, never which role they have — see [[authorization]].
  • Modals: the controller returns inertia.modal('<mod>/<page>', props, { route: 'backdrop.route' }) (adonis-inertia-modal). The modal page returns <Modal> from adonis-inertia-modal/react as its root and receives a close render prop.
  • Navigation between pages: router.visit(url); router.reload({ only: ['propName'], async: true }) for partial reloads; router.get/post/put/delete(url, data, options) for programmatic form submits.
  • Types: server-generated data types come from an ace codegen; the client alias makes them available across pages. Don't duplicate the type in the page — import type from the codegen path.

Read the full file on GitHub · 187 lines

Files

What ships with it

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

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. 6d ago Changed 8711fe9f60bc
  2. 14d ago Changed · +49 lines · +33 tokens per session a3fa7f223b12
  3. 3mo ago First seen · 138 lines · 122 tokens per session scan A 143571c75973

Subscribe to this mod's changes

inertia is a skill published in the GitHub repository filipebraida/adonisjs-starter-kit (98 stars, last pushed 2d ago), licensed MIT. It adds 155 tokens to every session and 3,001 once invoked, about $0.0006 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

inertia compared with skills from other repositories

inertia next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
inertiafilipebraida/adonisjs-starter-kitSkill982d agoMITA155Claude Code
calendarcnvmnog/calendarcnSkill1643d agoMITA76Claude Code, Codex
ui-beatsnikhils4/ui-beatsSkill2363mo agoMITA62Claude Code, Codex
declare-typesone-ie/oneSkill1356d agononeA49Claude Code, Codex
sdkone-ie/oneSkill1356d agononeA34Claude Code
frontend-engineerbuiphucminhtam/forgewrightSkill492d agononeA55Claude Code
react-doctorshipkit-io/bonesSkill21todaynoneA31Claude Code, Codex