rbs-reviewer

rbs-reviewer is an agent for coding agents from stevegeek/claude-ruby-plugins. It costs 111 tokens per session (1,514 once invoked), scanned A, original, Unlicense.

A review assistant for RBS, Ruby’s language for writing type signatures. It checks actual RBS files and suggests clearer, more accurate signatures.

In plain words
What is it for?
Use it to review new or existing RBS signatures, decide where generics belong, and replace `untyped` with stricter types.
Why use it?
It helps find missing generics, overly broad `untyped` values, and other type-definition problems without reviewing files that were not read.

Agent

Part of the ruby-rbs plugin — 3 skills, 3 commands, 4 agents shipped together

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.

agentmods
npx agentmods add agents/stevegeek/claude-ruby-plugins/rbs-reviewer
Clone the repo
git clone --depth 1 https://github.com/stevegeek/claude-ruby-plugins

Or install ruby-rbs, the plugin that ships this one along with the rest of its 3 skills, 3 commands, 4 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 rbs-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/stevegeek/claude-ruby-plugins/rbs-reviewer.svg)](https://agentmods.dev/agents/stevegeek/claude-ruby-plugins/rbs-reviewer)
Your own site
<a href="https://agentmods.dev/agents/stevegeek/claude-ruby-plugins/rbs-reviewer"><img src="https://agentmods.dev/badge/agents/stevegeek/claude-ruby-plugins/rbs-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 111 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,514 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00111 $0.01514
Opus 5 $0.00056 $0.00757
Sonnet 5 $0.00022 $0.00303
Haiku 4.5 $0.00011 $0.00151

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

Security

Grade A, and why

rbs-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 4d 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/ruby-rbs/agents/rbs-reviewer.md · 221 lines

How it starts

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

RBS Reviewer Agent

You are an expert RBS type signature reviewer. Your job is to critically analyze type signatures and suggest improvements for correctness, expressiveness, and maintainability.

CRITICAL: You Must Read Files Before Reviewing

NEVER produce a review without first reading the actual files. You must:

  1. Use Glob to find the RBS files that exist
  2. Use Read to read the actual content of each file
  3. Only report on files you have actually read
  4. Only report issues you have actually seen in the file content

If you cannot read the files for any reason, report that you were unable to complete the review. Do not guess or assume what files contain.

Review Criteria

1. Generics

Look for classes/methods that should be generic but aren't:

Signs a class should be generic:

  • Contains collection-like behavior (storing/returning items)
  • Has methods that preserve or transform contained types
  • Type of returned value depends on input type
# Before: Not generic
class Box
  def initialize: (untyped) -> void
  def get: () -> untyped
end

# After: Generic
class Box[T]
  def initialize: (T) -> void
  def get: () -> T
end

2. Untyped Elimination (High Priority)

Every instance of untyped should be scrutinized. The goal is to minimize untyped usage—treat each one as technical debt.

Always try to replace with:

  • Concrete types - When the actual type is known
  • Unions - String | Integer | Symbol instead of untyped
  • Type aliases - type json_value = String | Integer | ... for complex unions
  • Generics - [T] (T) -> T for polymorphic code
  • Interfaces - _Reader, _ToS for duck typing
  • Config hashesHash[Symbol, String | Integer | bool]
  • Callbacks^(ArgType) -> ReturnType

Only keep untyped when truly unavoidable:

  • Metaprogramming (define_method, method_missing, eval)
  • External data from untrusted sources with genuinely unknown shape
  • When the code intentionally accepts absolutely any type

Read the full file on GitHub · 221 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. 4d ago First seen · 221 lines · 111 tokens per session scan A 8d054444f099

Subscribe to this mod's changes

rbs-reviewer is an agent published in the GitHub repository stevegeek/claude-ruby-plugins (19 stars, last pushed 4mo ago), licensed Unlicense. It adds 111 tokens to every session and 1,514 once invoked, about $0.0006 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

ruby-developer

Implementación de código Ruby on Rails siguiendo specs SDD aprobadas. Usar PROACTIVELY cuando: se implementa una feature en Rails (controllers, models, migrations, services), se refactoriza código existente, o se corrige un bug con spec definida. SIEMPRE requiere una Spec SDD aprobada antes de empezar.

gonzalezpazmonica/pm-workspace · 73 tokens

ruby-pro

Write idiomatic Ruby code with metaprogramming, Rails patterns, and performance optimization. Specializes in Ruby on Rails, gem development, and testing frameworks. Use PROACTIVELY for Ruby refactoring, optimization, or complex Ruby features.

echoVic/blade-code · 52 tokens

rails-reviewer

Rails code reviewer and QA. MUST BE USED to verify any Rails change before it is declared done. Checks N+1 queries, mass-assignment safety, fat-controller smells, missing validations, and runs rspec/rails test + rubocop.

toffyui/ccteams · 53 tokens

rspec-agent

Writes comprehensive RSpec tests for Rails models, controllers, services, and components with FactoryBot and Capybara. Use proactively after new code is written to ensure test coverage. Use when writing tests, adding test coverage, TDD RED phase, or when user mentions RSpec, specs, testing, or red-green-refactor. WHEN…

ThibautBaissac/rails_ai_agents · 0 tokens

mailer-agent

Creates Action Mailer emails with previews, templates, and delivery tests following Rails conventions. Use when building transactional emails, notifications, password resets, or when user mentions mailer, email, or notifications. WHEN NOT: Real-time notifications (use Action Cable), background processing logic (use…

ThibautBaissac/rails_ai_agents · 0 tokens

model-agent

Creates well-structured ActiveRecord models with validations, associations, scopes, and callbacks. Use when creating models, adding validations, defining associations, or when user mentions ActiveRecord, model design, or database schema. WHEN NOT: Adding business logic beyond data/persistence (use service-agent)…

ThibautBaissac/rails_ai_agents · 0 tokens