inertia-rails-skills / skills
AGENTS.md38 starsChanged 8 months agoMITView on GitHub
A comprehensive collection of agent skills for building high-quality Inertia.js applications with Ruby on Rails. Compatible with 29+ AI coding agents via the Vercel Skills CLI. Using the Vercel Skills CLI: All skills support the three official Inertia.js frontend adapters: Code examples are provided in React by default, with Vue 3 and Svelte alternatives where significant differences exist.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,691 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository10 other files it gives its agents.
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 60
Use Rails generator for setup
- Distinctive: line 66
Use shared data for globals
- Very specific: line 102
All skills support the three official Inertia.js frontend adapters:
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Inertia Rails Skills
A comprehensive collection of agent skills for building high-quality Inertia.js applications with Ruby on Rails.
Compatible with 29+ AI coding agents via the Vercel Skills CLI.
Available Skills
Core Reference
| Skill | Description | Priority |
| inertia-rails-best-practices | Comprehensive best practices with 50+ rules across 8 categories | Reference |
Task-Focused Skills
| Skill | Description | Use When |
| inertia-rails-setup | Project setup and configuration | Creating new projects, adding Inertia to existing Rails apps |
| inertia-rails-forms | Form handling and validation | Building forms, handling validation, file uploads |
| inertia-rails-auth | Authentication and authorization | Login, sessions, permissions, access control |
| inertia-rails-testing | RSpec and Minitest testing | Writing tests for Inertia responses |
| inertia-rails-performance | Performance optimization | Code splitting, prefetching, deferred props |
| inertia-rails-ssr | Server-Side Rendering | SEO, faster initial loads, meta tags |
| inertia-rails-cookbook | Recipes and patterns | Modals, shadcn/ui, wizards, search |
Installation
One-Command Install (Recommended)
Using the Vercel Skills CLI:
# Install all skills to your project
npx skills add cole-robertson/inertia-rails-skills
# Install globally (available across all projects)
npx skills add cole-robertson/inertia-rails-skills -g
# Install for specific agents only
npx skills add cole-robertson/inertia-rails-skills -a claude-code -a cursor
# List available skills before installing
npx skills add cole-robertson/inertia-rails-skills --listManual Installation
# Clone and copy to your project
git clone https://github.com/cole-robertson/inertia-rails-skills.git
cp -r inertia-rails-skills/skills/* ~/.claude/skills/Quick Reference
Best Practices Categories
- Server-Side Setup & Configuration (CRITICAL)
- Use Rails generator for setup
- Configure asset versioning
- Set up proper layouts
- Props & Data Management (CRITICAL)
- Return only necessary data
- Use shared data for globals
- Leverage lazy evaluation
- Use deferred props
- Forms & Validation (HIGH)
- Use useForm helper
- Handle validation errors properly
- Follow PRG pattern
- Navigation & Routing (HIGH)
- Use Link component
- Configure HTTP methods correctly
- Handle redirects properly
- Performance Optimization (MEDIUM-HIGH)
- Implement code splitting
- Use prefetching
- Optimize partial reloads
- Security (MEDIUM-HIGH)
- Server-side auth
- Pass permissions as props
- History encryption
- Testing (MEDIUM)
- RSpec matchers
- Minitest assertions
- E2E with Capybara
- Advanced Patterns (MEDIUM)
- Persistent layouts
- Custom resolvers
- Event handling
Frontend Framework Support
All skills support the three official Inertia.js frontend adapters:
- React 19+ (
@inertiajs/react) - Vue 3 (
@inertiajs/vue3) - Svelte 5+ (
@inertiajs/svelte)
Code examples are provided in React by default, with Vue 3 and Svelte alternatives where significant differences exist.
Version Compatibility
inertia_railsgem 3.19+@inertiajs/*packages 3.x+ (Inertia.js v3)@inertiajs/viteplugin (recommended)- Rails 7.x+ (Rails 8 supported)
- Vite Ruby (recommended bundler)
Resources
- Inertia Rails Documentation
- Inertia.js Documentation
- GitHub: inertiajs/inertia-rails
- Evil Martians: Inertia.js in Rails
License
MIT License
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

