# rails-expert

> Claude/Codex skill by [@jeffallan](https://omgskills.com/library/jeffallan/index.md) · 12k stars · Updated 2026-10-30

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.

Tags: ai-agents, claude, claude-code, claude-marketplace, claude-skills

## Install

```sh
git clone https://github.com/Jeffallan/claude-skills /tmp/claude-skills && ln -s /tmp/claude-skills/skills/rails-expert ~/.claude/skills/rails-expert
```

## From README

Rails Expert Core Workflow Analyze requirements — Identify models, routes, real-time needs, background jobs Scaffold resources — rails generate model User name:string email:string, rails generate controller Users 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 Implement — Write controllers, models, add Hotwire (see Reference Guide below) 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/eagerload (see Common Patterns) and re-run specs 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 Frame...

## Links

- HTML page: https://omgskills.com/library/jeffallan/claude-skills/rails-expert/
- GitHub: https://github.com/Jeffallan/claude-skills
- Author: [@jeffallan](https://omgskills.com/library/jeffallan/index.md)

## More from this repo

- [api-designer](https://omgskills.com/library/jeffallan/claude-skills/api-designer/index.md) — Used when designing REST or GraphQL APIs, creating OpenAPI specifications, or planning API architecture.
   - [@jeffallan](https://omgskills.com/library/jeffallan/index.md) · 12k stars
- [architecture-designer](https://omgskills.com/library/jeffallan/claude-skills/architecture-designer/index.md) — Used when designing new high-level system architecture, reviewing existing designs, or making architectural decisions.
   - [@jeffallan](https://omgskills.com/library/jeffallan/index.md) · 12k stars
- [atlassian-mcp](https://omgskills.com/library/jeffallan/claude-skills/atlassian-mcp/index.md) — Integrates with Atlassian products to manage project tracking and documentation via MCP protocol.
   - [@jeffallan](https://omgskills.com/library/jeffallan/index.md) · 12k stars
