What problem does it solve?
Rails applications often accumulate non-idiomatic code patterns that fight the framework's built-in conventions, leading to unnecessary complexity, higher maintenance costs, and slower development velocity. This Skill provides an opinionated code review perspective aligned with DHH's Rails philosophy to catch these anti-patterns before they are merged into the codebase.
Core Features & Use Cases
- Opinionated Rails Code Review: Evaluates code diffs from DHH's perspective, focusing exclusively on patterns that deviate from Rails' "omakase" (chef's choice) design principles.
- Calibrated Confidence Scoring: Assigns clear confidence levels to flagged issues, distinguishing between explicit anti-patterns and debatable architectural choices to reduce review noise.
- Targeted Anti-Pattern Detection: Flags common high-impact issues including unnecessary JWT auth replacing standard sessions, over-abstraction that hides core Rails functionality, and unnecessary monolith splitting for single-app concerns.
- Use Case: When reviewing a pull request for a Rails app that introduces a service layer merely wrapping Active Record behavior, or replaces Turbo Hotwire with a custom client-side state machine, this Skill flags these as high-confidence anti-patterns.
Quick Start
Use the dhh-rails-reviewer skill to review the attached Rails pull request diff for patterns that conflict with Rails conventions.