ce-dhh-rails-style

Guide Ruby and Rails code toward 37signals REST purity and fat models.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/Zeptiny/opencode-setup --skill ce-dhh-rails-style-zeptiny
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ce-dhh-rails-style
Source: https://github.com/Zeptiny/opencode-setup/tree/main/skills/ce-dhh-rails-style
Command: npx skills add https://github.com/Zeptiny/opencode-setup --skill ce-dhh-rails-style-zeptiny

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers write Ruby and Rails code following the distinctive 37signals style, improving code quality and consistency.

Core Features & Use Cases

  • Style Guidelines: Adheres to 37signals/DHH Rails conventions like REST purity, fat models, thin controllers, and the "clarity over cleverness" philosophy.
  • Best Practices: Incorporates best practices such as database-backed solutions, minimal use of external gems, and Minitest for testing.
  • Use Case: Ideal for developers looking to write clean, maintainable, and production-ready code that aligns with the 37signals coding style.

Quick Start

Invoke the ce-dhh-rails-style skill to get guidance on writing Ruby/Rails code in the 37signals style.

Frequently Asked Questions about ce-dhh-rails-style

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

FAQPage Schema
What is the 37signals Rails coding style and how does it differ from standard Ruby conventions?

For Rails conventions, this style guides you toward fat models and thin controllers to keep business logic encapsulated. It recommends database-backed solutions over complex abstractions, minimizing external gems and favoring Minitest for testing to ensure maintainability.

How do I write Ruby code that follows DHH's clarity over cleverness philosophy?

To align with this Rails style, use simple naming conventions, maintain REST purity in controllers, and push logic into fat models. Avoid excessive metaprogramming and clever tricks; instead, favor clear, explicit code that relies on database-backed solutions for maintainability.

Does the 37signals Rails style recommend Minitest over RSpec for testing?

Yes, the 37signals Rails style explicitly incorporates Minitest for testing. This choice aligns with their best practices of minimizing external gems and relying on the framework's built-in capabilities to maintain a simple, clean codebase.

When should I avoid using external gems in my Ruby on Rails application?

You should avoid adding external gems when a database-backed solution or native Rails feature can achieve the same result. The 37signals coding style strongly recommends minimal use of external dependencies to keep your Ruby code simple, maintainable, and easy to upgrade.

Can I apply DHH's Rails conventions to an existing application with complex controllers?

Yes, you can apply these Rails conventions to existing applications by refactoring complex controllers into thin endpoints and moving business logic into fat models. This style guide provides the architectural recommendations needed to align your code with REST purity and 37signals principles.