rails-expert

Optimize Rails 7+ apps with Active Record queries, Hotwire updates, and Sidekiq jobs.

Updated Jun 16, 2026
One-click install
npx skills add https://github.com/Design-System-ET/genexus-dev-opencode --skill rails-expert-design-system-et
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails-expert
Source: https://github.com/Design-System-ET/genexus-dev-opencode/tree/main/skills/rails-expert
Command: npx skills add https://github.com/Design-System-ET/genexus-dev-opencode --skill rails-expert-design-system-et

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of building modern, real-time Rails 7+ applications by providing standardized patterns for performance, background processing, and testing.

Core Features & Use Cases

  • Performance Optimization: Implements eager loading and N+1 query prevention to ensure fast database interactions.
  • Real-time & Background Tasks: Provides templates for Hotwire (Turbo Frames/Streams) and Sidekiq job management.
  • Use Case: When building a dashboard that requires real-time updates without full page reloads, use this Skill to configure Turbo Streams and background workers for heavy data processing.

Quick Start

Invoke the rails-expert skill to optimize the Active Record queries in the current controller and generate a corresponding RSpec test suite.

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?

The best way to handle real-time UI updates without full page reloads is using Hotwire. Specifically, configure Turbo Frames and Turbo Streams to render partial updates directly from the server for dynamic interfaces.

How do I configure Sidekiq for background job processing in Rails?

To configure Sidekiq for background job processing, use robust job management templates. This offloads heavy data processing from the main request cycle, ensuring high performance and responsive Rails applications.

Does this approach help achieve high RSpec test coverage in Rails?

Yes, this approach helps achieve high RSpec test coverage. It targets backend workflows requiring comprehensive tests, generating a corresponding RSpec test suite to satisfy requirements for over 95% coverage.

How do I maintain thin controller architecture when optimizing Rails queries?

To maintain thin controller architecture when optimizing Rails queries, move heavy data processing logic to background workers and standardize Active Record query patterns. This keeps controllers focused on request handling.

Can I use Hotwire and Sidekiq together for dashboard data processing?

Yes, you can use Hotwire and Sidekiq together for dashboard data processing. Configure Turbo Streams for real-time updates while delegating heavy data processing to Sidekiq background workers for optimal performance.