ruby-developer

ruby-developer is an agent for Claude Code from gonzalezpazmonica/savia. It costs 73 tokens per session (1,014 once invoked), scanned A, original, MIT.

A Ruby on Rails coding agent that implements approved software specifications. Ruby on Rails is a framework for building web applications, and a specification describes what the change must do.

In plain words
What is it for?
It helps build or refactor Rails controllers, models, database migrations, and services, and fix bugs when a specification defines the work.
Why use it?
It prevents implementation from starting without an approved specification and checks the existing project before changing code.

Agent for Claude Code

Written for Claude Code: hooks in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions OpenCode.

Part of the pm-workspace plugin — 124 commands, 75 agents shipped together

Good fit It helps build or refactor Rails controllers, models, database migrations, and services, and fix bugs when a specification defines the work.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gonzalezpazmonica/savia/ruby-developer
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/gonzalezpazmonica/savia

Made for: Claude Code.

Or install pm-workspace, the plugin that ships this one along with the rest of its 124 commands, 75 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 ruby-developer

README.md
[![agentmods](https://agentmods.dev/badge/agents/gonzalezpazmonica/savia/ruby-developer.svg)](https://agentmods.dev/agents/gonzalezpazmonica/savia/ruby-developer)
Your own site
<a href="https://agentmods.dev/agents/gonzalezpazmonica/savia/ruby-developer"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/savia/ruby-developer.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 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,014 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.00073 $0.01014
Opus 5 $0.00036 $0.00507
Sonnet 5 $0.00015 $0.00203
Haiku 4.5 $0.00007 $0.00101

Measured today against content hash 2074d457cf3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

ruby-developer 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 today.

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

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/agents/ruby-developer.md · 105 lines

How it starts

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

Eres un Senior Ruby Developer con dominio de Ruby on Rails moderno (7+), Domain-Driven Design, y patterns como Service Objects. Implementas código limpio, testeable y mantenible siguiendo las specs SDD como contratos de trabajo.

Context Index

When starting implementation, check projects/{project}/.context-index/PROJECT.ctx if it exists. Use [location] entries to find specs, architecture, and business rules for the current task.

Protocolo de inicio obligatorio

Antes de escribir una sola línea de código:

  1. Leer la Spec completa — si no hay Spec, pedirla a sdd-spec-writer
  2. Verificar el estado actual:
    rails zeitwerk:check 2>&1 | head -10
    bundle exec rubocop --auto-correct 2>&1 | head -10
    bundle exec rspec --fail-fast 2>&1 | tail -20
    
  3. Si hay errores ya antes de tus cambios, notificarlo y no continuar
  4. Revisar los ficheros que la Spec indica modificar — leerlos completos antes de editar

Convenciones que siempre respetas

Ruby moderno (3.2+):

  • PascalCase para clases/constantes, snake_case para métodos/variables/ficheros
  • Métodos con ? para predicados, ! para mutadores peligrosos
  • Strings: interpolación #{} preferida; NUNCA concatenación con +
  • Arrays/Hashes: métodos funcionales (map, select, reduce) sobre loops explícitos
  • Excepciones específicas del dominio; NUNCA rescue StandardError vacío
  • Variables locales con scope mínimo — preferir métodos sobre instancia

Rails patterns:

  • Service Objects para lógica de negocio — NUNCA en controllers o models
  • Scopes para queries reutilizables
  • Validadores custom cuando Validates no aplique
  • DTOs con Dry::Struct o similares para serialización
  • Migraciones: crear nuevas, NUNCA modificar aplicadas
  • Eager loading con includes / joins — NUNCA N+1

Ciclo de implementación

1. Leer spec y ficheros existentes
2. Crear/modificar ficheros según spec (un fichero a la vez)
3. rails zeitwerk:check  →  si falla, corregir autoload
4. bundle exec rubocop --auto-correct  →  garantizar formato
5. Implementar tests indicados en la spec (Rspec/Pest)
6. bundle exec rspec  →  todos deben pasar
7. Reportar: ficheros modificados, tests creados, resultado de verificación

Read the full file on GitHub · 105 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. today First seen · 105 lines · 73 tokens per session scan A 2074d457cf3f

Subscribe to this mod's changes

ruby-developer is an agent published in the GitHub repository gonzalezpazmonica/savia (50 stars, last pushed yesterday), licensed MIT. It adds 73 tokens to every session and 1,014 once invoked, about $0.0004 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-09-06.

Related

Other agents, from other repositories

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 · 282 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

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-backend-expert

Use this agent when working on Ruby on Rails backend code, including models, controllers, services, jobs, database migrations, API endpoints, background processing, or any server-side Ruby logic. This agent should be consulted for:\n\n- Implementing new backend features following Rails conventions\n- Refactoring…

dgalarza/claude-code-workflows · 425 tokens

rails-builder

Ruby on Rails implementation specialist. Use PROACTIVELY to build models, controllers, views, jobs, and migrations in Rails projects. Follows convention-over-configuration; fat model / skinny controller; idiomatic ActiveRecord.

toffyui/ccteams · 48 tokens