Loading...
Loading...
One-time project initializer for Inertia Rails skills. Detects stack and frontend framework (React/Vue/Svelte) from Gemfile and package.json, offers to install recommended deps (alba-inertia, js-routes, pagy, shadcn), and generates a CLAUDE.md section that configures which skill patterns apply. Use when first installing these skills, bootstrapping a new Inertia Rails project, or when the stack changes.
npx skill4agent add inertia-rails/skills inertia-rails-setupinertia_rails## Inertia Rails Stack@/vite.config.tsvite-plugin-rubytsconfig.jsonalba-inertiajbuilderblueprinterGemfileGemfile.lockpackage.json| Look for | Means |
|---|---|
| Inertia Rails installed (required) |
| React frontend |
| Vue 3 frontend |
| Svelte frontend |
| Convention-based rendering active |
| Alba serialization without convention rendering |
| Pagy pagination |
| Kaminari pagination |
| RSpec testing |
| Typed frontend path helpers |
| Devise authentication |
| Pundit authorization |
| Action Policy authorization |
| shadcn installed (React: shadcn/ui, Vue: shadcn-vue, Svelte: shadcn-svelte) |
| Dep | Type | Install command | What it unlocks |
|---|---|---|---|
| gems | | Convention-based rendering, auto-generated TypeScript types from Ruby. Eliminates |
| gem | | Typed path helpers ( |
| gem | | Lightweight pagination with Inertia-friendly metadata. |
| shadcn/ui (React) | npx | | Pre-built React components adapted for Inertia. Unlocks |
| shadcn-vue (Vue) | npx | | Pre-built Vue components adapted for Inertia. Unlocks |
| shadcn-svelte (Svelte) | npx | | Pre-built Svelte components (bits-ui) adapted for Inertia. Unlocks |
jbuilderblueprinterApplicationResource# app/resources/application_resource.rb
class ApplicationResource
include Alba::Resource
helper Typelizer::DSL
helper Alba::Inertia::Resource
include Rails.application.routes.url_helpers
end# config/initializers/typelizer.rb
Typelizer.configure do |config|
config.output_dir = Rails.root.join("app/frontend/types/generated")
endrails generate js_routesnpx shadcn@latest initnpx shadcn-vue@latest initnpx shadcn-svelte@latest init@/tsconfig.jsonCLAUDE.md## Inertia Rails Stack##references/claude-md-templates.md| Symptom | Cause | Fix |
|---|---|---|
| Missing or misconfigured | Ensure |
| Typelizer generates types in wrong directory | Missing or wrong | Add |
| Aliases added to | |
| CLAUDE.md has conflicting instructions | Multiple | Delete duplicates — only one auto-generated block should exist |
Skills reference | Setup wasn't run, or alba wasn't selected | Re-run setup; CLAUDE.md should say "alba-inertia skill does NOT apply" if gem is absent |
| | Run |
## Inertia Rails Stack