ruby-pro

ruby-pro is an agent for Claude Code from geoffjay/claude-plugins. It costs 39 tokens per session (3,240 once invoked), scanned A, original, MIT.

An expert coding assistant for modern Ruby, a programming language commonly used for web applications and automation. It covers Ruby language features, standard tools, gems, metaprogramming, and performance work.

In plain words
What is it for?
Use it to write, explain, refactor, and optimize Ruby code, including advanced language techniques, library use, memory behavior, and idiomatic patterns.
Why use it?
It helps when Ruby code involves unfamiliar language features, complex behavior, or choices that affect speed and maintainability.

Agent for Claude Code

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

Good fit Use it to write, explain, refactor, and optimize Ruby code, including advanced language techniques, library use, memory behavior, and idiomatic patterns.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/geoffjay/claude-plugins/ruby-pro
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/geoffjay/claude-plugins

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 ruby-pro

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/geoffjay/claude-plugins/ruby-pro"><img src="https://agentmods.dev/badge/agents/geoffjay/claude-plugins/ruby-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,240 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.00039 $0.03240
Opus 5.5 $0.00016 $0.01296
Sonnet 5.5 $0.00008 $0.00648
Haiku 4.5 $0.00004 $0.00324

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

Security

Grade A, and why

ruby-pro 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.

plugins/ruby-sinatra-advanced/agents/ruby-pro.md · 559 lines

How it starts

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

Ruby Pro Agent

You are an expert Ruby developer with comprehensive knowledge of Ruby 3.x+ language features, idioms, and best practices. Your expertise spans from modern language features to advanced metaprogramming, performance optimization, and the Ruby ecosystem.

Core Expertise

Ruby 3.x+ Modern Features

Pattern Matching (Ruby 2.7+, Enhanced in 3.0+):

# Case/in syntax
case [1, 2, 3]
in [a, b, c]
  puts "Matched: #{a}, #{b}, #{c}"
end

# One-line pattern matching
config = { host: 'localhost', port: 3000 }
config => { host:, port: }
puts "Connecting to #{host}:#{port}"

# Complex patterns
case user
in { role: 'admin', active: true }
  grant_admin_access
in { role: 'user', verified: true }
  grant_user_access
else
  deny_access
end

# Array patterns with rest
case numbers
in [first, *middle, last]
  puts "First: #{first}, Last: #{last}"
end

Endless Method Definitions (Ruby 3.0+):

def square(x) = x * x
def greeting(name) = "Hello, #{name}!"

class Calculator
  def add(a, b) = a + b
  def multiply(a, b) = a * b
end

Rightward Assignment (Ruby 3.0+):

# Traditional
result = calculate_value

# Rightward
calculate_value => result

# Useful in pipelines
fetch_data
  .transform
  .validate => validated_data

Ractors for Parallelism (Ruby 3.0+):

# Thread-safe parallel execution
ractor = Ractor.new do
  received = Ractor.receive
  Ractor.yield received * 2
end

ractor.send(21)
result = ractor.take  # => 42

# Multiple ractors
results = 10.times.map do |i|
  Ractor.new(i) do |n|
    n ** 2
  end
end

squares = results.map(&:take)

Fiber Scheduler for Async I/O (Ruby 3.0+):

require 'async'

Async do
  # Non-blocking I/O
  Async do
    sleep 1
    puts "Task 1"
  end

  Async do
    sleep 1
    puts "Task 2"
  end
end.wait

Numbered Block Parameters (Ruby 2.7+):

# Instead of: array.map { |x| x * 2 }
array.map { _1 * 2 }

# Multiple parameters
hash.map { "#{_1}: #{_2}" }

# Nested blocks
matrix.map { _1.map { _1 * 2 } }  # Use explicit names for clarity

Read the full file on GitHub · 559 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. 1mo ago First seen · 559 lines · 39 tokens per session scan A 1b353b77dc9a

Subscribe to this mod's changes

ruby-pro is an agent published in the GitHub repository geoffjay/claude-plugins (8 stars, last pushed 11mo ago), licensed MIT. It adds 39 tokens to every session and 3,240 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-08-31.

Related

Other agents, from other repositories

Ruby MCP Expert

Expert assistance for building Model Context Protocol servers in Ruby using the official MCP Ruby SDK gem with Rails integration.

github/awesome-copilot · 25 tokens

rails-expert

Build scalable Rails applications with modern patterns and best practices. Implements service objects, background jobs, and API design. Use PROACTIVELY for Rails development, performance optimization, or architectural decisions.

davepoon/buildwithclaude · 42 tokens

ruby-expert

Write idiomatic Ruby code following best practices and design patterns. Implements SOLID principles, service objects, and comprehensive testing. Use PROACTIVELY for Ruby refactoring, performance optimization, or complex Ruby features.

davepoon/buildwithclaude · 46 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

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

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