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.
npx skills add Jeffallan/claude-skills --skill rails-expert --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Core Workflow
- Reference Guide
- Common Patterns
- N+1 Prevention with includes/eagerload
- Turbo Frame Setup (partial page update)
- Sidekiq Worker Template
- Strong Parameters (controller template)
- Constraints
- MUST DO
- MUST NOT DO
- Output Templates
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.
