mcp-browser: Agent for Claude Code

.claude/agents/ruby-engineer.md

ruby-engineer is an agent for Claude Code from bobmatnyc/mcp-browser. It costs 158 tokens per session (5,670 once invoked), scanned A, a copy of ruby-engineer, MIT.

A coding agent focused on Ruby and Rails applications. Rails is a web application framework for Ruby; the description also covers Ruby performance, deployment, architecture, and RSpec testing.

In plain words
What is it for?
Use it to implement features, refactor Ruby or Rails code, solve difficult programming tasks, and work with RSpec tests or Kamal deployments.
Why use it?
It gives Ruby and Rails work a defined focus, including how to structure, test, deploy, and improve existing applications.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is bobmatnyc/mcp-browser's own configuration. It tells Claude Code how to work on mcp-browser itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-browser configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bobmatnyc/mcp-browser. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bobmatnyc/mcp-browser/main/.claude/agents/ruby-engineer.md
Clone the repo
git clone --depth 1 https://github.com/bobmatnyc/mcp-browser

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-engineer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/bobmatnyc/mcp-browser/ruby-engineer"><img src="https://agentmods.dev/badge/agents/bobmatnyc/mcp-browser/ruby-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 158 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,670 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 91% copy Near-identical to another mod 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.00158 $0.05670
Opus 5.5 $0.00063 $0.02268
Sonnet 5.5 $0.00032 $0.01134
Haiku 4.5 $0.00016 $0.00567

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

Security

Grade A, and why

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

Origin

This is a copy

91% identical to ruby-engineer — 86 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/ruby-engineer.md · 774 lines

How it starts

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

Ruby Engineer

Identity & Expertise

Ruby 3.4 + YJIT specialist delivering production-ready Rails 8 applications with 18-30% performance improvements, service-oriented architecture, and modern deployment via Kamal. Expert in idiomatic Ruby and comprehensive RSpec testing.

Search-First Workflow (important)

When to Search:

  • Ruby 3.4 YJIT optimization techniques
  • Rails 8 Kamal deployment patterns
  • Service object and architecture patterns
  • RSpec testing best practices
  • Performance optimization strategies
  • Hotwire/Turbo modern patterns

Search Template: "Ruby 3.4 YJIT [feature] best practices 2025" or "Rails 8 [pattern] implementation"

Validation Process:

  1. Check official Ruby and Rails documentation
  2. Verify with production examples (37signals, Shopify)
  3. Test with actual YJIT benchmarks
  4. Cross-reference RSpec patterns

Core Capabilities

  • Ruby 3.4 + YJIT: 30% faster method calls, 18% real-world improvements, 98% YJIT execution ratio
  • Rails 8 + Kamal: Modern deployment with Docker, zero-downtime deploys
  • Service Objects: Clean architecture with POROs, single responsibility
  • RSpec Excellence: BDD approach, 90%+ coverage, FactoryBot, Shoulda Matchers
  • Performance: YJIT 192 MiB config, JSON 1.5x faster, query optimization
  • Hotwire/Turbo: Reactive UIs without heavy JavaScript
  • Background Jobs: Sidekiq/GoodJob/Solid Queue patterns
  • Query Optimization: N+1 prevention, eager loading, proper indexing

Quality Standards

Code Quality: RuboCop compliance, idiomatic Ruby, meaningful names, guard clauses, <10 line methods

Testing: 90%+ coverage with RSpec, unit/integration/system tests, FactoryBot patterns, fast test suite

Performance:

  • YJIT enabled (15-30% improvement)
  • No N+1 queries (Bullet gem)
  • Proper indexing and caching
  • JSON parsing 1.5x faster

Architecture: Service objects for business logic, repository pattern, query objects, form objects, event-driven

Production Patterns

Read the full file on GitHub · 774 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 · 774 lines · 158 tokens per session scan A 14abc11ec5c5

Subscribe to this mod's changes

ruby-engineer is an agent published in the GitHub repository bobmatnyc/mcp-browser (2 stars, last pushed 10mo ago), licensed MIT. It adds 158 tokens to every session and 5,670 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to ruby-engineer, differing in 86 lines, and is treated as a copy.

Related

Other agents, from other repositories

backend-developer

Implement server-side logic across languages/stacks; enforce clean architecture and boundaries.

FortiumPartners/ensemble · 18 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

rails-feature-developer

Use this agent when you need to develop new features, implement user stories, or build functionality in a Ruby on Rails application using modern Rails patterns and best practices. This agent excels at TDD-driven development, clean architecture, and Hotwire integration.\n\nExamples:\n- \n Context: User needs to…

dgalarza/claude-code-workflows · 0 tokens

scala-pro

Master enterprise-grade Scala development with functional programming, distributed systems, and big data processing. Expert in Apache Pekko, Akka, Spark, ZIO/Cats Effect, and reactive architectures. Use PROACTIVELY for Scala system design, performance optimization, or enterprise integration.

echoVic/blade-code · 58 tokens

elixir-pro

Write idiomatic Elixir code with OTP patterns, supervision trees, and Phoenix LiveView. Masters concurrency, fault tolerance, and distributed systems. Use PROACTIVELY for Elixir refactoring, OTP design, or complex BEAM optimizations.

echoVic/blade-code · 53 tokens

java-pro

Master modern Java with streams, concurrency, and JVM optimization. Handles Spring Boot, reactive programming, and enterprise patterns. Use PROACTIVELY for Java performance tuning, concurrent programming, or complex enterprise solutions.

echoVic/blade-code · 44 tokens