code-review-enforcer

code-review-enforcer is an agent for Claude Code from sgaunet/claude-plugins. It costs 37 tokens per session (709 once invoked), scanned A, original, MIT.

An agent that reviews code changes for correctness, security, reliability, performance, and maintainability before they reach production.

In plain words
What is it for?
It is for reviewing modified or newly created files, checking pull requests, and reporting issues by severity before a commit or merge.
Why use it?
It helps find serious defects such as security vulnerabilities, data-safety risks, broken API behavior, missing error handling, and weak tests.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the software-engineering plugin — 18 skills, 7 agents shipped together

Good fit It is for reviewing modified or newly created files, checking pull requests, and reporting issues by severity before a commit or merge.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sgaunet/claude-plugins/code-review-enforcer
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/sgaunet/claude-plugins

Made for: Claude Code.

Or install software-engineering, the plugin that ships this one along with the rest of its 18 skills, 7 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-review-enforcer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/sgaunet/claude-plugins/code-review-enforcer"><img src="https://agentmods.dev/badge/agents/sgaunet/claude-plugins/code-review-enforcer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 709 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.00037 $0.00709
Opus 5.5 $0.00015 $0.00284
Sonnet 5.5 $0.00007 $0.00142
Haiku 4.5 $0.00004 $0.00071

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

Security

Grade A, and why

code-review-enforcer 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/software-engineering/agents/code-review-enforcer.md · 80 lines

How it starts

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

You are a senior code reviewer. Review every change like it's going to production tomorrow.

Proactive Triggers

Automatically review when:

  • Files modified via Edit/Write/MultiEdit operations
  • New files created in the codebase
  • Before git commits (when requested)
  • Pull request review needed

Review Severity Levels

🔴 Critical (Must Fix - Blocks merge)

  • Security: Exposed secrets/keys, SQL injection, XSS, auth bypass, CORS misconfiguration
  • Stability: Crash conditions, data corruption, infinite loops, deadlocks, race conditions
  • Data Safety: Unvalidated inputs, missing sanitization, PII exposure, missing encryption

🟡 High (Should Fix)

  • Logic Errors: Off-by-one errors, incorrect conditionals, missing null checks
  • Error Handling: Unhandled promises, missing try-catch for external calls
  • Performance: Memory leaks, N+1 queries, inefficient algorithms (O(n²) where O(n) possible)
  • Breaking Changes: API contract violations, schema changes without migration

🟢 Medium (Improve)

  • Code Quality: Functions > 50 lines, duplicated code blocks, poor naming
  • Type Safety: Missing/incorrect TypeScript types, any types, unchecked casts
  • Testing: Missing tests for business logic, low coverage on critical paths
  • Patterns: Inconsistent patterns, violating established conventions

⚪ Low (Consider)

  • Documentation: Unclear comments, outdated README
  • Optimization: Missed caching opportunities, unnecessary re-renders
  • Style: Formatting inconsistencies, unused imports/variables

Review Output Format

## Code Review Summary
Files reviewed: X | Critical: X | High: X | Medium: X | Low: X

### 🔴 Critical Issues
1. [SECURITY] SQL injection in users.go:45
   Problem: Raw string concatenation in SQL query
   Fix: Use prepared statements or query builder

### 🟡 High Priority Issues
1. [PERFORMANCE] N+1 query in api/products.js:89-102
   Problem: Loading related data in loop
   Fix: Use eager loading or batch fetch

### ✅ Good Practices Observed
- Proper error handling in auth.service.ts
- Well-structured tests with good coverage

### Recommendations
- Consider extracting UserValidator class from controller
- Add rate limiting to public endpoints

Read the full file on GitHub · 80 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 · 80 lines · 37 tokens per session scan A 3ac6a2c47063

Subscribe to this mod's changes

code-review-enforcer is an agent published in the GitHub repository sgaunet/claude-plugins (16 stars, last pushed 9d ago), licensed MIT. It adds 37 tokens to every session and 709 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-30.

Related

Other agents, from other repositories

code-reviewer

Review code changes against a base branch with structured feedback. Use this agent when the user requests a code review, PR review, or wants to analyze code changes systematically.

NikiforovAll/claude-code-rules · 37 tokens

green-guardian

Verifies that a fix or new test made something genuinely green and did not cheat. Enforces the anti-fake-green rules and runs revert-verification. Use as the final check before green-keeper reports success.

localplugins/plugins · 47 tokens

refactoring-expert

Improve code quality and reduce technical debt through systematic refactoring and clean code principles.

NikiforovAll/claude-code-rules · 20 tokens

profile-reviewer

Use this agent when the user wants to review or assess work quality against SFIA criteria, evaluate a document, or get feedback on role-specific output. Supports all roles (SA, PO, BA, Testing, PM, EA, CIO, CTO, CPO). Examples: Context: User has completed an architecture document and wants quality feedback user…

baodq97/open-plugin · 305 tokens

flutter-reviewer

Code review agent for Flutter projects with Clean Architecture and BLoC. Validates architecture compliance, type safety, @freezed usage. AUTO-FIX: fixes all issues found.

aleksandr-chaika/flutter-clean-arch-skills · 40 tokens

dead-code-analyzer

Analyzes the codebase to find unused code — functions, imports, exports, variables, types, and classes — and produces a cleanup report with confidence levels. Never auto-deletes; reports findings for user review. Context: User wants to find unused code user: "find dead code" Context: User asks about code hygiene user…

lukaskellerstein/claude-my-marketplace · 160 tokens