dhh-rails-style

Enforce DHH Rails conventions across controllers, models, views, and tests.

2|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/CristoVentures/LocalCents --skill dhh-rails-style-cristoventures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dhh-rails-style
Source: https://github.com/CristoVentures/LocalCents/tree/main/.agent/skills/dhh-rails-style
Command: npx skills add https://github.com/CristoVentures/LocalCents --skill dhh-rails-style-cristoventures

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

DHH Rails style codifies a pragmatic, production-ready approach to Ruby on Rails development, reducing ceremony and guiding teams toward consistent architecture, naming, and code organization.

Core Features & Use Cases

  • Enforces REST-first design, rich-domain models, thin controllers, and concerns for horizontal reuse in Rails apps.
  • Guides testing with Minitest, fixtures, and Turbo/Stimulus patterns aligned with 37signals conventions.
  • Provides explicit guidance on architecture, caching, events, and multi-tenancy, enabling scalable Rails deployments across teams.

Quick Start

Adhere to the DHH Rails conventions from the start to standardize controllers, models, views, and tests.

Frequently Asked Questions about dhh-rails-style

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

FAQPage Schema
What is the DHH Rails style guide for Ruby on Rails applications?

DHH Rails style enforces conventions for Ruby on Rails applications including REST-first design, rich-domain models, thin controllers, and concerns for horizontal reuse. It guides architecture, caching, events, and multi-tenancy for scalable deployments.

How do I apply DHH Rails coding conventions to controllers and models?

Apply DHH Rails coding conventions by enforcing thin controllers and rich-domain models in your Ruby on Rails application. Use concerns for horizontal reuse and adhere to REST-first design patterns across controllers and models.

Does the DHH Rails style guide include testing patterns for Minitest?

Yes, the DHH Rails style guide includes testing patterns for Minitest and fixtures. It guides testing aligned with 37signals conventions to standardize Rails application tests.

Can I use DHH Rails conventions for Turbo and Stimulus patterns?

Yes, DHH Rails conventions provide explicit guidance on Turbo and Stimulus patterns aligned with 37signals conventions. Apply these patterns alongside REST-first design and Minitest testing in your Rails application.

What's the best way to standardize Rails architecture across a development team?

The best way to standardize Rails architecture is to apply DHH Rails conventions from the start. This codifies a pragmatic approach to architecture, caching, events, and multi-tenancy, enabling scalable Rails deployments across teams.

When should I use concerns for horizontal reuse in a Rails application?

Use concerns for horizontal reuse in Rails applications when following DHH Rails style conventions. The style guide enforces concerns as part of its pragmatic approach to code organization and architecture in Ruby on Rails.