dhh-rails-style

Enforce 37signals/DHH Rails conventions across Ruby and Rails codebases.

25|15|Updated Aug 2, 2021
One-click install
npx skills add https://github.com/JesusFilm/core --skill dhh-rails-style-jesusfilm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dhh-rails-style
Source: https://github.com/JesusFilm/core/tree/main/.claude/skills/dhh-rails-style
Command: npx skills add https://github.com/JesusFilm/core --skill dhh-rails-style-jesusfilm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Standardizes Ruby on Rails coding style to align with 37signals/DHH principles, reducing drift and accelerating reviews.

Core Features & Use Cases

  • Enforces fat models and thin controllers with RESTful patterns
  • Promotes Current attributes, Turbo/Stimulus integration, and clear ownership
  • Aids code reviews and refactoring by providing explicit conventions and naming

Quick Start

Review a Ruby or Rails file and transform it to follow the DHH Rails style guidelines.

Frequently Asked Questions about dhh-rails-style

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

FAQPage Schema
How do I enforce DHH Rails conventions for clean Ruby code?

Enforce DHH Rails conventions by applying 37signals patterns for fat models, thin controllers, and RESTful design to review and refactor Ruby code. This standardizes your codebase to align with DHH principles and reduces style drift.

What are 37signals coding conventions for Rails models and controllers?

37signals coding conventions for Rails models and controllers promote fat models, thin controllers, and RESTful patterns. They also encourage using Current attributes and clear ownership to standardize project architecture and naming.

Can I use DHH Rails style guidelines to refactor existing Ruby code?

Yes, you can use DHH Rails style guidelines to refactor existing Ruby code. By reviewing a Ruby or Rails file, you can transform it to follow explicit conventions for time zones, views, and naming to accelerate code reviews.

Does the DHH Rails style guide cover Turbo and Stimulus integration?

The DHH Rails style guide does cover Turbo and Stimulus integration. It promotes clear conventions for front-end integration alongside patterns for models, controllers, views, and RESTful design within Ruby on Rails projects.

What is the best way to standardize Ruby on Rails coding style across a team?

The best way to standardize Ruby on Rails coding style is to apply explicit 37signals conventions during code generation and review. Adopting patterns for RESTful design and naming reduces drift and accelerates the review process.