rails-expert

Guide Rails 7+ app architecture with Hotwire, Active Record, and Sidekiq.

9|2|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/stephanj/claude-code-collections --skill rails-expert-stephanj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails-expert
Source: https://github.com/stephanj/claude-code-collections/tree/main/skills/rails-expert
Command: npx skills add https://github.com/stephanj/claude-code-collections --skill rails-expert-stephanj

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the complexity of modern Ruby on Rails development by providing standardized patterns for Hotwire, background processing, and database optimization, ensuring maintainable and performant code.

Core Features & Use Cases

  • Hotwire Integration: Streamlines the implementation of Turbo Frames and Streams for reactive, real-time user interfaces.
  • Performance Optimization: Provides battle-tested strategies for preventing N+1 queries and managing background jobs with Sidekiq.
  • Testing Standards: Enforces high-coverage testing practices using RSpec, FactoryBot, and system specs.

Quick Start

Use the rails-expert skill to generate a new controller and associated Turbo Stream views for a real-time comment feature.

Frequently Asked Questions about rails-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent N+1 queries in Active Record when loading associations?

Prevent N+1 queries in Active Record by applying eager loading patterns using includes or preload. This skill provides architectural guidance to ensure database optimization and maintainable performance in Rails 7+ applications.

How do I implement real-time UI updates with Hotwire Turbo Streams in Rails?

Implement real-time UI updates with Hotwire Turbo Streams by generating controllers and associated view templates. This skill streamlines the creation of reactive interfaces for Rails 7+ full-stack features like real-time comments.

What is the best way to orchestrate background jobs with Sidekiq in Ruby on Rails?

The best way to orchestrate background jobs with Sidekiq involves using battle-tested strategies for job management. This skill provides implementation patterns for Rails 7+ to handle asynchronous processing securely and maintainably.

Can I use RSpec and FactoryBot to build a comprehensive test suite for Rails 7+?

Yes, you can use RSpec and FactoryBot to build a comprehensive test suite. This skill enforces high-coverage testing practices using system specs to ensure secure and maintainable Ruby codebases.

Does this Rails skill support API design and RESTful routing?

Yes, this skill supports API design and RESTful routing. It provides architectural guidance for Rails 7+ applications, ensuring your full-stack development tasks produce secure, maintainable, and performant codebases.