agentleFS
cole-robertsoncole-robertson/inertia-rails-skills/skills/AGENTS.md

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.

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
  1. Distinctive:

    Use Rails generator for setup

    line 60
  2. Distinctive:

    Use shared data for globals

    line 66
  3. Very specific:

    All skills support the three official Inertia.js frontend adapters:

    line 102

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

SkillDescriptionPriority
inertia-rails-best-practicesComprehensive best practices with 50+ rules across 8 categoriesReference

Task-Focused Skills

SkillDescriptionUse When
inertia-rails-setupProject setup and configurationCreating new projects, adding Inertia to existing Rails apps
inertia-rails-formsForm handling and validationBuilding forms, handling validation, file uploads
inertia-rails-authAuthentication and authorizationLogin, sessions, permissions, access control
inertia-rails-testingRSpec and Minitest testingWriting tests for Inertia responses
inertia-rails-performancePerformance optimizationCode splitting, prefetching, deferred props
inertia-rails-ssrServer-Side RenderingSEO, faster initial loads, meta tags
inertia-rails-cookbookRecipes and patternsModals, 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 --list

Manual 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

  1. Server-Side Setup & Configuration (CRITICAL)
    • Use Rails generator for setup
    • Configure asset versioning
    • Set up proper layouts
  2. Props & Data Management (CRITICAL)
    • Return only necessary data
    • Use shared data for globals
    • Leverage lazy evaluation
    • Use deferred props
  3. Forms & Validation (HIGH)
    • Use useForm helper
    • Handle validation errors properly
    • Follow PRG pattern
  4. Navigation & Routing (HIGH)
    • Use Link component
    • Configure HTTP methods correctly
    • Handle redirects properly
  5. Performance Optimization (MEDIUM-HIGH)
    • Implement code splitting
    • Use prefetching
    • Optimize partial reloads
  6. Security (MEDIUM-HIGH)
    • Server-side auth
    • Pass permissions as props
    • History encryption
  7. Testing (MEDIUM)
    • RSpec matchers
    • Minitest assertions
    • E2E with Capybara
  8. 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_rails gem 3.19+
  • @inertiajs/* packages 3.x+ (Inertia.js v3)
  • @inertiajs/vite plugin (recommended)
  • Rails 7.x+ (Rails 8 supported)
  • Vite Ruby (recommended bundler)

Resources

License

MIT License

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.