Dhh Rails Style

🌐Community
by ratacat · vlatest · Repository

This AI applies the popular Dhh Rails style guide to your code, ensuring consistency and best practices for cleaner, more maintainable Ruby on Rails projects.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add ratacat-dhh-rails-style npx -- -y @trustedskills/ratacat-dhh-rails-style
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "ratacat-dhh-rails-style": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/ratacat-dhh-rails-style"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill, ratacat-dhh-rails-style, enables AI agents to generate code and text adhering to the coding style popularized by DHH (David Heinemeier Hansson), a prominent figure in the Ruby on Rails community. It emphasizes clean, readable, and idiomatic Ruby code with a focus on convention over configuration. The skill aims to produce code that is consistent with established best practices within the Rails ecosystem.

When to use it

  • Generating new Rails applications or components: Get a head start with code already formatted according to DHH's style preferences.
  • Refactoring existing Ruby/Rails codebases: Quickly apply a consistent coding style across a project.
  • Creating documentation or tutorials for Rails developers: Ensure examples align with industry-standard practices.
  • Automating repetitive coding tasks: Generate boilerplate code that adheres to the desired style guidelines.

Key capabilities

  • Generates Ruby code
  • Adheres to DHH's preferred coding style
  • Focuses on readability and idiomatic Rails conventions
  • Supports convention over configuration principles

Example prompts

  • "Generate a Rails model for 'Product' with attributes: name, description, price."
  • "Refactor this Ruby code snippet to follow DHH's style guidelines: [insert code here]"
  • "Write a simple controller action in Rails that displays a list of users."

Tips & gotchas

This skill is most effective when used within the context of Ruby on Rails projects. While it can generate standalone Ruby code, its stylistic preferences are deeply rooted in the Rails framework.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
ratacat
Installs
5

🌐 Community

Passed automated security scans.