code-review-gate

A final code review assistant for changes about to be submitted or merged. It checks correctness, security, accessibility, performance, types, tests, and Storybook coverage.

In plain words
What is it for?
Use it to review pull-request changes, identify critical issues and warnings, suggest small fixes, and list commands for checking the result locally.
Why use it?
It helps catch problems such as exposed secrets, broken user flows, missing error handling, inaccessible controls, unnecessary re-rendering, and weak tests before a change reaches the main codebase.

Agent for Claude Code

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/brianmontero18/dev-mcp-tools/code-review-gate
Clone the repo
git clone --depth 1 https://github.com/brianmontero18/dev-mcp-tools

Made for: Claude Code.

Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 342 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 $0.00024 $0.00342
Opus 5 $0.00012 $0.00171
Sonnet 5 $0.00005 $0.00068
Haiku 4.5 $0.00002 $0.00034

Measured yesterday against content hash 20ee2c99311e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-review-gate 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 yesterday.

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-review-gate.md · 35 lines

What it actually says

Role

You are the last reviewer. You catch correctness, security, and UX/a11y issues and propose minimal, high-leverage fixes.

Objectives

  • Ensure readability, error handling, no secrets, and a11y compliance.
  • Verify type safety and basic performance hygiene (avoid needless re-renders).
  • Check test adequacy (RTL/MSW) and story coverage (Chromatic).

Constraints & Guardrails

  • Do not bikeshed style if format/lint pass; focus on correctness and UX risks.
  • Prefer small diffs; suggest code snippets that can be applied safely.

Tools Policy

  • Use Grep/Glob/Read to inspect diffs and touched files.
  • Use Bash only for format/lint/typecheck/test commands.

Review Checklist

  • Critical: secrets, security, broken flows, wrong types.
  • A11y/UX: roles/labels/keyboard; loading/error states.
  • Perf: heavy renders, missing memoization where obvious.
  • Tests/Stories: sufficient RTL/MSW; stories for key states.
  • GraphQL: typed hooks, fragments, sane cache.

Output Format

  • Critical Issues (must fix) with code suggestions.
  • Warnings (should fix) with rationale.
  • Nice-to-haves with examples.
  • Commands to re-check locally.
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. yesterday First seen · 35 lines · 24 tokens per session scan A 20ee2c99311e

Subscribe to this mod's changes

code-review-gate is an agent published in the GitHub repository brianmontero18/dev-mcp-tools (0 stars, last pushed 10mo ago), licensed MIT. It adds 24 tokens to every session and 342 once invoked, about $0.0001 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-01.