review-gate

review-gate is a skill for Claude Code, Codex from majiayu000/spellbook. It costs 95 tokens per session (974 once invoked), scanned A, original, MIT.

A safety checkpoint for reviewing code changes made by an agent before they are applied, committed, pushed, or merged.

In plain words
What is it for?
It inspects diffs, gathers test or verification results, prepares a review summary, and blocks unsafe or unclear releases of agent-generated changes.
Why use it?
It ensures the changes have verification evidence and that sensitive areas receive human review before becoming part of the project.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 ./scripts/validate_skills.py --check.

Good fit It inspects diffs, gathers test or verification results, prepares a review summary, and blocks unsafe or unclear releases of agent-generated changes.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/majiayu000/spellbook
agentmods
npx agentmods add skills/majiayu000/spellbook/review-gate

Made for: Claude Code, Codex.

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 review-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/majiayu000/spellbook/review-gate/github.svg)](https://agentmods.dev/skills/majiayu000/spellbook/review-gate)
Your own site
<a href="https://agentmods.dev/skills/majiayu000/spellbook/review-gate"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/review-gate/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 review-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/majiayu000/spellbook/review-gate"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/review-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 974 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00095 $0.00974
Opus 5 $0.00048 $0.00487
Sonnet 5 $0.00019 $0.00195
Haiku 4.5 $0.00010 $0.00097

Measured 7d ago against content hash 06e37f9ecb98, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

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 7d 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.

skills/review-gate/SKILL.md · 122 lines

How it starts

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

Review Gate

Use this skill as the last-mile safety checkpoint for agent-generated changes. It complements PR review tools; it does not replace code review, CI, or human approval.

Use assets/review-pack-template.md when the user needs a reusable review pack shape.

When To Run

Run before any of these actions when an agent-generated diff is involved:

  • commit
  • push
  • open or update a PR
  • merge or land
  • apply a generated patch to user files when the user has not already approved that exact implementation path

Read-only review, planning, issue triage, and local exploration do not require this gate unless the next step would land or publish changes.

Operating Contract

  • Direct actions: inspect diffs, collect verification evidence, and draft the review pack.
  • Escalate before: commit, push, PR creation, merge, branch deletion, or applying a generated patch when the user has not approved that exact action.
  • Evidence-backed pushback: block landing when verification is stale, sensitive surfaces lack review, or approval is ambiguous.
  • Feedback loop: convert repeated review findings into new checklist items, verification commands, or Review Pack risk prompts.

Gate States

State Meaning Allowed next action
draft_pack Review pack is being assembled. Inspect diff and verification only.
needs_fixes Blocking risks or missing evidence exist. Patch and rerun the gate.
awaiting_human Pack is complete but no human approval exists. Stop before commit, push, PR, merge, or apply.
approved Human explicitly approved the pack in the current thread. Proceed with the named action only.
approved_with_fixes Human approved after specific fixes. Apply fixes, verify, and record evidence before landing.

Agents must not self-approve. Prior CI success, a reviewer lane, or a green local test is evidence for the pack, not approval.

Gotchas

  • Approval is action-specific. "Commit it" does not mean "merge it."
  • A reviewer lane is independent evidence, not human approval.
  • If a fix changes the diff after approval, refresh verification and update the pack before landing.

Read the full file on GitHub · 122 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 122 lines · 95 tokens per session scan A 06e37f9ecb98

Subscribe to this mod's changes

review-gate is a skill published in the GitHub repository majiayu000/spellbook (278 stars, last pushed today), licensed MIT. It adds 95 tokens to every session and 974 once invoked, about $0.0005 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-03.

Related

Other skills, from other repositories

Git Workflow

Use this skill when you want a clean Git history (easy reviews, easy rollbacks) and consistent PR hygiene—especially when an agent is helping you make changes across multiple files.

AmariahAK/atlarix-skills · 2 tokens

work-unit-commits

Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.

Gentleman-Programming/gentle-ai · 33 tokens

github-commenting

How to post clean, rich, deduplicated GitHub PR review comments — suggestion blocks, multi-line anchors, markers, formatting rules. Load before posting or fixing any PR comment.

juspay/neurolink · 41 tokens

docs

Use when documentation generally needs to catch up with a branch before pushing or merging, covering internal developer docs, external customer-facing docs, and release notes together — "update the docs", "do a docs pass before I merge", "make sure everything's documented". Prefer this when no single documentation…

The01Geek/prflow · 97 tokens

ring:generating-release-guides

Generating an internal Operations-facing update/migration guide from the git diff between two refs, documenting per-change client impact, deploy ordering, monitoring, and rollback notes in English, pt-br, or both. Use when preparing a version release or recording what changed for the Ops team. Runs read-only by…

LerianStudio/ring · 85 tokens

procoder

Work like a senior developer in a repository governed by procoder: run the commit gate before calling anything done, format and lint through the binary, and drive the spec, plan, todo, backlog, and sprint chain in .procoder/. Use this skill when the repository contains a .procoder/ directory or an AGENTS.md naming…

azrtydxb/procoder · 101 tokens