DHH/37signals Rails Style
Applies the distinctive 37signals/DHH conventions to generate and refactor Ruby on Rails code.
The source repository doesn't declare a license. Check its terms before reusing the code.
Key features
- Hotwire-First Frontend: Guides on building modern UIs using Turbo and Stimulus instead of heavy JavaScript frameworks.
- Database-Backed Everything: Advocates for using the database for jobs and state management, avoiding dependencies like Redis.
- REST Purity: Models state changes as new resources instead of custom controller actions.
- Fat Models, Thin Controllers: Encapsulates business logic within models and concerns, keeping controllers lean.
- Pragmatic Conventions: Follows established naming, scoping, and architectural patterns from production 37signals applications.
Use cases
- Building a new Rails application following the battle-tested principles of 37signals.
- Refactoring an existing Rails codebase to improve clarity and reduce unnecessary complexity.
- Performing a code review to align a project with the DHH/37signals coding style.
FAQ
What does the DHH/37signals Rails Style skill do?
This skill helps you write, refactor, and review Ruby on Rails code according to the specific conventions and philosophies of DHH and 37signals. It applies patterns like 'fat models, thin controllers,' REST purity, and a preference for database-backed solutions.
When should I use this Claude Code Skill?
Use it when starting a new Rails project, refactoring existing code to be more conventional, or when you want an AI-powered code review that enforces 37signals' pragmatic style. It's ideal for developers building with Hotwire (Turbo and Stimulus).
How does this skill improve my workflow?
It provides instant, expert-level guidance on a proven architectural style, saving you time researching best practices. It helps you write simpler, more maintainable code by avoiding unnecessary abstractions and dependencies, leading to faster development cycles.
What are some key capabilities of this skill?
Key capabilities include guiding RESTful controller design, structuring models with concerns, advocating for database-backed jobs, promoting Hotwire for UIs, and advising against common gems like Devise or Sidekiq in favor of simpler, 'vanilla' Rails solutions.
Related skills
DSPy for Ruby
Builds type-safe, composable, and optimizable LLM applications in Ruby using the DSPy.rb framework.
Developer Tools2,82412 ptsDHH Ruby/Rails Style
Generates Ruby and Rails code embodying David Heinemeier Hansson's philosophy of clarity, convention, and developer happiness.
Developer Tools2,82412 ptsKotlin Development
Builds production-grade Kotlin applications using http4k, functional patterns, and a Test-Driven Development (TDD) methodology.
Developer Tools312 pts