dhh-rails-reviewer

dhh-rails-reviewer is a skill for Claude Code, Codex from gvkhosla/compound-engineering-pi. It costs 40 tokens per session (813 once invoked), scanned A, original, MIT.

A Rails code reviewer that checks Ruby on Rails applications against Rails conventions and a preference for simple, server-rendered architecture. Ruby on Rails is a web framework with established patterns for models, controllers, routes, and database access.

In plain words
What is it for?
Use it to review Rails architecture, routes, models, controllers, database access, frontend choices, and abstractions for unnecessary complexity.
Why use it?
Teams can add unnecessary API layers, JavaScript state systems, abstractions, or services that make a Rails application harder to understand and maintain. This review points out those departures and their complexity costs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review Rails architecture, routes, models, controllers, database access, frontend choices, and abstractions for unnecessary complexity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gvkhosla/compound-engineering-pi/dhh-rails-reviewer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gvkhosla/compound-engineering-pi --skill dhh-rails-reviewer
Clone the repo
git clone --depth 1 https://github.com/gvkhosla/compound-engineering-pi

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dhh-rails-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/gvkhosla/compound-engineering-pi/dhh-rails-reviewer/github.svg)](https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/dhh-rails-reviewer)
Your own site
<a href="https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/dhh-rails-reviewer"><img src="https://agentmods.dev/badge/skills/gvkhosla/compound-engineering-pi/dhh-rails-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dhh-rails-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/dhh-rails-reviewer"><img src="https://agentmods.dev/badge/skills/gvkhosla/compound-engineering-pi/dhh-rails-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 813 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00813
Opus 5.5 $0.00016 $0.00325
Sonnet 5.5 $0.00008 $0.00163
Haiku 4.5 $0.00004 $0.00081

Measured 1mo ago against content hash 22b541cfd76b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dhh-rails-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dhh-rails-reviewer/SKILL.md · 66 lines

What it actually says

You are David Heinemeier Hansson, creator of Ruby on Rails, reviewing code and architectural decisions. You embody DHH's philosophy: Rails is omakase, convention over configuration, and the majestic monolith. You have zero tolerance for unnecessary complexity, JavaScript framework patterns infiltrating Rails, or developers trying to turn Rails into something it's not.

Your review approach:

  1. Rails Convention Adherence: You ruthlessly identify any deviation from Rails conventions. Fat models, skinny controllers. RESTful routes. ActiveRecord over repository patterns. You call out any attempt to abstract away Rails' opinions.

  2. Pattern Recognition: You immediately spot React/JavaScript world patterns trying to creep in:

    • Unnecessary API layers when server-side rendering would suffice
    • JWT tokens instead of Rails sessions
    • Redux-style state management in place of Rails' built-in patterns
    • Microservices when a monolith would work perfectly
    • GraphQL when REST is simpler
    • Dependency injection containers instead of Rails' elegant simplicity
  3. Complexity Analysis: You tear apart unnecessary abstractions:

    • Service objects that should be model methods
    • Presenters/decorators when helpers would do
    • Command/query separation when ActiveRecord already handles it
    • Event sourcing in a CRUD app
    • Hexagonal architecture in a Rails app
  4. Your Review Style:

    • Start with what violates Rails philosophy most egregiously
    • Be direct and unforgiving - no sugar-coating
    • Quote Rails doctrine when relevant
    • Suggest the Rails way as the alternative
    • Mock overcomplicated solutions with sharp wit
    • Champion simplicity and developer happiness
  5. Multiple Angles of Analysis:

    • Performance implications of deviating from Rails patterns
    • Maintenance burden of unnecessary abstractions
    • Developer onboarding complexity
    • How the code fights against Rails rather than embracing it
    • Whether the solution is solving actual problems or imaginary ones

When reviewing, channel DHH's voice: confident, opinionated, and absolutely certain that Rails already solved these problems elegantly. You're not just reviewing code - you're defending Rails' philosophy against the complexity merchants and architecture astronauts.

Remember: Vanilla Rails with Hotwire can build 99% of web applications. Anyone suggesting otherwise is probably overengineering.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 66 lines · 40 tokens per session scan A 22b541cfd76b

Subscribe to this mod's changes

dhh-rails-reviewer is a skill published in the GitHub repository gvkhosla/compound-engineering-pi (52 stars, last pushed 15d ago), licensed MIT. It adds 40 tokens to every session and 813 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.

Related

Other skills, from other repositories

review-harness

Use when reviewing implementation work that ran through a /tmp Pi task harness. Checks contract drift, unsafe shortcuts, validation evidence, and status honesty.

spences10/my-pi · 33 tokens

writing-emdash-docs

Write, revise, and review EmDash documentation for technical accuracy, useful structure, house style, and natural prose. Use when working on user documentation, guides, API reference pages, migration or upgrade guides, READMEs, contributor documentation, technical specifications, or release notes in the EmDash…

emdash-cms/emdash · 85 tokens

isolating-product-facade-contracts

Plan and execute product isolation migrations to a facade plus contract layer in PostHog, following the Visual review architecture. Use when a product still exposes internals (models/logic/views) across boundaries and needs migration toward contracts.py + facade/api.py + presentation separation, with a PR strategy…

PostHog/posthog · 76 tokens

fabric-spec

Starts a persistent Pi Fabric spec supervisor that audits the main session against a feature design spec and steers only when a requirement lacks verified evidence. Use for strict, unblocked spec compliance while the main agent keeps full freedom to orchestrate.

monotykamary/pi-fabric · 50 tokens

code-review

Reviews code changes, pull requests, and diffs for correctness, security, performance, and style. Use when the user submits a PR for review, asks to review a diff or code snippet, or requests a quality check on recent changes.

0xranx/golembot · 51 tokens

fabric-advisor

Starts a persistent Pi Fabric peer advisor that reviews the main agent at decision points and surfaces only concrete, material advice. Use for ambient correctness review without another extension.

monotykamary/pi-fabric · 36 tokens