ce-dhh-rails-style

Enforces Draper, Homan & Hollis Rails conventions across Ruby and Rails projects.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/DieStok/ridder_lab_retreat_ai_hackathon_2026 --skill ce-dhh-rails-style-diestok
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ce-dhh-rails-style
Source: https://github.com/DieStok/ridder_lab_retreat_ai_hackathon_2026/tree/main/.agents/skills/compound-engineering/skills/ce-dhh-rails-style
Command: npx skills add https://github.com/DieStok/ridder_lab_retreat_ai_hackathon_2026 --skill ce-dhh-rails-style-diestok

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enables teams to consistently apply the 37signals/DHH Rails conventions to Ruby and Rails tasks, reducing drift and cognitive load across projects.

Core Features & Use Cases

  • Guides RESTful resource design with per-resource controllers and concerns to share behavior.
  • Encourages state-as-records patterns, lightweight validations, and database-backed design.
  • Provides guidance for multi-tenant routing, testing with Minitest fixtures, and Turbo/Stimulus frontends.

Quick Start

Align your Rails project with the DHH conventions described in this guide to start enforcing consistent style.

Frequently Asked Questions about ce-dhh-rails-style

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

FAQPage Schema
What are the DHH Rails conventions for structuring controllers and routing?

DHH Rails conventions require RESTful resource design using per-resource controllers and concerns to share behavior, ensuring clean routing and maintainable Ruby application architecture across projects.

How do I apply state-as-records patterns and lightweight validations in Rails?

To apply state-as-records patterns in Rails, use database-backed design with lightweight model validations. This approach minimizes complexity by treating state as records rather than relying on heavy validation logic.

Does the DHH Rails style guide work with Turbo and Stimulus for frontend development?

Yes, the DHH Rails style guide provides specific guidance for building Turbo and Stimulus frontends, aligning modern Rails interface development with 37signals conventions for consistent application structure.

How do I test Rails applications using Minitest fixtures according to DHH conventions?

DHH conventions guide testing with Minitest fixtures to ensure reliable test coverage. This approach favors database-backed fixtures over heavy mocking for consistent Rails application testing and code reviews.

Can I use this Rails style guide for multi-tenant routing architecture?

Yes, the DHH Rails conventions provide guidance for multi-tenant routing, helping teams architect clean Ruby applications that handle tenant-specific routing while maintaining RESTful resource design principles.