What problem does it solve?
This Skill helps developers write Ruby and Rails code that adheres to the distinctive, pragmatic, and efficient style championed by DHH and 37signals, leading to cleaner, more maintainable, and performant applications.
Core Features & Use Cases
- Code Style Enforcement: Guides users on DHH's preferred patterns for models, controllers, views, and architecture.
- Best Practice Adoption: Encourages the use of vanilla Rails, fat models, thin controllers, and Turbo/Stimulus for frontend interactivity.
- Use Case: A developer is building a new feature in a Rails application and wants to ensure their code follows the 37signals philosophy of simplicity, clarity, and leveraging the framework's built-in capabilities. They can consult this Skill for guidance on everything from routing to testing.
Quick Start
Use the dhh-rails-style skill to refactor a controller action to follow DHH's REST mapping conventions.