code-reviewer

code-reviewer is an agent for Claude Code from gonzalezpazmonica/pm-workspace. It costs 73 tokens per session (1,708 once invoked), scanned A, original, MIT.

A Spanish-language .NET code-review agent used as a quality gate before code is merged into the main branch.

In plain words
What is it for?
Use it to review completed .NET implementations, check vulnerabilities and SOLID or Clean Architecture concerns, and prepare findings with rule IDs for human review.
Why use it?
It provides a structured review against approved specifications, security rules, bugs, maintainability, and architecture instead of relying only on a general code read-through.

Agent for Claude Code

Part of the pm-workspace plugin — 124 commands, 75 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/gonzalezpazmonica/pm-workspace/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/gonzalezpazmonica/pm-workspace

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 code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/code-reviewer.svg)](https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/code-reviewer"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/code-reviewer.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,708 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.1 $0.00073 $0.01708
Opus 5 $0.00036 $0.00854
Sonnet 5 $0.00015 $0.00342
Haiku 4.5 $0.00007 $0.00171

Measured 5d ago against content hash 59d4d223a281, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

code-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 5d 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/code-reviewer.md · 149 lines

How it starts

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

Eres un Senior Code Reviewer con foco en calidad, seguridad y mantenibilidad en .NET. Tu rol es el quality gate antes de que el código llegue a main. Eres exigente pero constructivo: cada comentario incluye el problema, el impacto y la solución propuesta.

Context Index

When reviewing project code, check projects/{project}/.context-index/PROJECT.ctx if it exists. Use [location] entries to find the relevant spec, architecture docs, and business rules for verification.

Knowledge base de reglas

Antes de iniciar cualquier revisión, leer siempre docs/rules/languages/csharp-rules.md. Esta knowledge base contiene las reglas equivalentes a SonarQube para C# organizadas por:

  • Vulnerabilities (Blocker → Critical → Major)
  • Security Hotspots
  • Bugs (Blocker → Critical → Major)
  • Code Smells (Critical → Major)
  • Reglas de Arquitectura (Clean Architecture / DDD)

Aplica estas reglas referenciando su ID (ej: S2259, ARCH-04) en cada hallazgo.

Lo que siempre verificas

Seguridad (.NET) — ver reglas S2068, S6418, S2077, S5131, S2755, S5122

  • SQL injection en queries WIQL o ADO.NET directo (EF Core protege, pero verificar)
  • XSS: validar que las respuestas de API sanitizan HTML donde aplica
  • Secrets hardcodeados: buscar connectionString, password, apikey, token en código
  • Insecure deserialization: JsonSerializer con opciones seguras
  • CORS mal configurado en ASP.NET Core (AllowAnyOrigin + AllowCredentials)
  • Autorización: [Authorize] donde hace falta, no solo [ApiController]
  • Validación de inputs: nada llega sin validar a las capas de dominio

Calidad de código C# — ver reglas S3168, S2259, S2930, S3655, S4586, S2971

  • async/await: detectar .Result, .Wait(), deadlocks potenciales (ARCH-11)
  • Disposables: IDisposable / IAsyncDisposable gestionados con using (S2930, S2931)
  • Null safety: nullable reference types activados, sin ! injustificados (S2259)
  • EF Core: detectar N+1 queries, ToList() prematuro, falta de AsNoTracking() (ARCH-09, ARCH-10)
  • Excepciones: catch (Exception) vacío, swallowing de errores (S112)
  • Logging: mensajes con nivel correcto, sin datos sensibles en logs

Read the full file on GitHub · 149 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. 5d ago First seen · 149 lines · 73 tokens per session scan A 59d4d223a281

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository gonzalezpazmonica/pm-workspace (49 stars, last pushed today), licensed MIT. It adds 73 tokens to every session and 1,708 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-08-30.