rails-reviewer

rails-reviewer is an agent for Claude Code from toffyui/ccteams. It costs 53 tokens per session (749 once invoked), scanned A, original, MIT.

A reviewer for Ruby on Rails code changes. Rails is a web application framework, and the reviewer checks code quality, database query behavior, security, validation, and tests.

In plain words
What is it for?
Use it to review and verify Rails changes with RSpec or Rails tests and RuboCop, a Ruby code linter.
Why use it?
It catches common Rails problems such as repeated database queries, unsafe writes, missing validations, and unverified changes before completion.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; reads .claude/ paths.

Good fit Use it to review and verify Rails changes with RSpec or Rails tests and RuboCop, a Ruby code linter.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/toffyui/ccteams/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.

Clone the repo
git clone --depth 1 https://github.com/toffyui/ccteams

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/toffyui/ccteams/rails-reviewer.svg)](https://agentmods.dev/agents/toffyui/ccteams/rails-reviewer)
Your own site
<a href="https://agentmods.dev/agents/toffyui/ccteams/rails-reviewer"><img src="https://agentmods.dev/badge/agents/toffyui/ccteams/rails-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 749 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.00053 $0.00749
Opus 5 $0.00026 $0.00375
Sonnet 5 $0.00011 $0.00150
Haiku 4.5 $0.00005 $0.00075

Measured 8d ago against content hash 692823f71f87, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

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 8d 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.

teams/rails/agents/rails-reviewer.md · 67 lines

How it starts

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

You review and verify Rails changes. You do not implement — you find what is wrong, report it precisely, and confirm when it is right.

FIRST ACTION: Read .claude/skills/rails-playbook/SKILL.md and follow its reviewer checklist. If the file is absent, apply the rules below. Non-negotiable minimums from it: string-interpolated SQL or raw params reaching a model write is an instant FAIL; a uniqueness validation without a matching unique index in db/schema.rb is a FAIL (races produce duplicates); N+1 traversal in any view/serializer loop without includes/preload at the query origin is a FAIL — name the exact call to add; update_column/delete_all/save(validate: false) and Time.now/Date.today in app code are flagged unless a stated reason justifies them; the verification recipe's real command output must be pasted — a summary is not verification.

What you check, in priority order

  1. N+1 queries

    • Any association traversal inside a loop or .each that is not covered by includes / preload / eager_load in the calling scope is an N+1.
    • Flag: users.each { |u| u.posts.count } without includes(:posts).
    • Suggest the correct includes call with the association name.
  2. Mass-assignment safety

    • Every create/update in a controller uses params.require().permit().
    • Flag any Model.new(params), Model.create(params), or update(params) that bypasses strong parameters.
  3. Missing validations

    • Required attributes lack validates :field, presence: true.
    • Uniqueness constraints exist at the DB level (migration index) but not on the model, or vice versa — both should be present for reliable enforcement.
  4. Fat-controller smells

    • Business logic (more than attribute assignment + save) belongs in the model or a service object. Flag controllers that make multiple model queries or contain conditional business logic inline.
  5. Migration safety

    • Migrations must be reversible. Flag any change migration that calls an irreversible method without up/down splitting.
    • Missing index on a new foreign key or frequently-queried column.
  6. Conventions

    • Change matches surrounding naming, file layout, and callback/scope patterns.

Read the full file on GitHub · 67 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. 8d ago First seen · 67 lines · 53 tokens per session scan A 692823f71f87

Subscribe to this mod's changes

rails-reviewer is an agent published in the GitHub repository toffyui/ccteams (47 stars, last pushed 8d ago), licensed MIT. It adds 53 tokens to every session and 749 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.

Related

Other agents, from other repositories

rails-code-reviewer

Use this agent when you need expert code review for Ruby on Rails applications, focusing on Rails conventions, POODR principles, and idiomatic Ruby practices. Examples: Context: The user has just implemented a new service object for user registration and wants it reviewed for Rails best practices. user: 'I just…

dgalarza/claude-code-workflows · 0 tokens

review-rails

Rails conventions and architecture reviewer for PR audits. Spawned by /rpi:review-pr as subagenttype rpi:review-rails with artifact paths. Ensures existing framework features are used, not reinvented — reads changed files in full and compares them against siblings and the framework-native form.

hoblin/claude-ruby-marketplace · 64 tokens

agentic-coding-kieran-rails-reviewer

Conditional code-review persona, selected when the diff touches Rails application code. Reviews Rails changes with Kieran's strict bar for clarity, conventions, and maintainability.

DolphinAI2026/dolphin-code · 43 tokens

ruby-reviewer

Reviews Ruby/Rails/Grape changes for correctness, maintainability, boundary discipline, and idiomatic Ruby design.

slbug/claude-ruby-grape-rails · 26 tokens

sidekiq-specialist

Reviews Sidekiq job classes, queueing strategy, retries, idempotency, payload shape, and enqueue timing. Use when implementing or reviewing async workflows.

slbug/claude-ruby-grape-rails · 38 tokens

layered-rails-reviewer

Use this agent when reviewing Rails code for layered architecture violations. Checks for: Current.user in models, notifications/mailers in domain layer, request objects in services, business logic in controllers, anemic models, low-scoring callbacks (operations that should be extracted), code-slicing concerns, and god…

palkan/layered-rails-skills · 75 tokens