claude-code-agents-manager: Agent for Claude Code

.claude/agents/ruby-performance-tester.md

ruby-performance-tester is an agent for Claude Code from dallasgoldswain/claude-code-agents-manager. It costs 29 tokens per session (2,595 once invoked), scanned A, original, MIT.

A Ruby specialist for improving program speed and memory use and for writing Minitest tests, Ruby's lightweight testing framework.

In plain words
What is it for?
Use it for benchmarking, profiling, garbage-collection and memory work, database-query analysis, load testing, scalability checks, and broader Minitest coverage.
Why use it?
It helps find slow code, excessive memory allocation, inefficient database access, and missing regression tests with measurements rather than guesswork.

Agent for Claude Code

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

This is dallasgoldswain/claude-code-agents-manager's own configuration. It tells Claude Code how to work on claude-code-agents-manager 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 claude-code-agents-manager configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dallasgoldswain/claude-code-agents-manager. 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/dallasgoldswain/claude-code-agents-manager/main/.claude/agents/ruby-performance-tester.md
Clone the repo
git clone --depth 1 https://github.com/dallasgoldswain/claude-code-agents-manager

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-performance-tester

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/dallasgoldswain/claude-code-agents-manager/ruby-performance-tester"><img src="https://agentmods.dev/badge/agents/dallasgoldswain/claude-code-agents-manager/ruby-performance-tester.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,595 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.00029 $0.02595
Opus 5.5 $0.00012 $0.01038
Sonnet 5.5 $0.00006 $0.00519
Haiku 4.5 $0.00003 $0.00260

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

Security

Grade A, and why

ruby-performance-tester 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.

.claude/agents/ruby-performance-tester.md · 445 lines

How it starts

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

Ruby Performance & Testing Expert

Specialized in Ruby performance optimization and comprehensive testing:

  • Memory profiling and GC optimization
  • Database query performance analysis
  • Minitest testing patterns and organization
  • Benchmarking and performance regression detection
  • Load testing and scalability analysis

Performance Optimization Focus

Memory Management

# Optimize object allocation
class UserProcessor
  # Freeze constants to prevent string allocation
  FROZEN_CONSTANTS = {
    'active' => 'active'.freeze,
    'inactive' => 'inactive'.freeze,
    'pending' => 'pending'.freeze
  }.freeze

  STATUS_SYMBOLS = {
    active: :active,
    inactive: :inactive,
    pending: :pending
  }.freeze

  def process_users(users)
    # Use lazy enumeration for large datasets
    users.lazy
         .select { |user| user.status == FROZEN_CONSTANTS['active'] }
         .map { |user| process_user(user) }
         .force
  end

  def process_in_batches(users, batch_size: 1000)
    users.find_in_batches(batch_size: batch_size) do |batch|
      # Process batch to avoid loading all records in memory
      batch.each { |user| process_user(user) }

      # Force garbage collection between batches if needed
      GC.start if GC.stat[:heap_live_slots] > 1_000_000
    end
  end

  private

  def process_user(user)
    # Use symbols instead of strings for hash keys
    {
      id: user.id,
      name: user.name,
      status: STATUS_SYMBOLS[user.status.to_sym]
    }
  end
end

Database Performance

# Prevent N+1 queries
class OptimizedQueries
  def user_posts_with_comments
    # Strategic includes to prevent N+1
    User.includes(posts: [comments: :author])
        .where(active: true)
        .references(:posts)
        .where(posts: { published: true })
  end

  def bulk_insert_users(user_data)
    # Use bulk insert for better performance
    User.insert_all(
      user_data.map do |data|
        {
          name: data[:name],
          email: data[:email],
          created_at: Time.current,
          updated_at: Time.current
        }
      end
    )
  end

  def optimized_aggregation
    # Use database aggregation instead of Ruby
    Post.joins(:comments)
        .group('posts.id')
        .select('posts.*, COUNT(comments.id) as comments_count')
        .having('COUNT(comments.id) > ?', 5)
  end

  def cached_popular_posts
    # Implement caching strategy
    Rails.cache.fetch('popular_posts', expires_in: 1.hour, race_condition_ttl: 5.seconds) do
      Post.joins(:views)
          .group('posts.id')
          .having('count(views.id) > ?', 100)
          .limit(10)
          .to_a # Force evaluation for caching
    end
  end
end

Read the full file on GitHub · 445 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 · 445 lines · 29 tokens per session scan A 4f09add1e251

Subscribe to this mod's changes

ruby-performance-tester is an agent published in the GitHub repository dallasgoldswain/claude-code-agents-manager (2 stars, last pushed 7mo ago), licensed MIT. It adds 29 tokens to every session and 2,595 once invoked, about $0.0001 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-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.

NOMARJ/sigil · 52 tokens

neqsim-test

Creates JUnit 5 unit tests for NeqSim code — thermo systems, process equipment, PVT simulations, standards, and mechanical design. Follows NeqSim test conventions, asserts on physical outputs and solver convergence, and ensures Java 8 compatibility.

equinor/neqsim · 56 tokens

spring-boot-unit-testing-expert

Provides expert unit testing capability with Spring Test, JUnit 5, and Mockito for Spring Boot applications. Handles comprehensive test strategies, test architecture, and testing best practices. Use proactively when writing unit tests, improving test coverage, or reviewing testing strategies.

giuseppe-trisciuoglio/developer-kit · 58 tokens

test-engineer

Testing expert for .NET — test strategy, integration tests with WebApplicationFactory and Testcontainers, xUnit v3 patterns, and snapshot testing with Verify. Use when designing a test strategy, writing or fixing tests, setting up test infrastructure, or improving coverage of critical paths.

codewithmukesh/dotnet-claude-kit · 59 tokens

rust-pro

Write idiomatic Rust with ownership patterns, lifetimes, and trait implementations. Masters async/await, safe concurrency, and zero-cost abstractions. Use PROACTIVELY for Rust memory safety, performance optimization, or systems programming.

NOMARJ/sigil · 49 tokens

pest

Pest testing for Laravel.

mischasigtermans/laravel-altitude · 8 tokens