rails-expert

Featured

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.

AI & Automation 11,089 stars 1052 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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, performance | | Background Jobs | `references/background-jobs.md` | Sidekiq, job design, queues, error handling | | Testing | `references/rspec-testing.md` | Model/request/system specs, factories | | API Development | `references/api-development.md` | API-only mode, serialization, authentica...

Details

Author
Jeffallan
Repository
Jeffallan/claude-skills
Created
10 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

rails-expert

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.

3 Updated yesterday
zacklecon
AI & Automation Listed

rails-8

Playbook for building full-stack Ruby on Rails 8.1 applications "the Rails way" — vanilla Rails, Hotwire (Turbo + Stimulus), the Solid stack, Propshaft + importmap, RSpec testing, ecosystem gems, OpenAPI docs, AI features, observability, and Kamal 2 deployment. Use this skill whenever the user is creating, extending, debugging, refactoring, testing, upgrading, documenting, or deploying a Rails app — or mentions Ruby on Rails, a Gemfile containing rails, ERB templates, Active Record, migrations, Hotwire, Turbo, Stimulus, Action Mailer, Active Storage, Action Text, Action Cable, Solid Queue, Solid Cache, Kamal, Thruster, RSpec, FactoryBot, simple_form, Tailwind, OpenAPI, Swagger, rswag, ruby_llm, or `bin/rails` commands. Trigger it for indirect phrasings like "my Ruby web app", "add a background job", "make this page update live", "add login to my app", "document my API", or "add AI to my app" when the project is Rails. Also for "how should I structure this in Rails?" questions.

0 Updated today
fmanimashaun
AI & Automation Listed

rails-generic

General guidance for working on Ruby on Rails applications. Use this skill when creating, extending, debugging, refactoring, testing, or reviewing a Rails app, or when the user mentions Rails, Ruby, Active Record, migrations, controllers, views, models, jobs, or tests.

0 Updated today
fmanimashaun