rails-expert
Rails 7+ specialist that optimizes Active Record queries with includes/eager_load, implements Turbo Frames and Turbo Streams for partial page updates, configures Action Cable for WebSocket connections, sets up Sidekiq workers for background job processing, and writes comprehensive RSpec test suites. Use when building Rails 7+ web applications with Hotwire, real-time features, or background job processing. Invoke for Active Record optimization, Turbo Frames/Streams, Action Cable, Sidekiq, RSpec R
Security Assessment
Detected risks:
About rails-expert
The 'rails-expert' skill is designed for developers working with Rails 7+ applications, providing specialized guidance for optimizing performance, managing real-time features, and implementing background processing. This skill addresses common challenges such as N+1 query problems, inefficient database interactions, and complex real-time or asynchronous workflows by offering structured patterns, templates, and best practices. It streamlines development by integrating Active Record optimizations, Hotwire enhancements, Action Cable WebSocket configurations, and Sidekiq job management, ensuring high-performing and maintainable Rails applications.
Its main features include Active Record query optimization using 'includes' and 'eager_load', setup and management of Turbo Frames and Turbo Streams for partial page updates, and configuration of Action Cable for WebSocket connections to enable real-time interactions. Additionally, it provides templates for Sidekiq workers to handle background job processing reliably and patterns for writing comprehensive RSpec test suites for models, requests, and system behaviors. Developers are also guided through migration management, code validation using RuboCop, and strategies for auditing performance and caching.
This skill is particularly useful for backend developers, full-stack engineers, or Rails specialists who are building applications that require real-time updates, background job processing, or optimized database queries. It is ideal for teams adopting Hotwire for modern Rails front-end interactivity and those looking to implement maintainable, high-performance Rails 7+ applications with clear, tested, and structured workflows.
FAQ
Can 'rails-expert' be used with Rails versions below 7?
This skill is specifically designed for Rails 7+ applications and leverages features such as Hotwire integration and enhanced Active Record patterns that may not be fully supported in earlier versions.
Does this skill provide real-time WebSocket functionality?
Yes, it guides developers in configuring Action Cable for WebSocket connections to implement real-time features within Rails applications.
How does 'rails-expert' help prevent N+1 query problems?
It provides common patterns using 'includes' and 'eager_load' to optimize Active Record queries, reducing unnecessary database calls and improving performance.
Is Sidekiq required to use this skill?
While not strictly required, the skill includes templates and guidance for Sidekiq to handle background job processing efficiently. Developers can choose to adopt it based on project needs.
What testing frameworks does 'rails-expert' support?
It focuses on RSpec for Rails, offering guidance for model, request, and system specs, including usage of factories and test validation workflows.
Install rails-expert
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
jeffallan/claude-skills