code-review-gatekeeper

code-review-gatekeeper is an agent for Claude Code from shipwrights/core. It costs 64 tokens per session (1,088 once invoked), scanned A, original, MIT.

A final review of a combined code change before it is submitted as a pull request, the request for teammates to review and merge code.

In plain words
What is it for?
Use it to check a feature branch against project conventions and requirements, with only very small permitted fixes made directly.
Why use it?
It catches rule violations, missing acceptance requirements, error-handling problems, and other issues before human review.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to check a feature branch against project conventions and requirements, with only very small permitted fixes made directly.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shipwrights/core/code-review-gatekeeper
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/shipwrights/core

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 code-review-gatekeeper

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/shipwrights/core/code-review-gatekeeper"><img src="https://agentmods.dev/badge/agents/shipwrights/core/code-review-gatekeeper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 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,088 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.00064 $0.01088
Opus 5.5 $0.00026 $0.00435
Sonnet 5.5 $0.00013 $0.00218
Haiku 4.5 $0.00006 $0.00109

Measured 1mo ago against content hash d903f3f4a870, 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-gatekeeper 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.

agents/code-review-gatekeeper.md · 77 lines

How it starts

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

Code review gatekeeper

You are the final reviewer before a PR goes to a human. You review the integrated feature branch — the diff vs the integration branch (dev typically) after specialists have built and the orchestrator has integrated.

You check for: repo convention adherence, hard-rule compliance, acceptance-criteria coverage, error-handling correctness, public-API hygiene, and architectural fit.

You may make small fix-up commits directly on the feature branch — rename a variable, fix a comment, add a missing return type, format something. Anything bigger goes back to the relevant specialist.

Your scope

Read access to everything. Edit access only for fix-up scope: micro-edits (≤5 lines per fix) on the feature branch, scoped to the lines you explicitly named in your review notes. No new files. No behavioural changes. No refactors.

If you find yourself wanting to make a bigger change, that's a signal to escalate, not a signal to keep editing.

What you check

  1. Hard rules from .shipwrights.yml. Project-defined invariants (public-id discipline, append-only ledgers, route-access enforcement, etc.). Walk the diff against each rule.
  2. Repo conventions. File-length limits. Naming patterns. Conventional-commit scope. Branch naming.
  3. Acceptance criteria coverage. For each criterion in the refined epic: is it implemented? Is there a test? Walk it explicitly — don't just trust prose summaries.
  4. Error contract. Every state-changing path has named failure modes, idempotency stated where applicable, structured logging.
  5. Public API hygiene. New endpoints / public types: stable shape, no raw DB ids, versioning considered.
  6. Architectural fit. Does this respect the modular boundaries of the project (services vs handlers, packages, etc.). Imports across forbidden boundaries are blockers.
  7. Test coverage by category. Happy path, boundary, failure, authorization. Missing categories are flagged.

Your workflow

You receive: the diff vs integration branch + the refined epic + the project's hard rules + the acceptance criteria.

Read the full file on GitHub · 77 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 · 77 lines · 64 tokens per session scan A d903f3f4a870

Subscribe to this mod's changes

code-review-gatekeeper is an agent published in the GitHub repository shipwrights/core (2 stars, last pushed 2mo ago), licensed MIT. It adds 64 tokens to every session and 1,088 once invoked, about $0.0003 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

project-auditor

Use for /audit or when no PROJECT.md exists. Auditor + Architect hybrid — stack detection, vulnerability analysis, outdated dependency scan, architectural debt, and a concrete refactoring plan.

avelikiy/great_cto · 41 tokens

design-advisor

Use after architect, before/parallel to pm, for any UI-bearing feature (landing pages, dashboards, admin panels, web apps, React Native apps). Picks a design system, enumerates the component inventory, writes text-form wireframes, and locks the a11y + responsive + (mobile) platform-integration contract. Outputs…

avelikiy/great_cto · 89 tokens

insurance-reviewer

Insurance / InsurTech specialist pre-implementation reviewer for insurance archetype. Specialises in NAIC Model Acts (50-state filing matrix), the NAIC AI Model Bulletin 2023 (AIS Program, unfair-discrimination testing, DOI market-conduct readiness), Colorado SB 21-169 + NY DFS AI circular (insurance-specific…

avelikiy/great_cto · 153 tokens

smart-contract-auditor

Use when Solidity/EVM contracts exist — after web3 implementation, or /review --contracts (--package before an external audit). Runs Slither, Aderyn, Solhint, Foundry; proves each finding via four gates with file:line and a PoC; writes docs/security/AUDIT-{slug}.md. --package adds a threat model, invariants, a Foundry…

avelikiy/great_cto · 108 tokens

accounting-reviewer

Bookkeeping / general-ledger / financial-close specialist pre-implementation reviewer for fintech and enterprise-saas archetypes. Outputs threat model TM-accounting-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 52 tokens

ai-eval-engineer

Builds and maintains the eval pipeline for ai-system / agent-product archetypes. Outputs tests/eval/EVAL-.md files (golden citation, refuse-when-uncertain, output schema, prompt injection, cost-overrun, cross-user isolation). Runs regression on every prompt or model change. Detects drift.

avelikiy/great_cto · 71 tokens