rails-expert

Optimize Rails 7+ apps with Active Record, Turbo, Action Cable, Sidekiq, and RSpec guidelines.

2|Updated Jun 29, 2026
One-click install
npx skills add https://github.com/Axel-DaMage/opencode-config --skill rails-expert-axel-damage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails-expert
Source: https://github.com/Axel-DaMage/opencode-config/tree/main/skills/rails-expert
Command: npx skills add https://github.com/Axel-DaMage/opencode-config --skill rails-expert-axel-damage

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rails, sidekiq, hotwire, actioncable, rspec, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of tools and best practices for optimizing and enhancing Rails 7+ web applications, addressing performance bottlenecks, and implementing modern web features.

Core Features & Use Cases

  • Active Record Optimization: Prevent N+1 queries and improve database performance.
  • Turbo and Hotwire Support: Implement Turbo Frames, Streams, and Action Cable for modern web interactions.
  • Background Job Processing: Utilize Sidekiq for background processing and real-time features.
  • RSpec Testing: Write comprehensive test suites with RSpec for robustness.
  • Use Case: A developer working on a Rails 7+ application with Hotwire, real-time features, or background job processing can use this Skill to optimize Active Record queries, set up Turbo and Action Cable, and configure Sidekiq.

Quick Start

Use the rails-expert skill to optimize the 'users' model in your Rails application and set up Sidekiq for background jobs.

Frequently Asked Questions about rails-expert

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

FAQPage Schema
How do I optimize Active Record queries and prevent N+1 problems in Rails 7?

To optimize Active Record queries and prevent N+1 problems in Rails 7, apply eager loading and query best practices. This improves database performance by reducing redundant queries during data retrieval.

What is the best way to set up Sidekiq for background job processing in a Rails application?

The best way to set up Sidekiq for background processing in Rails is configuring job queues and worker classes. This enables asynchronous task execution, preventing real-time features from blocking web requests.

How do I integrate Turbo Frames and Hotwire for modern web interactions in Rails?

Integrate Turbo Frames and Hotwire in Rails by setting up Turbo Streams and Action Cable. This provides modern web interactions by delivering real-time page updates without writing full custom JavaScript.

Can I use Action Cable with Hotwire to add real-time features to my Rails application?

Yes, you can use Action Cable with Hotwire to add real-time features to your Rails application. Configuring Action Cable broadcasts enables live updates to Turbo Streams for dynamic content delivery.

Do I need RSpec to write comprehensive test suites for Rails 7+ apps?

You need RSpec to write comprehensive test suites for Rails 7+ apps, as it provides robust testing guidelines. This ensures application reliability and validates performance optimizations and background job configurations.