ce-dhh-rails-style

Refactor Ruby on Rails applications to follow 37signals/DHH conventions.

1|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/FFCfelps1/SGPPF_Maua --skill ce-dhh-rails-style-ffcfelps1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ce-dhh-rails-style
Source: https://github.com/FFCfelps1/SGPPF_Maua/tree/main/.gemini/skills/ce-dhh-rails-style
Command: npx skills add https://github.com/FFCfelps1/SGPPF_Maua --skill ce-dhh-rails-style-ffcfelps1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rails, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill applies the 37signals/DHH Rails coding conventions to your Ruby and Rails applications, ensuring clean, maintainable, and efficient code that adheres to established best practices.

Core Features & Use Cases

  • REST Mapping: Follows the RESTful design principles for controllers and routes.
  • Model Design: Implements stateful models with minimal validation and rich associations.
  • View and Frontend: Utilizes Turbo, Stimulus, and CSS layers for a modern, efficient frontend.
  • Testing: Recommends Minitest for robust testing with fixtures and integration tests.
  • Use Case: When you want to refactor your Rails application to match the style and efficiency of 37signals' codebases.

Quick Start

To apply DHH Rails style to your project, run the ce-dhh-rails-style skill in your terminal.

Frequently Asked Questions about ce-dhh-rails-style

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

FAQPage Schema
How do I refactor my Ruby on Rails app to follow 37signals coding conventions?

To refactor your Ruby on Rails app to follow 37signals coding conventions, apply RESTful design principles, fat models, thin controllers, and efficient frontend patterns using Turbo and Stimulus.

What are DHH's Rails conventions for model and controller architecture?

DHH's Rails conventions for model and controller architecture emphasize stateful models with minimal validation and rich associations, paired with thin controllers that strictly follow RESTful routing principles.

Can I use Minitest instead of RSpec for testing Rails applications with DHH style?

Yes, you can use Minitest for testing Rails applications with DHH style, as it is the recommended testing framework for robust testing with fixtures and integration tests over adding unnecessary gems.

Does the DHH Rails style approach work with older Ruby on Rails versions?

The DHH Rails style approach is designed for Ruby on Rails version 5 and above, ensuring compatibility with modern framework features while adhering to the 37signals development philosophy.

What is the best way to structure Rails frontend views according to 37signals conventions?

The best way to structure Rails frontend views according to 37signals conventions is by utilizing Turbo, Stimulus, and organized CSS layers for a modern, efficient frontend without heavy JavaScript frameworks.

Why does 37signals Rails style recommend avoiding unnecessary gems?

37signals Rails style recommends avoiding unnecessary gems to maintain clean, maintainable, and efficient code by relying on built-in framework capabilities and their established development philosophy.