DHH Ruby & Rails Style

•
81
•

Generates Ruby and Rails code following David Heinemeier Hansson's signature "clarity over cleverness" philosophy and 37signals patterns.

This skill transforms Claude into an expert in the DHH/37signals school of thought for Ruby on Rails development. It enforces strict adherence to REST purity with seven-action controllers, promotes "fat models" for business logic, and utilizes modern Hotwire patterns for frontend reactivity. Whether you're building a new Rails app or refactoring existing code, this skill ensures your implementation follows the specific conventions used at Basecamp and HEY, prioritizing developer happiness and maintainability through convention over configuration and the omission of unnecessary abstractions like service objects.

Key Features

01Applies specific Ruby syntax preferences like %i arrays and modern hash notation
02Encapsulates business logic, authorization, and broadcasting within models
03Enforces strict RESTful controller architecture limited to the seven standard actions
04Implements Current attributes for clean, thread-local request context management
05Integrates Hotwire and Turbo Streams patterns for model-level UI broadcasting
0681 GitHub stars

Use Cases

01Refactoring complex service-oriented Rails apps into idiomatic DHH-style fat models
02Implementing real-time UI updates using Turbo Streams and model-level broadcasting
03Generating new Rails controllers that maintain REST purity by creating new resources instead of custom actions