Dhh Rails Style
Checks your code against Ruby on Rails best practices for consistent and maintainable development.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add dhh-rails-style npx -- -y @trustedskills/dhh-rails-style
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"dhh-rails-style": {
"command": "npx",
"args": [
"-y",
"@trustedskills/dhh-rails-style"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The dhh-rails-style skill applies conventions and best practices inspired by DHH (David Heinemeier Hansson), the creator of Ruby on Rails. It helps structure backend code with a focus on clean, maintainable, and test-driven development patterns commonly used in Rails applications.
When to use it
- You're building a new Rails application and want to follow established conventions for naming, directory structure, and testing.
- You need guidance on organizing models, controllers, and services using DHH-style principles.
- Your team is adopting Rails best practices and wants consistent coding standards across the codebase.
Key capabilities
- Enforces DHH-inspired naming conventions for files and classes.
- Provides templates for common Rails patterns like service objects and presenters.
- Encourages test-driven development with RSpec or Minitest integration suggestions.
- Offers guidance on organizing backend logic in a modular, maintainable way.
Example prompts
- "Generate a DHH-style service object for handling user sign-ups."
- "How should I structure my Rails controllers according to DHH conventions?"
- "Create a test suite for a new model using DHH-style testing practices."
Tips & gotchas
- This skill assumes familiarity with Ruby on Rails and its ecosystem.
- It works best when used in conjunction with other Rails-specific tools or plugins.
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.