dhh-rails-style

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

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/isndotbiz/website --skill dhh-rails-style-isndotbiz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dhh-rails-style
Source: https://github.com/isndotbiz/website/tree/main/.claude/skills/dhh-rails-style
Command: npx skills add https://github.com/isndotbiz/website --skill dhh-rails-style-isndotbiz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write Ruby and Rails code that adheres to the distinctive, pragmatic, and efficient style championed by David Heinemeier Hansson (DHH) and the 37signals team.

Core Features & Use Cases

  • Convention Enforcement: Applies core 37signals philosophies like fat models, thin controllers, REST purity, and Hotwire patterns.
  • Code Guidance: Provides specific examples and anti-patterns for Ruby syntax, REST mapping, testing (Minitest), and frontend development (Turbo, Stimulus).
  • Use Case: A developer is unsure how to structure a new Rails controller action according to DHH's principles. They can consult this Skill for guidance on REST mapping, Turbo Stream responses, and appropriate concerns.

Quick Start

Use the dhh-rails-style skill to refactor the provided Ruby code to follow DHH 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 refactor Ruby code to follow DHH Rails conventions?

To refactor Ruby code to follow DHH Rails conventions, apply fat models, thin controllers, REST purity, and clarity over cleverness. This skill provides specific anti-patterns and guidance for Ruby syntax and Turbo Stream responses.

What are 37signals best practices for structuring Rails controllers?

37signals best practices for structuring Rails controllers prioritize thin controllers and REST purity. You should map actions directly to RESTful resources and utilize Turbo Stream responses instead of adding unnecessary custom endpoints.

Does DHH coding style prefer Minitest over RSpec for Rails testing?

DHH coding style strongly prefers Minitest for Rails testing. This skill embodies the 37signals philosophy by providing specific examples and guidance for testing with Minitest rather than other testing frameworks.

When do I need to use Current attributes in Ruby on Rails applications?

You need to use Current attributes in Ruby on Rails applications to manage global state like request-specific data cleanly. This skill applies DHH conventions for implementing Current attributes to maintain fat model logic without polluting controllers.

What is the best way to implement Hotwire patterns in a Rails application?

The best way to implement Hotwire patterns in a Rails application is by using Turbo and Stimulus to drive frontend interactivity. This skill guides you through DHH's specific patterns for integrating Hotwire seamlessly with RESTful backend conventions.

Why does DHH prefer clarity over cleverness in Ruby syntax?

DHH prefers clarity over cleverness in Ruby syntax to ensure long-term code maintainability and readability. This skill enforces this 37signals philosophy by identifying specific anti-patterns and promoting pragmatic, efficient Ruby code generation.