Dhh Ruby Style
This skill refines your code to match Ruby’s idiomatic style, improving readability and maintainability for Ruby developers.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add dhh-ruby-style npx -- -y @trustedskills/dhh-ruby-style
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"dhh-ruby-style": {
"command": "npx",
"args": [
"-y",
"@trustedskills/dhh-ruby-style"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill applies David Heinemeier Hansson's (DHH) Ruby style guide to code. It automatically formats Ruby code according to DHH’s preferences, ensuring consistency and readability. The skill can be used to enforce a specific coding standard within a project or team.
When to use it
- Code Formatting: Automatically format existing Ruby codebases to adhere to the DHH style guide.
- New Project Setup: Enforce consistent styling from the beginning of new Ruby projects.
- Team Collaboration: Ensure all contributors follow a unified coding standard, improving collaboration and reducing merge conflicts.
- Code Review Assistance: Quickly apply the style guide during code reviews to streamline feedback.
Key capabilities
- Applies DHH's Ruby style guide formatting rules.
- Enforces consistent indentation and spacing.
- Automates code styling tasks.
Example prompts
- "Format this Ruby code according to DHH’s style guide: [paste code here]"
- “Apply the DHH Ruby style to my project.”
- "Can you reformat this file using the David Heinemeier Hansson Ruby style?"
Tips & gotchas
This skill assumes you have a basic understanding of Ruby and its syntax. While it automates formatting, it's still important to understand why certain stylistic choices are made in the DHH style guide for effective code maintenance.
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 Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.