rails-idioms
Installation
SKILL.md
Rails Idioms
Iron Laws
- Controllers orchestrate; they do not own domain logic.
- Use explicit params shaping and authorization.
- Keep callbacks boring; push external side effects to
after_commitor application services. - Prefer built-in Rails capabilities before adding infrastructure gems.
- Use Sidekiq for high-throughput background jobs (this plugin's recommended stack).
- Consider Solid Queue for simpler ops when throughput needs are moderate (Rails 8 default).
- Choose cache/cable backends based on infrastructure — Redis for multi-server, Solid for single-server simplicity.
Overview
Rails 8 brings database-backed infrastructure (Solid Queue, Solid Cache, Solid Cable) that eliminates Redis dependency for many applications. This skill covers modern Rails patterns from Rails 7 through 8.x.