Agent skill · Testing & QA

rails-expert

Rails 7+ specialist that optimizes Active Record queries with includes/eager_load, implements Turbo Frames and Turbo Streams for partial page updates, configures Action Cable for WebSocket connections, sets up Sidekiq workers for background job processing, and writes comprehensive RSpec test suites. Use when building Rails 7+ web applications with Hotwire, real-time features, or background job processing. Invoke for Active Record optimization, Turbo Frames/Streams, Action Cable, Sidekiq, RSpec Rails.

Jeffallangithub.com/JeffallanGitHub ↗
claude-codeMIT
Install
npx skills add Jeffallan/claude-skills --skill rails-expert --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 6
SKILL.md size: 5 KB
Bundled scripts: none
Version: 1.1.0
Declared author: https://github.com/Jeffallan
Path: skills/rails-expert/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 10,871 · +100 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Rails Expert ## Core Workflow 1. **Analyze requirements** — Identify models, routes, real-time needs, background jobs 2. **Scaffold resources** — `rails generate model User name:string email:string`, `rails generate controller Users` 3. **Run migrations** — `rails db:migrate` and verify schema with `rails db:schema:dump` - If migration fails: inspect `db/schema.rb` for conflicts, rollback with `rails db:rollback`, fix and retry 4. **Implement** — Write controllers, models, add Hotwire (see Reference Guide below) 5. **Validate** — `bundle exec rspec` must pass; `bundle exec rubocop` for style - If specs fail: check error output, fix failing examples, re-run with `--format documentation` for detail - If N+1 queries surface during review: add `includes`/`eager_load` (see Common Patterns) and re-run specs 6. **Optimize** — Audit for N+1 queries, add missing indexes, add caching ## Reference Guide Load detailed guidance based on context: | Topic | Reference | Load When | |-------|-----------|-----------| | Hotwire/Turbo | `references/hotwire-turbo.md` | Turbo Frames, Streams, Stimulus controllers | | Active Record | `references/active-record.md` | Models, associations, queries, perfor

What's inside
Steps it walks through
  1. Core Workflow
  2. Reference Guide
  3. Common Patterns
  4. N+1 Prevention with includes/eagerload
  5. Turbo Frame Setup (partial page update)
  6. Sidekiq Worker Template
  7. Strong Parameters (controller template)
  8. Constraints
  9. MUST DO
  10. MUST NOT DO
  11. Output Templates
Ships with 5 files
  • references/active-record.md
  • references/api-development.md
  • references/background-jobs.md
  • references/hotwire-turbo.md
  • references/rspec-testing.md
More from claude-skills
All skills →
About this skill
What does the rails-expert skill do?

Rails 7+ specialist that optimizes Active Record queries with includes/eager_load, implements Turbo Frames and Turbo Streams for partial page updates, configures Action Cable for WebSocket connections, sets up Sidekiq workers for background job processing, and writes comprehensive RSpec test suites. Use when building Rails 7+ web applications with Hotwire, real-time features, or background job processing. Invoke for Active Record optimization, Turbo Frames/Streams, Action Cable, Sidekiq, RSpec Rails.

How do I install it?

Run `npx skills add Jeffallan/claude-skills --skill rails-expert --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From Jeffallan/claude-skills, a repository with 10,871 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going