dhh-rails-style

Apply DHH 37signals Rails conventions to Ruby and Rails code.

50|2|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/roberto-mello/beads-compound-plugin --skill dhh-rails-style-roberto-mello
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dhh-rails-style
Source: https://github.com/roberto-mello/beads-compound-plugin/tree/main/plugins/beads-compound/gemini/skills/dhh-rails-style
Command: npx skills add https://github.com/roberto-mello/beads-compound-plugin --skill dhh-rails-style-roberto-mello

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides developers to consistently apply 37signals/DHH Rails conventions across Ruby and Rails codebases, reducing style drift and review time.

Core Features & Use Cases

  • Enforces RESTful resource design, fat models, thin controllers, and the use of concerns for shared behavior.
  • Guides code reviews and refactoring to align with DHH's "clarity over cleverness" philosophy.
  • Applies to models, controllers, services (as needed), and any Ruby/Rails file generation.

Quick Start

Refactor or generate Ruby/Rails code following DHH's Rails conventions.

Frequently Asked Questions about dhh-rails-style

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply DHH Rails conventions when refactoring Ruby controllers and models?

To apply DHH Rails conventions when refactoring Ruby code, you should enforce RESTful resource design, use fat models with thin controllers, and extract shared behavior into concerns for structural consistency.

What is the DHH Rails style for organizing new feature scaffolding in Ruby?

The DHH Rails style for new feature scaffolding prioritizes clarity over cleverness by utilizing Rails-native patterns, requiring RESTful design, and implementing Current attributes across generated models and controllers.

Can I use DHH 37signals coding conventions for Ruby code reviews?

Yes, you can use DHH 37signals coding conventions for Ruby code reviews to guide structure alignment, reduce style drift across your codebase, and ensure consistent application of Rails-native patterns.

Does DHH Rails style require service objects or concerns for shared behavior?

DHH Rails style relies on concerns for shared behavior and fat models for domain logic rather than service objects, only applying services as needed while maintaining thin controllers.

When do I need to follow Basecamp or HEY style conventions in my Rails application?

You need to follow Basecamp or HEY style conventions when your Rails application requires strict alignment with 37signals patterns, ensuring consistent structure across models, controllers, and views during refactoring or generation.