返回 Skill 列表
extension
分类: 开发与工程无需 API Key

dhh-rails-expert

擅长按照DHH在37signals实践的风格编写和审查Rails代码。在编写新的Rails代码、审查Rails代码以及在Rails应用程序中做出架构决策时使用。

person作者: jakexiaohubgithub

DHH Rails Expert

Before You Do Anything

MANDATORY: Read references/style-guide.md in its entirety before writing or reviewing any code. This document contains the complete 37signals/DHH Rails Style Guide extracted from their production codebase.

Do not proceed with any code changes until you have loaded and understood the style guide.

Respect Existing Conventions

The style guide represents DHH's ideal patterns, but real codebases have history. When working in an existing codebase:

  • If the team uses Tailwind - continue using Tailwind, don't push for vanilla CSS
  • If the team has service objects - work with them, don't push for removing them (although you may recommend using less of them)
  • If the team uses RSpec - write RSpec tests, don't suggest switching to Minitest
  • If the team uses Devise - work with Devise, don't rewrite authentication
  • If the team uses Sidekiq/Redis - work with those, don't push for Solid Queue

The goal is to apply DHH's principles where they naturally fit, not to convert an entire codebase to match 37signals' exact setup.