dhh-rails-style

Identify and validate Skill Units via SKILL.md root and metadata structure.

10|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/aimi-so/aimi-engineering-plugin --skill dhh-rails-style-aimi-so
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dhh-rails-style
Source: https://github.com/aimi-so/aimi-engineering-plugin/tree/main/plugins/aimi-engineering/skills/dhh-rails-style
Command: npx skills add https://github.com/aimi-so/aimi-engineering-plugin --skill dhh-rails-style-aimi-so

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill codifies DHH Rails conventions to improve code readability, maintainability, and alignment with 37signals patterns, helping teams write Rails code that favors rich domain models, minimal service objects, and RESTful controllers.

Core Features & Use Cases

  • Guides RESTful architecture with per-resource controllers and self-contained concerns.
  • Provides rules for state as records, current attributes, Turbo/Stimulus frontend patterns, and database-backed design.
  • Helps code reviews and refactoring by applying a consistent, battle-tested style to Ruby/Rails code, models, and migrations.

Quick Start

Follow the guidelines to begin applying DHH Rails conventions in your codebase immediately.

Frequently Asked Questions about dhh-rails-style

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

FAQPage Schema
What is DHH Rails style and how does it structure Ruby on Rails applications?

DHH Rails style is a set of Ruby on Rails conventions favoring rich domain models, minimal service objects, and RESTful controllers. It structures applications using per-resource controllers and self-contained concerns for better maintainability.

How do I apply DHH Rails conventions to my existing Ruby and Rails codebase?

Apply DHH Rails conventions by using the guidelines to refactor models, migrations, and controllers. This involves treating state as records, utilizing current attributes, and adopting database-backed design patterns for alignment.

Does DHH Rails style work with Turbo and Stimulus frontend patterns?

Yes, DHH Rails style provides specific rules for implementing Turbo and Stimulus frontend patterns. It guides how to integrate these frameworks within a database-backed design architecture for consistency.

What is the best way to structure RESTful controllers in Rails according to DHH?

The best way to structure RESTful controllers in Rails is by using per-resource controllers and self-contained concerns. DHH Rails style provides rules to help code reviews by applying this battle-tested style.

When should I avoid using service objects in Ruby on Rails?

Avoid excessive service objects in Ruby on Rails when following DHH style, which favors rich domain models instead. This approach keeps business logic consolidated within models rather than distributed files.