rails-expert

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

1|3|Updated Oct 24, 2018
One-click install
npx skills add https://github.com/ICI-Cancionero/gedeon-app-rails --skill rails-expert-ici-cancionero
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails-expert
Source: https://github.com/ICI-Cancionero/gedeon-app-rails/tree/main/.agents/skills/rails-expert
Command: npx skills add https://github.com/ICI-Cancionero/gedeon-app-rails --skill rails-expert-ici-cancionero

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides expert guidance for designing and implementing Rails 7+ applications with Hotwire, real-time features, and robust background processing, helping teams ship maintainable systems faster.

Core Features & Use Cases

  • Comprehensive architecture guidance for Rails 7+ apps using Hotwire/Turbo, Action Cable, and modern Ruby patterns
  • Optimization of Active Record queries, service objects, and RESTful resource design
  • End-to-end guidance on testing strategies with RSpec Rails, factories, and system specs

Quick Start

Analyze your project goals and I will propose a scalable Rails architecture, models, controllers, and test suites that fit your needs.

Frequently Asked Questions about rails-expert

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

FAQPage Schema
How do I structure a Rails 7 application using Hotwire and Turbo for real-time features?

To structure a Rails 7 application with Hotwire, you use Turbo Frames and Turbo Streams to deliver real-time page updates without writing JavaScript. The approach leverages RESTful routing and server-rendered HTML to synchronize changes instantly across connected clients.

What is the best way to optimize Active Record queries in a large Rails application?

The best way to optimize Active Record queries involves applying conventions like eager loading associations to prevent N+1 problems, selecting only needed columns, and using service objects to encapsulate complex data retrieval logic cleanly outside of controllers.

How do I set up background processing with Sidekiq in a Rails 7 project?

You set up Sidekiq for background processing in Rails 7 by creating worker classes and queuing jobs outside the main request cycle. This handles heavy tasks asynchronously, improving application responsiveness and scalability.

Can I use Action Cable with Turbo Streams for real-time Rails updates?

Yes, Action Cable works directly with Turbo Streams to broadcast real-time updates in Rails. Action Cable transmits server-side changes over WebSockets, and Turbo Streams dynamically morph the DOM on connected clients to reflect new state immediately.

What testing patterns should I follow for Rails 7 applications using RSpec?

For testing Rails 7 applications with RSpec, you should follow patterns utilizing factories for test data, model specs for validations, and system specs for end-to-end browser interactions. This ensures robust coverage for Active Record models and Hotwire integrations.

When should I use Turbo Frames instead of Turbo Streams in a Rails app?

Use Turbo Frames when you need to isolate specific sections of a page for independent navigation and updates, and use Turbo Streams when you need to broadcast real-time changes to multiple clients via Action Cable for broader page synchronization.