mcpbeat Sign in

Review Gate Agent Skill

Use before an agent-produced diff is committed, pushed, opened as a PR, merged, landed, or applied to user files when explicit implementation approval is missing. Trigger for review gate, review pack, approve before landing, diff first then land, human approval, merge gate, commit gate, push gate, or PR readiness. Produces a concise review pack, records risks and verification, and blocks landing until a human explicitly approves or approves with required fixes.

1k tokens
context cost
the whole folder, loaded on every use
2
files
instructions only
0
copies elsewhere
how many repositories repackaged it
242
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/majiayu000/spellbook --skill review-gate

The instruction itself

9 sections, as written by the author

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.

Review Pack

Produce this compact pack:

review_gate:
- intent:
- diff_summary:
- files_changed:
- driving_skill_or_issue:
- risks:
- missing_tests_or_verification:
- commands_run:
- evidence:
- open_questions:
- approval_needed_for:
- decision:

Keep findings ranked by severity. Include exact file paths, PR numbers, issue

numbers, command names, and current head SHA when available.

Decision Rules

  • If verification is stale, missing, or tied to a different head SHA, set

needs_fixes.

  • If the diff touches auth, payments, secrets, permissions, innerHTML, eval,

shell execution, generated registry, hooks, or high-context files, call that

out explicitly.

  • If user approval is ambiguous, set awaiting_human and ask for the named

action only.

  • If the user approves, do exactly the approved action. A commit approval is not

automatically a merge approval.

  • If a required fix changes the diff, rerun the relevant verification and update

the pack before landing.

Integration Points

flowguard should call this gate at landing checkpoints. Queue skills may use a

reviewer lane for independent findings, but the Review Gate still records the

human-facing pack and approval state.

For GitHub PRs, combine this gate with current remote truth:

  • PR head SHA
  • check rollup
  • merge state
  • GraphQL reviewThreads
  • linked issue intent

Verification

For Spellbook changes, the pack usually cites:

git diff --check
python3 ./scripts/validate_skills.py --check
python3 ./scripts/audit_skill_quality.py skill-name

Use project-specific tests for code changes. If a command cannot run, report the

precondition and keep the decision out of approved.

Other skills for the same job

different authors, same section of the catalogue
Receiving Code Review
by ZhanlinCui
×7

Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation

2k tokens
Requesting Code Review
by ZhanlinCui
×6

Use when completing tasks, implementing major features, or before merging to verify work meets requirements

2k tokens
Git Commit
by github
vendor ×3

Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping

799 tokens
Github Code Review
by ComeOnOliver
×3

Comprehensive GitHub code review with AI-powered swarm coordination

13k tokens
Karpathy Guidelines
by hyyhf
×3

Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.

629 tokens
Code Reviewer
by google-gemini
vendor ×2

Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.

795 tokens
Agent MD Refactor
by softaworks
×2

Refactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles. Splits monolithic files into organized, linked documentation.

4k tokens
Commit Work
by softaworks
×2

Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Use when the user asks to commit, craft a commit message, stage changes, or split work into multiple commits.

2k tokens

How to use it

Copy the folder

Take majiayu000/review-gate from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.