shadcn-inertia

shadcn-inertia is a skill for Claude Code, Codex from thecodingend/rails-starter. It costs 95 tokens per session (1,862 once invoked), scanned A, a copy of shadcn-inertia, MIT.

A guide for using shadcn/ui interface components with Inertia.js, Rails, and React. It explains how these patterns differ from the usual Next.js examples.

In plain words
What is it for?
It helps adapt forms, links, page titles, routing, themes, and validation by using Inertia equivalents instead of Next.js or react-hook-form patterns.
Why use it?
It prevents developers from copying Next.js instructions that do not fit Inertia applications.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit It helps adapt forms, links, page titles, routing, themes, and validation by using Inertia equivalents instead of Next.js or react-hook-form patterns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thecodingend/rails-starter/shadcn-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 thecodingend/rails-starter --skill shadcn-inertia
Clone the repo
git clone --depth 1 https://github.com/thecodingend/rails-starter

Made for: Claude Code, Codex.

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 shadcn-inertia

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/thecodingend/rails-starter/shadcn-inertia"><img src="https://agentmods.dev/badge/skills/thecodingend/rails-starter/shadcn-inertia.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,862 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 100% copy Near-identical to another mod 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.00095 $0.01862
Opus 5 $0.00048 $0.00931
Sonnet 5 $0.00019 $0.00372
Haiku 4.5 $0.00010 $0.00186

Measured 9d ago against content hash 11e779f05ee4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

shadcn-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 9d 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.

Origin

This is a copy

100% identical to shadcn-inertia — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/shadcn-inertia/SKILL.md · 178 lines

How it starts

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

shadcn/ui for Inertia Rails

shadcn/ui patterns adapted for Inertia.js + Rails + React. NOT Next.js.

Before using a shadcn example, ask:

  • Does it use react-hook-form + zod? → Replace with Inertia <Form> + name attributes. Inertia handles CSRF, errors, redirects, processing state — react-hook-form would fight all of this.
  • Does it use 'use client'? → Remove it. Inertia has no RSC — all components are client components.
  • Does it use next/link, next/head, useRouter()? → Replace with Inertia <Link>, <Head>, router.

Key Differences from Next.js Defaults

shadcn default (Next.js) Inertia equivalent
'use client' directive Remove — not needed (no RSC)
react-hook-form + zod Inertia <Form> component
FormField, FormItem, FormMessage Plain <Input name="..."> + errors.field
next-themes CSS class strategy + @custom-variant
useRouter() (Next) router from @inertiajs/react
next/link <Link> from @inertiajs/react
next/head <Head> from @inertiajs/react

NEVER use shadcn's FormField, FormItem, FormLabel, FormMessage components — they depend on react-hook-form's useFormContext internally and will crash without it. Use plain shadcn Input/Label/Select with name attributes inside Inertia <Form>, and render errors from the render function's errors object (see examples below).

Setup

npx shadcn@latest init. add @/ resolve aliases to tsconfig.json if not present, Do NOT add @/ resolve aliases to vite.config.tsvite-plugin-ruby already provides them.

shadcn Inputs in Inertia <Form>

Use plain shadcn Input/Label/Button with name attributes inside Inertia <Form>. See inertia-rails-forms skill for full <Form> API — this section covers shadcn-specific adaptation only.

The key pattern: Replace shadcn's FormField/FormItem/FormMessage with plain components + manual error display:

Read the full file on GitHub · 178 lines

Files

What ships with it

2 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. 9d ago First seen · 178 lines · 95 tokens per session scan A 11e779f05ee4

Subscribe to this mod's changes

shadcn-inertia is a skill published in the GitHub repository thecodingend/rails-starter (5 stars, last pushed 7d ago), licensed MIT. It adds 95 tokens to every session and 1,862 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to shadcn-inertia, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

ui-checkstyle

Run the exact ESLint + Prettier + organize-imports sequence that CI's UI Checkstyle workflow runs — on just the files the PR changed — and fail the task if any file ends up with a diff. Invoke after authoring or modifying any .ts, .tsx, .js, .jsx, or .json file under openmetadata-ui/src/main/resources/ui/src/…

open-metadata/OpenMetadata · 122 tokens

frontend-ui-dark-ts

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

microsoft/skills · 48 tokens

moai-design-tools

Design tool integration specialist covering Figma MCP, Pencil renderer, and Pencil-to-code export. Use when fetching design context from Figma, rendering Pencil designs, or exporting to React/Tailwind code.

modu-ai/moai-adk · 45 tokens

byted-util-vite-react-tailwind

A setup guide for building frontend projects with Vite, React, Tailwind CSS, TypeScript, and Lucide icons.

bytedance/agentkit-samples · 64 tokens

remotion-video

Create motion graphics and videos using Remotion (React) with audio sync, web fonts, and TailwindCSS. Triggers on: "create a Remotion video", "React video", "motion graphics", "branded video", "product demo video", "video with voiceover". NOT for math animations, use concept-to-video.

Mathews-Tom/armory · 72 tokens