
Description
rails-expert is an agent skill from the jeffallan claude-skills collection for building Rails 7 and later applications, with an emphasis on optimising Active Record queries. It covers eager loading with includes and eager_load to avoid N+1 queries, and Hotwire, with Turbo Frames and Turbo Streams for partial page updates. The workflow runs in order. The agent analyses the models, routes, real-time needs and background jobs, scaffolds resources with the Rails generators, and runs migrations and checks the schema dump. If a migration fails, the workflow tells the agent to inspect the schema file for conflicts, roll back, fix and retry. The implementation step writes controllers and models and adds Hotwire. The validation step requires bundle exec rspec to pass and runs rubocop for style, and if specs fail it reruns them with documentation output to find the failing examples. If N+1 queries appear, the agent adds includes or eager_load and reruns the specs. The optimise step audits for N+1 queries, adds missing indexes and adds caching. The skill suits Rails teams who want an agent to keep queries efficient and to run the test suite before reporting success. It is listed on skills.sh, where the page shows install counts and GitHub stars for the collection. Its Gen Agent Trust Hub audit is marked as failing, which the FAQ lists, while Socket and Snyk pass. Install it with npx skills add https://github.com/jeffallan/claude-skills --skill rails-expert.…
Highlights
- Active Record query optimisation
- includes and eager_load for N+1 fixes
- Turbo Frames and Turbo Streams
- Migrations with rollback steps
- RSpec and RuboCop validation
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate rails-expert.
People also visit

nestjs-expert
Creates and configures NestJS modules, controllers, services, DTOs, guards
rails-expert FAQ
What does this skill cover?
Rails 7+ applications: Active Record query optimisation, Hotwire with Turbo Frames and Streams, migrations and testing.
How does it handle N+1 queries?
It adds includes or eager_load when they appear and audits for them during optimisation.
What checks does it run?
bundle exec rspec must pass, bundle exec rubocop checks style, and the schema dump is verified after migrations.
How do I install it?
Run npx skills add https://github.com/jeffallan/claude-skills --skill rails-expert.
What are the security audit results?
skills.sh lists three audits: Gen Agent Trust Hub Fail, Socket Pass and Snyk Pass. A Warn or Fail is worth reading before you install.
How popular is it?
The page shows about 4.6K installs, and the claude-skills repository has 11.9K GitHub stars.
What are the best rails-expert alternatives?
Popular alternatives to rails-expert include rails-toolkit, majestic-rails and django-expert. See all rails-expert alternatives
















