
Rails Expert
Guides an agent through Rails 7+ work: query tuning, Hotwire, Action Cable, Sidekiq jobs and RSpec tests.
- Repository
- Jeffallan/claude-skills
- Stars
- 12,176
- Licence
- MIT
- Files
- 6 files
What it does
When installed, the agent answers Ruby on Rails 7+ questions with a specific workflow and coding patterns. It covers fixing slow database queries (N+1 problems with includes/eager_load), building partial page updates with Turbo Frames and Streams, setting up Action Cable real-time connections, creating Sidekiq background jobs, and writing RSpec tests. It is mostly a bundle of guidance and code templates that the agent loads as needed, so it changes how the agent writes Rails code rather than adding a new tool.
Great for
- Rails developers building Hotwire or real-time features who want consistent, idiomatic code
- Teams fixing slow pages caused by N+1 queries in Active Record
- Developers adding Sidekiq background jobs or RSpec coverage to an existing Rails app
Skip it if
- Non-Rails projects, since the guidance is specific to Rails 7+ and Ruby (wrong framework advice otherwise)
- Production changes without review: the workflow runs migrations and generates code, which can alter a live database if pointed at the wrong environment
Try asking
- “Find and fix the N+1 queries on my posts index page using includes or eager_load”
- “Add a Turbo Frame so the comments list updates without a full page reload”
- “Create a Sidekiq job that sends a welcome email after user signup and write its RSpec tests”
- “Generate a migration and model for an Order with indexes on the columns I filter by”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 6 original files, the MIT licence and an attribution note.
rails-expert.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip rails-expert.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip rails-expert.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Point the agent at a specific model or controller so it loads the right reference file instead of generic advice.
- Run migrations and specs in a development environment first, and review generated code before committing.
- Ask for the reason behind an index or eager-loading choice so you can verify it against your actual query patterns.
What's inside
- references/active-record.md
- references/api-development.md
- references/background-jobs.md
- references/hotwire-turbo.md
- references/rspec-testing.md
- SKILL.md
Redistributed unmodified from Jeffallan/claude-skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.