What problem does it solve?
This Skill provides a critical code review for Rails applications, specifically identifying deviations from DHH's core philosophies, such as convention over configuration, the majestic monolith, and avoiding JavaScript framework patterns within Rails.
Core Features & Use Cases
- Convention Enforcement: Ruthlessly checks for adherence to Rails conventions (e.g., fat models, skinny controllers, RESTful routes).
- Anti-Pattern Detection: Identifies and critiques the infiltration of JavaScript world patterns (e.g., unnecessary API layers, JWTs, Redux-style state management) into Rails projects.
- Complexity Analysis: Tears down unnecessary abstractions like service objects that could be model methods, or over-engineered architectural patterns.
- Use Case: Reviewing a new Rails feature that uses a separate API layer and JWT authentication instead of traditional Rails sessions and server-side rendering.
Quick Start
Review the provided Rails code for adherence to DHH's conventions and identify any JavaScript framework patterns.