Dhh Ruby Style
Microck/ordinary-claude-skills
Write Ruby and Rails code in DHH's distinctive 37signals style.
This skill should be used when writing Ruby and Rails code in DHH's distinctive 37signals style.
$ npx skills add davekilleen/Dex --skill dhh-rails-style -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install davekilleen/Dex dhh-rails-style --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/davekilleen/Dex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/plugins/compound-engineering/skills/dhh-rails-style .claude/skills/dhh-rails-style && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "dhh-rails-style" agent skill from https://github.com/davekilleen/Dex/tree/main/.claude/plugins/compound-engineering/skills/dhh-rails-style into .claude/skills/dhh-rails-style/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dhh-rails-style", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/davekilleen/Dex/tree/main/.claude/plugins/compound-engineering/skills/dhh-rails-styleType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add davekilleen/Dex --skill dhh-rails-style -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install davekilleen/Dex dhh-rails-style --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davekilleen/Dex.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/plugins/compound-engineering/skills/dhh-rails-style .agents/skills/dhh-rails-style && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "dhh-rails-style" agent skill from https://github.com/davekilleen/Dex/tree/main/.claude/plugins/compound-engineering/skills/dhh-rails-style into .agents/skills/dhh-rails-style/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dhh-rails-style", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davekilleen/Dex --skill dhh-rails-style -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install davekilleen/Dex dhh-rails-style --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davekilleen/Dex.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/plugins/compound-engineering/skills/dhh-rails-style .cursor/skills/dhh-rails-style && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "dhh-rails-style" agent skill from https://github.com/davekilleen/Dex/tree/main/.claude/plugins/compound-engineering/skills/dhh-rails-style into .cursor/skills/dhh-rails-style/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dhh-rails-style", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/davekilleen/Dex.git --path .claude/plugins/compound-engineering/skills/dhh-rails-style--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add davekilleen/Dex --skill dhh-rails-style -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install davekilleen/Dex dhh-rails-style --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davekilleen/Dex.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/plugins/compound-engineering/skills/dhh-rails-style .gemini/skills/dhh-rails-style && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "dhh-rails-style" agent skill from https://github.com/davekilleen/Dex/tree/main/.claude/plugins/compound-engineering/skills/dhh-rails-style into .gemini/skills/dhh-rails-style/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dhh-rails-style", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install davekilleen/Dex dhh-rails-styleInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add davekilleen/Dex --skill dhh-rails-style -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/davekilleen/Dex.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/plugins/compound-engineering/skills/dhh-rails-style .github/skills/dhh-rails-style && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "dhh-rails-style" agent skill from https://github.com/davekilleen/Dex/tree/main/.claude/plugins/compound-engineering/skills/dhh-rails-style into .github/skills/dhh-rails-style/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dhh-rails-style", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davekilleen/Dex --skill dhh-rails-style -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install davekilleen/Dex dhh-rails-style --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davekilleen/Dex.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/plugins/compound-engineering/skills/dhh-rails-style .opencode/skills/dhh-rails-style && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "dhh-rails-style" agent skill from https://github.com/davekilleen/Dex/tree/main/.claude/plugins/compound-engineering/skills/dhh-rails-style into .opencode/skills/dhh-rails-style/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dhh-rails-style", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
dhh-rails-styleThis skill should be used when writing Ruby and Rails code in DHH's distinctive 37signals style.
Dhh Rails Style is an agent skill from davekilleen/Dex. 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.
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `references/architecture.md`, `references/controllers.md` and `references/frontend.md`).
It sits in Development, covering Backend development. It works with Ruby and Basecamp. The repository describes itself as: Your AI Chief of Staff — a personal operating system starter kit that adapts to your role. No coding required. The licence is MIT.
8 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit d0ffc6b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are ruby).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comx.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Dhh Rails Style loads about 1.7k tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 126 tokens; SKILL.md has 558 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from davekilleen/Dex at commit d0ffc6b, republished under its MIT licence (© davekilleen). 558 words, ~1,703 tokens.
.claude/skills/dhh-rails-style/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.<objective>
Apply 37signals/DHH Rails conventions to Ruby and Rails code. This skill provides comprehensive domain expertise extracted from analyzing production 37signals codebases (Fizzy/Campfire) and DHH's code review patterns.
</objective>
<essential_principles>
"The best code is the code you don't write. The second best is the code that's obviously correct."
Vanilla Rails is plenty:
What they deliberately avoid:
Development Philosophy:
<intake>
What are you working on?
Specify a number or describe your task.
</intake>
<routing>
| Response | Reference to Read |
|---|---|
| 1, controller | controllers.md |
| 2, model | models.md |
| 3, view, frontend, turbo, stimulus, css | frontend.md |
| 4, architecture, routing, auth, job, cache | architecture.md |
| 5, test, testing, minitest, fixture | testing.md |
| 6, gem, dependency, library | gems.md |
| 7, review | Read all references, then review code |
| 8, general task | Read relevant references based on context |
After reading relevant references, apply patterns to the user's code.
</routing>
<quick_reference>
Verbs: card.close, card.gild, board.publish (not set_style methods)
Predicates: card.closed?, card.golden? (derived from presence of related record)
Concerns: Adjectives describing capability (Closeable, Publishable, Watchable)
Controllers: Nouns matching resources (Cards::ClosuresController)
Scopes:
chronologically, reverse_chronologically, alphabetically, latestpreloaded (standard eager loading name)indexed_by, sorted_by (parameterized)active, unassigned (business terms, not SQL-ish)Instead of custom actions, create new resources:
POST /cards/:id/close → POST /cards/:id/closure
DELETE /cards/:id/close → DELETE /cards/:id/closure
POST /cards/:id/archive → POST /cards/:id/archival# Symbol arrays with spaces inside brackets
before_action :set_message, only: %i[ show edit update destroy ]
# Private method indentation
private
def set_message
@message = Message.find(params[:id])
end
# Expression-less case for conditionals
case
when params[:before].present?
messages.page_before(params[:before])
else
messages.last_page
end
# Bang methods for fail-fast
@message = Message.create!(params)
# Ternaries for simple conditionals
@room.direct? ? @room.users : @message.mentioneesState as Records:
Card.joins(:closure) # closed cards
Card.where.missing(:closure) # open cardsCurrent Attributes:
belongs_to :creator, default: -> { Current.user }Authorization on Models:
class User < ApplicationRecord
def can_administer?(message)
message.creator == self || admin?
end
end</quick_reference>
<reference_index>
All detailed patterns in references/:
| File | Topics |
|---|---|
| controllers.md | REST mapping, concerns, Turbo responses, API patterns, HTTP caching |
| models.md | Concerns, state records, callbacks, scopes, POROs, authorization, broadcasting |
| frontend.md | Turbo Streams, Stimulus controllers, CSS layers, OKLCH colors, partials |
| architecture.md | Routing, authentication, jobs, Current attributes, caching, database patterns |
| testing.md | Minitest, fixtures, unit/integration/system tests, testing patterns |
| gems.md | What they use vs avoid, decision framework, Gemfile examples |
| </reference_index> |
<success_criteria> Code follows DHH style when:
<credits>
Based on [The Unofficial 37signals/DHH Rails Style Guide](https://github.com/marckohlbrugge/unofficial-37signals-coding-style-guide) by [Marc Köhlbrugge](https://x.com/marckohlbrugge), generated through deep analysis of 265 pull requests from the Fizzy codebase.
Important Disclaimers:
</credits>
© davekilleen, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 6 other files (references) in .claude/plugins/compound-engineering/skills/dhh-rails-style of davekilleen/Dex.
Open the folder on GitHubat commit d0ffc6b
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in davekilleen/Dex, which our catalogue first saw on October 7, 2026.
Dhh Rails Style next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Dhh Rails Style this skilldavekilleen/Dex | 494 | 1 repos | ~1.7k | Automated safety check: Pass | MIT | |
| Dhh Ruby StyleMicrock/ordinary-claude-skills | 404 | — | ~1.4k | Automated safety check: Pass | Custom licence | |
| Gumroad Prod Consoleantiwork/gumroad | 9.8k | — | ~2.9k | Automated safety check: Notes | MIT | |
| Dhhmarckohlbrugge/37signals-skills | 724 | — | ~2.2k | Automated safety check: Pass | None | |
| Ruby Prodavila7/claude-code-templates | 33k | 8 repos | ~445 | Automated safety check: Pass | MIT | |
| Rubyericrisco/rsc-harness | 180 | — | ~3.2k | Automated safety check: Pass | MIT |
Microck/ordinary-claude-skills
Write Ruby and Rails code in DHH's distinctive 37signals style.
antiwork/gumroad
Execute read-only Ruby/Rails commands against Gumroad's production database for debugging and investigation.
marckohlbrugge/37signals-skills
Review Ruby/Rails code like DHH would - direct, opinionated, allergic to over-engineering.
davila7/claude-code-templates
Write idiomatic Ruby code with metaprogramming, Rails patterns, and performance optimization.
ericrisco/rsc-harness
A skill your agent uses when writing or refactoring plain Ruby outside Rails — scripts, CLIs, gems, libraries: Enumerable chains and blocks, module mixins and value objects, Bundler/gemspec…
doorkeeper-gem/doorkeeper
Avoid common Ruby and Rails antipatterns that degrade maintainability and performance.
davekilleen/Dex
This skill should be used when working with DSPy.rb, a Ruby framework for building type-safe, composable LLM applications.
davekilleen/Dex
Adopt a full published Heydex profile by handle ('set me up like @davekilleen').
davekilleen/Dex
Package one workflow — how you use Dex for a specific job — into a shareable DexDiff methodology doc.
davekilleen/Dex
Expert guidance for creating, writing, and refining Claude Code Skills.
davekilleen/Dex
Report a Dex bug to the Dex team with zero homework — Dex investigates locally, builds a privacy-safe report, shows it to you (or auto-sends if you've chosen that), and tracks the ticket until it's…
davekilleen/Dex
Grade a Dex skill against the shape-aware quality rubric and report a ship/revise/no verdict with the exact fixes.
Categories
This skill should be used when writing Ruby and Rails code in DHH's distinctive 37signals style. Dhh Rails Style is an agent skill from davekilleen/Dex. This skill should be used when writing Ruby and Rails code in DHH's distinctive 37signals style.
Dhh Rails Style fits situations like: ruby/Rails code generation; refactoring requests; the user mentions DHH.
Run `npx skills add davekilleen/Dex --skill dhh-rails-style -a claude-code`. Or copy the skill folder (.claude/plugins/compound-engineering/skills/dhh-rails-style in davekilleen/Dex) into .claude/skills/dhh-rails-style in your project. Claude Code loads it when a task matches its description.
Run `npx skills add davekilleen/Dex --skill dhh-rails-style -a codex`. Or copy the skill folder (.claude/plugins/compound-engineering/skills/dhh-rails-style in davekilleen/Dex) into .agents/skills/dhh-rails-style in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davekilleen/Dex --skill dhh-rails-style -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dhh-rails-style, .gemini/skills/dhh-rails-style, .github/skills/dhh-rails-style and .opencode/skills/dhh-rails-style in your project.
SKILL.md names no scripts, command-line tools or credentials: Dhh Rails Style is instructions for the agent only.
SKILL.md names 2 domains. As links in the text: github.com and x.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Dhh Rails Style is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Dhh Rails Style: Dhh Ruby Style (Microck/ordinary-claude-skills, 404 stars), Gumroad Prod Console (antiwork/gumroad, 9.8k stars), Dhh (marckohlbrugge/37signals-skills, 724 stars) and Ruby Pro (davila7/claude-code-templates, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
davekilleen (a GitHub user) maintains it in davekilleen/Dex, which has 494 GitHub stars. The repository holds 61 skills in this directory. The repository was last updated on October 9, 2026.
Source: davekilleen/Dex on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.