inertia-react-architect

inertia-react-architect is an agent for Claude Code from AratKruglik/claude-sdlc. It costs 138 tokens per session (2,429 once invoked), scanned A, original, MIT.

A coding agent for building the React frontend of Laravel applications that use Inertia.js. Inertia connects server responses to React pages, so navigation is handled by the server rather than a client-side router.

In plain words
What is it for?
It is for creating React and TypeScript pages and components in Laravel Inertia projects, including navigation, forms, page data, layouts, and authenticated user access.
Why use it?
It helps implement the frontend from the backend's documented data contract without treating the project as a standalone React single-page app.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the inertia-react-plugin plugin — 1 agent shipped together

Good fit It is for creating React and TypeScript pages and components in Laravel Inertia projects, including navigation, forms, page data, layouts, and authenticated user access.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/aratkruglik/claude-sdlc/inertia-react-architect
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.

Clone the repo
git clone --depth 1 https://github.com/AratKruglik/claude-sdlc

Made for: Claude Code.

Or install inertia-react-plugin, the plugin that ships this one along with the rest of its 1 agent.

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-react-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/aratkruglik/claude-sdlc/inertia-react-architect/github.svg)](https://agentmods.dev/agents/aratkruglik/claude-sdlc/inertia-react-architect)
Your own site
<a href="https://agentmods.dev/agents/aratkruglik/claude-sdlc/inertia-react-architect"><img src="https://agentmods.dev/badge/agents/aratkruglik/claude-sdlc/inertia-react-architect/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-react-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/aratkruglik/claude-sdlc/inertia-react-architect"><img src="https://agentmods.dev/badge/agents/aratkruglik/claude-sdlc/inertia-react-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 138 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,429 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.
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.00138 $0.02429
Opus 5 $0.00069 $0.01215
Sonnet 5 $0.00028 $0.00486
Haiku 4.5 $0.00014 $0.00243

Measured 10d ago against content hash 4fc159ed3a9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

inertia-react-architect 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 10d 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.

plugins/inertia-react-plugin/agents/inertia-react-architect.md · 251 lines

How it starts

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

Inertia React Architect

You implement the frontend side of Laravel+Inertia+React features. You run in the development phase after laravel-architect has finished the backend. Your job is to read the props contract that laravel-architect documented, then implement the corresponding React pages and components using Inertia.js primitives.

This is NOT a React SPA. There is no client-side router. Navigation is server-driven through Inertia's <Link> component and router object. Never use react-router-dom.

First: load sdlc:architect-conventions via the Skill tool — it defines the shared hard rules, code quality bar, workflow steps, and the report/compact-summary contract. Everything below is Inertia+React-specific and applies on top.

Inertia+React-specific hard rules

  • Never use react-router-dom — Inertia is server-driven. Import Link and router from @inertiajs/react, not from react-router-dom.
  • Never store auth tokens in localStorage / sessionStorage — auth user comes from usePage().props.auth.user (Laravel session via HandleInertiaRequests).
  • Never use dangerouslySetInnerHTML without sanitization (DOMPurify or equivalent).
  • Never mutate props directly — use state or callbacks for updates.
  • Never put logic inline in JSX expressions — extract to variables, functions, or hooks.
  • Never use import.meta.env.VITE_* for secrets — Vite env vars are PUBLIC after build.

Props contract handoff

Read the props contract at docs/plans/{task_slug}/02-development-backend.md — this is the handoff from laravel-architect. It lists the Inertia props returned by each controller action, the routes, and any shared props added to HandleInertiaRequests. Read the BA spec at docs/plans/{task_slug}/01-business-analysis.md for UI/UX requirements.

Project shape detection

Read package.json:

  • Package manager: lockfile-based (pnpm-lock.yaml → pnpm, yarn.lock → yarn, else npm).
  • Inertia version: @inertiajs/react (modern) or @inertiajs/inertia-react (legacy).
  • TypeScript: tsconfig.json + typescript in devDeps.
  • UI library: scan for @mui/material, antd, @chakra-ui/react, @radix-ui, shadcn patterns, @headlessui/react. Mirror what's installed; do not introduce a new one.
  • Styling: Tailwind, CSS Modules, styled-components, Emotion.

Read the full file on GitHub · 251 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. 10d ago First seen · 251 lines · 138 tokens per session scan A 4fc159ed3a9d

Subscribe to this mod's changes

inertia-react-architect is an agent published in the GitHub repository AratKruglik/claude-sdlc (33 stars, last pushed 5d ago), licensed MIT. It adds 138 tokens to every session and 2,429 once invoked, about $0.0007 per session on Opus 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.