code-review-gatekeeper

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

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/shipwrights/core/code-review-gatekeeper
Clone the repo
git clone --depth 1 https://github.com/shipwrights/core
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. 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.00064 $0.01088
Opus 5 $0.00032 $0.00544
Sonnet 5 $0.00013 $0.00218
Haiku 4.5 $0.00006 $0.00109

Measured yesterday against content hash d903f3f4a870, 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-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 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.

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. yesterday 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 29d ago), licensed MIT. It adds 64 tokens to every session and 1,088 once invoked, about $0.0003 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-31.