ce-dhh-rails-style

Apply 37signals/DHH Rails style guidelines to Ruby and Rails projects.

10|Updated Dec 13, 2016
One-click install
npx skills add https://github.com/vitallium/dotfiles --skill ce-dhh-rails-style-vitallium
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ce-dhh-rails-style
Source: https://github.com/vitallium/dotfiles/tree/main/dot_agents/skills/ce-dhh-rails-style
Command: npx skills add https://github.com/vitallium/dotfiles --skill ce-dhh-rails-style-vitallium

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Solves inconsistent Rails code styling by enforcing 37signals/DHH conventions across Ruby and Rails projects.

Core Features & Use Cases

  • RESTful design with fat models and thin controllers.
  • Use of concerns for horizontal behavior and module reuse.
  • Turbo/Stimulus integration and architecture guidance for code reviews and refactoring.

Quick Start

Create a minimal Rails snippet that demonstrates a fat model and a thin controller following RESTful conventions.

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 models?

DHH Rails conventions advocate for RESTful design using fat models to encapsulate business logic and thin controllers to handle request routing, ensuring a clear separation of concerns across the application architecture.

How do I use concerns for horizontal behavior reuse in Rails?

Use concerns to extract and share horizontal behavior across multiple models in Rails, promoting module reuse and preventing code duplication while keeping your fat models readable and maintainable.

Does the 37signals Rails style guide include Turbo and Stimulus integration patterns?

Yes, the 37signals Rails style includes architecture guidance for Turbo and Stimulus integration, providing reusable patterns to maintain consistent code quality during reviews and refactoring of interactive views.

Can I apply DHH coding style to an existing Rails project during refactoring?

Yes, you can apply DHH coding style to existing Ruby and Rails projects by using the provided reusable patterns and references to refactor code toward RESTful design and consistent conventions.

What is the best way to enforce consistent Rails coding style across a team?

The best way to enforce consistent Rails coding style is to apply 37signals/DHH conventions across controllers, models, and views, using established architectural patterns to guide code reviews and team standards.