Rails Expert guides Claude through Rails 7+ work in six steps: analyze requirements, scaffold resources, run migrations, implement controllers and Hotwire views, validate with RSpec and RuboCop, then optimize queries and caching.
Its patterns cover eager loading with includes and eager_load, Turbo Frame setup, a Sidekiq-backed job and strong parameters. Each failing step has instructions for rollback or re-running specs.
What You Get
- A six-step workflow with rollback and re-run guidance for failed migrations and specs
- Patterns for N+1 prevention, Turbo Frames, a Sidekiq job and a controller with strong parameters
- Reference files for Hotwire and Turbo, Active Record, background jobs, RSpec testing and API development
- Rules requiring eager loading, indexes on queried columns, service objects for complex logic and sanitized SQL
- An output template: migration, model, controller, views, specs and a design note
Common Use Cases
- Fixing N+1 queries in a list page
- Adding partial page updates with Turbo Frames and Streams
- Moving email sending into a Sidekiq job
- Adding real-time updates with Action Cable
- Writing model, request and system specs with factories
What Makes It Unique
The skill combines Rails data discipline with the Hotwire front end in one workflow. It requires eager loading on association queries, indexes for every filtered or sorted column and a coverage target above 95 percent, and it gives each failure mode a next action, such as rolling back a migration or adding includes.
Under The Hood
The skill is instructions and reference markdown that Claude loads by topic; it ships no scripts. Following it, Claude writes Ruby, view and spec files in your project and runs rails generate, rails db:migrate, db:rollback, bundle exec rspec and rubocop. Migrations change your development database, and job examples send email through your own mailer. It does not call outside services itself.