vue-with-rails

Configure Vue 3 with Rails using Inertia.js and vite_ruby conventions.

21|2|Updated May 24, 2026
One-click install
npx skills add https://github.com/sandeepmvl/rails-skills --skill vue-with-rails
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-with-rails
Source: https://github.com/sandeepmvl/rails-skills/tree/main/skills/25-vue-with-rails
Command: npx skills add https://github.com/sandeepmvl/rails-skills --skill vue-with-rails

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the guesswork and common mistakes AI coding agents make when integrating Vue with Ruby on Rails, ensuring generated code follows senior Rails developer conventions instead of broken or non-standard patterns.

Core Features & Use Cases

  • Default Inertia.js Integration: Guides use of Inertia.js with the Vue 3 adapter as the standard pattern for most Rails + Vue apps, avoiding unnecessary SPA overhead.
  • Correct Build Tooling Setup: Provides step-by-step instructions for configuring vite_ruby with the official @vitejs/plugin-vue for hot module replacement and asset compilation.
  • Client State Guidance: Recommends Pinia only for genuinely client-only state, with most page state managed server-side via Inertia props to reduce complexity.
  • Hotwire Compatibility Patterns: Includes instructions for adding isolated Vue "island" components to existing Hotwire apps without replacing your entire frontend stack.
  • Use Case: If you ask an AI to add a Vue-powered event calendar to your existing Rails Hotwire app, it will use the correct Stimulus-Vue island pattern instead of rebuilding your entire frontend.

Quick Start

Use the vue-with-rails skill to set up a new Rails 8 app with Vue 3, Inertia.js, and vite_ruby following Rails best practices.

Frequently Asked Questions about vue-with-rails

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Vue 3 with Rails and vite_ruby using Inertia.js?

To set up Vue 3 with Rails, configure vite_ruby with the official @vitejs/plugin-vue for hot module replacement, and use the Inertia.js Vue adapter as the standard integration pattern to avoid unnecessary SPA overhead.

What is the best way to add Vue components to an existing Rails Hotwire app?

The best way to add Vue components to a Rails Hotwire app is using isolated Vue island patterns, which allows you to insert Vue-powered elements like a calendar without replacing your entire frontend stack.

Do I need Pinia for state management when using Vue with Rails?

You need Pinia only for genuinely client-only state. For most Vue with Rails applications, page state should be managed server-side via Inertia props to reduce complexity.

Should I use Inertia.js or a classical API plus SPA architecture for my Rails Vue app?

You should use Inertia.js as the default pattern for most Rails Vue apps to avoid unnecessary SPA overhead, selecting a classical API plus SPA architecture only if your specific frontend requirements demand a fully decoupled structure.

Why does my AI coding agent generate non-conventional Vue and Rails integration code?

AI coding agents generate non-conventional Vue and Rails integration code because they lack established framework best practices, requiring specific guidance to ensure correct vite_ruby setup and Inertia.js adapter configuration.