Skip to content
inertia-rails avatar

Inertia Rails Architecture

Server-driven patterns and decision matrix for building Inertia Rails + React pages, forms, and data flows.

CCM score
55 of 100
skills.sh installs
555
GitHub stars
72
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers data loading, forms, navigation, and state management, routing each need to the matching Inertia skill
  • Includes a decision matrix and 10 ranked rules, such as no useEffect fetching, <Form> over fetch, and inertia_location for external redirects
  • Enforces passing data through render inertia: { key: value }, since @ivars are not automatically passed as props
  • Designed for developers adding pages, CRUD, or data displays in an Inertia Rails app

Install

$ npx -y skills add inertia-rails/skills --skill inertia-rails-architecture -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Inertia Rails Architecture

Server-driven architecture for Rails + Inertia.js + React when building pages, forms, navigation, or data refresh. Inertia is NOT a traditional SPA — the server owns routing, data, and auth. React handles rendering only.

The Core Mental Model

The server is the source of truth. React receives data as props and renders UI. There is no client-side router, no global state store, no API layer.

Before building any feature, ask:

  • Where does the data come from? → If server: controller prop. If user interaction: useState.
  • Who owns this state? → If it's in the URL or DB: server owns it (use props). If it's ephemeral UI: React owns it.
  • Am I reaching for a React/SPA pattern? → Check the decision matrix below first — Inertia likely has a server-driven equivalent.

Decision Matrix

Details

Repository
github.com/inertia-rails/skills
Categories
Frontend & UI Code, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the inertia-rails-architecture skill do?

inertia-rails-architecture gives server-driven architecture patterns for Inertia Rails with React, covering data loading, forms, navigation and state management. It acts as a decision matrix that routes an agent to the right Inertia skill before building a page or feature.

How do I install the inertia-rails-architecture skill?

Run npx -y skills add inertia-rails/skills --skill inertia-rails-architecture -y in your project. Once installed, inertia-rails-architecture guides the agent to pass data with render inertia and to avoid useEffect fetching and react-hook-form.

Which skills does inertia-rails-architecture work alongside?

inertia-rails-architecture points to companion skills such as inertia-rails-controllers, inertia-rails-pages and inertia-rails-typescript for common workflows. Its skill map lists which ones to load for new pages, forms, flash toasts and deferred data.

Where does inertia-rails-architecture sit in its category?

inertia-rails-architecture is listed in the Frontend and UI Code category on Claude Marketplaces. Its own rules set it apart by requiring server-owned data via controller props and forbidding client-side auth checks.

More from inertia-rails/skills

All 9

Similar to Inertia Rails Architecture

More Frontend & UI Code