dhh-rails-style

Installation
Summary

Rails code following 37signals conventions: REST purity, fat models, thin controllers, and clarity over cleverness.

  • Applies DHH style patterns including CRUD controllers, state-as-records instead of booleans, and Current attributes for defaults
  • Covers controllers, models, views, architecture, testing, and dependency decisions with specific naming conventions and code examples
  • Emphasizes vanilla Rails over gems: Minitest over RSpec, fixtures over factory_bot, Solid Queue over Sidekiq, database over Redis
  • Includes REST resource mapping patterns, concerns for horizontal behavior, authorization on User models, and Turbo/Stimulus for interactivity
SKILL.md

<essential_principles>

Core Philosophy

"The best code is the code you don't write. The second best is the code that's obviously correct."

Vanilla Rails is plenty:

  • Rich domain models over service objects
  • CRUD controllers over custom actions
  • Concerns for horizontal code sharing
  • Records as state instead of boolean columns
  • Database-backed everything (no Redis)
  • Build solutions before reaching for gems

What they deliberately avoid:

  • devise (custom ~150-line auth instead)
Related skills

More from everyinc/compound-engineering-plugin

Installs
702
GitHub Stars
16.7K
First Seen
Jan 20, 2026