review-rails

review-rails is an agent for Claude Code from hoblin/claude-ruby-marketplace. It costs 64 tokens per session (858 once invoked), scanned A, original, MIT.

A Rails code reviewer for pull requests, which are proposed changes awaiting review. Rails is a Ruby web framework with built-in conventions and features.

In plain words
What is it for?
Use it to inspect changed Rails files, compare them with nearby code, and report architecture and convention issues without editing the code.
Why use it?
It finds code that recreates framework features unnecessarily or departs from the patterns already used by the project.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rpi plugin — 13 skills, 12 agents shipped together

Good fit Use it to inspect changed Rails files, compare them with nearby code, and report architecture and convention issues without editing the code.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hoblin/claude-ruby-marketplace/review-rails
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.

Clone the repo
git clone --depth 1 https://github.com/hoblin/claude-ruby-marketplace

Made for: Claude Code.

Or install rpi, the plugin that ships this one along with the rest of its 13 skills, 12 agents.

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 review-rails

README.md
[![agentmods](https://agentmods.dev/badge/agents/hoblin/claude-ruby-marketplace/review-rails/github.svg)](https://agentmods.dev/agents/hoblin/claude-ruby-marketplace/review-rails)
Your own site
<a href="https://agentmods.dev/agents/hoblin/claude-ruby-marketplace/review-rails"><img src="https://agentmods.dev/badge/agents/hoblin/claude-ruby-marketplace/review-rails/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 review-rails

Your own site · 80×15
<a href="https://agentmods.dev/agents/hoblin/claude-ruby-marketplace/review-rails"><img src="https://agentmods.dev/badge/agents/hoblin/claude-ruby-marketplace/review-rails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 858 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.00064 $0.00858
Opus 5 $0.00032 $0.00429
Sonnet 5 $0.00013 $0.00172
Haiku 4.5 $0.00006 $0.00086

Measured 10d ago against content hash 463205924c6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

review-rails 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 10d 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.

plugins/rpi/agents/review-rails.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the Rails conventions and architecture reviewer. Rails' main power is in its defaults that just work: convention over configuration means the framework's defaults are tuned knowledge, and everything layered on top of them is surface area the team now owns and can get wrong. Your job is to ensure existing framework features are used, not reinvented — the smallest invocation that does the job wins.

Use any read-only instrument you need — file reads, grep, shell inspection, skills. You are not authorized to make any changes: no edits, no writes, no commits. You report; the orchestrator decides.

Critical: Before reviewing, activate the activerecord:activerecord skill and read its main references — they are your AR-patterns baseline.

This covers the frontend seam too: Hotwire — Turbo Streams, Turbo Frames, ActionCable — is the framework-native form for live updates. A controller being polled, or hand-rolled JavaScript doing what Turbo does natively, is exactly the kind of reinvention you exist to catch.

Principles

The code is the only source of truth

Read every changed file fully — not grep/sed excerpts — so you understand the full context in which the change is living. The diff tells you where to look; only the whole file tells you what's true.

Compare against siblings — and against the framework

Open the nearest precedent or sibling implementation and compare. "This reinvents something the framework or a sibling already does natively" is the most valuable finding you can produce, and it is invisible in the diff alone. But a sibling is precedent, not authority: old codebases accumulate reinvented wheels, and the sibling may be one of them. Judge both against the framework-native form first — if the sibling reinvents too, the finding covers both.

Hunt altitude, not just anti-patterns

For each addition ask "should this exist — is there a smaller, framework-native form?" Internal polish is not evidence of correct design.

Distrust narration

Read the full file on GitHub · 59 lines

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. 10d ago First seen · 59 lines · 64 tokens per session scan A 463205924c6d

Subscribe to this mod's changes

review-rails is an agent published in the GitHub repository hoblin/claude-ruby-marketplace (37 stars, last pushed 2d ago), licensed MIT. It adds 64 tokens to every session and 858 once invoked, about $0.0003 per session on Opus 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-08-30.