inertia-rails-setup
Inertia Rails Setup detects your frontend framework (React, Vue, or Svelte) and serialization layer from your project files, then recommends and installs complementary libraries like alba-inertia, js-routes, pagy, and shadcn components. It generates a CLAUDE.md configuration block that tells Claude which skill patterns apply to your specific stack.
Inertia Rails Setup initializes new Inertia Rails projects by detecting your stack and installing recommended dependencies.
AI-generated summary based on this skill's SKILL.md
Install
inertia-rails/skills/inertia-rails-setup
git clone https://github.com/inertia-rails/skills
cp -r skills/skills/inertia-rails-setup ~/.claude/skills/inertia-rails-setupnpx skillfed install inertia-rails/skills/inertia-rails-setupFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What does inertia-rails-setup do?
Inertia Rails Setup detects your frontend framework (React, Vue, or Svelte) and serialization layer from your project files, then recommends and installs complementary libraries like alba-inertia, js-routes, pagy, and shadcn components. It generates a CLAUDE.md configuration block that tells Claude which skill patterns apply to your specific stack.
How do I initialize an inertia rails stack with inertia-rails-setup?
Inertia Rails Setup analyzes your package.json and Gemfile to detect React, Vue, or Svelte, then guides you through project initialization. It recommends dependencies based on your detected framework and installs alba-inertia, js-routes, pagy, and shadcn components automatically, bootstrapping your Inertia Rails project with all essential tooling.
Can inertia-rails-setup detect my frontend framework?
Yes. Inertia Rails Setup scans your package.json and Gemfile to detect React, Vue, or Svelte. Once identified, it tailors dependency recommendations and configuration generation to match your chosen frontend framework, ensuring your stack is properly aligned.
What is the CLAUDE.md configuration that inertia-rails-setup generates?
Inertia Rails Setup generates a CLAUDE.md configuration block based on your detected stack. This file tells Claude which skill patterns and best practices apply to your specific Inertia Rails setup, enabling more accurate guidance for your particular frontend framework and dependencies.
Which dependencies does inertia-rails-setup install?
Inertia Rails Setup installs alba-inertia for JSON serialization, js-routes for Rails route helpers in JavaScript, pagy for pagination, and shadcn components for your frontend framework. These libraries are recommended based on your detected React, Vue, or Svelte stack.
When should I use inertia-rails-setup for my project?
Use Inertia Rails Setup when starting a new Inertia Rails project, when your stack changes, or when dependencies need updating. It bootstraps your project with proper framework detection and recommended libraries, ensuring your Inertia Rails setup is configured correctly from the start.
SKILL.md
rendered from the published skill — quoted content, verbatim
Inertia Rails Project Setup
Detect stack, offer recommended deps, generate CLAUDE.md configuration.
Run once per project. Re-run when the stack changes.
NEVER:
- Run setup without inertia_rails gem in Gemfile — all skills assume it exists. If missing, tell the user to install it first.
- Overwrite existing ## Inertia Rails Stack in CLAUDE.md without reading it — the user may have manual customizations. Replace only the auto-generated block.
- Add @/ resolve aliases to vite.config.ts — vite-plugin-ruby already provides them. Only add to tsconfig.json.
- Recommend alba-inertia if the project uses jbuilder AND the user hasn't expressed interest in switching — suggest it, but don't push. You CAN
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 2 files
skills/inertia-rails-setup/SKILL.md
skills/inertia-rails-setup/references/claude-md-templates.md