dhh-ruby-style

Provides Dublin Core and other standardised metadata for PDF files.

102|4|Updated Apr 15, 2009
One-click install
npx skills add https://github.com/mikker/dotfiles --skill dhh-ruby-style-mikker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dhh-ruby-style
Source: https://github.com/mikker/dotfiles/tree/main/agents.symlink/skills/dhh-ruby-style
Command: npx skills add https://github.com/mikker/dotfiles --skill dhh-ruby-style-mikker

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This style guide helps Ruby and Rails teams align on DHH's philosophy of clarity, conventional structure, and practical patterns, reducing confusion and bike-shedding.

Core Features & Use Cases

  • Provides canonical conventions for controllers, models, and views following DHH's "fat models, thin controllers" and REST-purity principles.
  • Contains practical code patterns, references, and resources to accelerate consistent implementation across projects.
  • Use Case: When starting a new Rails app, adopt this guide to scaffold controllers with standard actions and consistent naming patterns.

Quick Start

Study the SKILL.md examples and start applying DHH's Ruby/Rails style to your codebase.

Frequently Asked Questions about dhh-ruby-style

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

FAQPage Schema
How do I apply DHH's Ruby on Rails style conventions to my codebase?

Apply DHH's Ruby on Rails style by following conventions for fat models, thin controllers, and REST-purity. The guide provides canonical controller, model, and view patterns with practical examples to ensure consistent implementation across your projects.

What is the best way to structure Rails controllers following REST-purity?

Structure Rails controllers following REST-purity by keeping them thin and relying on standard actions. DHH's style guide outlines canonical naming patterns and conventions to scaffold controllers consistently without unnecessary complexity.

Does DHH's Ruby style guide cover model and view patterns?

DHH's Ruby style guide covers models and views by enforcing fat models, thin controllers, and current attributes. It provides canonical conventions and practical code patterns to align your entire Rails application structure.

Can I use this Rails style guide for onboarding new developers?

Use this Rails style guide for onboarding new developers by referencing its structured patterns and practical examples. It accelerates hands-on adoption of DHH's conventions, reducing confusion and bike-shedding across your team.

Why use DHH's Ruby style guide instead of community Rails conventions?

Use DHH's Ruby style guide to align your team on a philosophy of clarity, conventional structure, and practical patterns. It distinguishes itself by enforcing REST-purity and fat model principles to minimize debate and reduce confusion.

What are the limitations of adopting DHH's Rails style for existing applications?

Adopting DHH's Rails style for existing applications may require significant refactoring to achieve REST-purity and fat models. The guide targets scaffolding new apps and onboarding, so applying it to legacy code requires careful pattern review.