Skip to content

spec-dhh-rails-style

编写 Ruby/Rails 代码时采用 DHH / 37signals 风格。

基本信息

字段内容
Skillspec-dhh-rails-style
类型internal-only
研发链路位置Code
入口internal_only
Sourceskills/spec-dhh-rails-style/SKILL.md

描述

This skill should be used when writing Ruby and Rails code in DHH's distinctive 37signals style. It applies when writing Ruby code, Rails applications, creating models, controllers, or any Ruby file. Triggers on Ruby/Rails code generation, refactoring requests, code review, or when the user mentions DHH, 37signals, Basecamp, HEY, or Campfire style. Embodies REST purity, fat models, thin controllers, Current attributes, Hotwire patterns, and the "clarity over cleverness" philosophy.

何时使用

  • 生成或重构 Ruby / Rails 代码。
  • 用户要求 DHH、37signals、Basecamp、HEY 或 Campfire 风格。

工作步骤

  • 读取 plan、task pack、bug report 或明确实现目标。
  • 建立小步任务列表,按现有代码模式做最小必要修改。
  • 运行聚焦验证、测试、构建、浏览器或平台检查。
  • 把 diff、验证结果和剩余风险交给 review 或 knowledge 阶段。

输出

  • 实现 diff、测试结果、构建输出、浏览器截图或运行证据。
  • 必要时输出 blocked 原因,而不是扩大 scope。

Agent 调度

  • 小任务通常 inline;大任务可按文件边界使用 serial 或 parallel workers。
  • 调试、优化、UI、平台专项可引入对应 specialist agents,但 orchestrator 负责最终集成。

边界

  • 仅适用于 Ruby / Rails 语境。
  • 不应强行覆盖项目已有明确风格。