Skip to content
Development
Skill

/review-gate

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,

From plugin
majiayu000-spellbook
277104 skills7 agents2 commands
Install
$ npx -y skills add majiayu000/spellbook --skill review-gate --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/review-gate

Context preview

The summary Claude sees to decide when to auto-load this 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,

SKILL.md

review-gate.SKILL.md
name: review-gate
description: "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."

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

Read more
Ships withmajiayu000-spellbook

Cross-runtime skills for Claude Code, Codex, and multi-agent workflows.

Get the whole plugin

Other skills on majiayu000-spellbook.

idea-analogist
Skill

idea-analogist

想法群聊室 — 类比者角色。被 idea-team 主编排器调用,或用户单独说"类比一下"、"别的行业有没有"、"yes-and 扩展"、"X 让你想到什么"、"跨界启示"时触发。**专门做跨界类比 + yes-and 扩展——不评判、不挑刺、不要求事实证据**。Do NOT use when 用户要数据(用…

idea-devils-advocate
Skill

idea-devils-advocate

想法群聊室 — 反方角色。被 idea-team 主编排器调用,或用户单独说"反方意见"、"挑这个想法的刺"、"为什么会失败"、"找漏洞 / 反例"、"devil's advocate"时触发。**专门挑漏洞、找隐藏假设、给反例——不安慰、不"也许可以这样"、不全盘否定**。Do NOT use when…

idea-research
Skill

idea-research

想法群聊室 — 调研员角色。被 idea-team 主编排器调用,或用户单独说"调研一下 X"、"X 的现状/竞品/数据"、"找 2026 数据"、"事实底"时触发。**用 WebSearch 拉真实 2026 数据、列竞品、引来源——只给事实,不评判,不建议**。Do NOT use when…

idea-team
Skill

idea-team

想法群聊室主持人 — 把一句话想法丢给多角色 AI 团队(调研员/反方/类比者)做查漏补缺。每个角色有自己的 voice,他们互相 @ 接话;你随时插话。**这是创意扩展工具,不打分、不否决、不堵路**。Use when 用户说"组个团队聊一下"、"开会讨论这个想法"、"找几个角度看看"、"群聊一下 X"、"team…

idea-to-product
Skill

idea-to-product

端到端产品教练 — 把一句话想法走到 PRD + 可点击 HTML 原型。会顶嘴、强制砍功能、用 Nielsen + Norman 做友好性硬检。Use when user 说"我有一个想法"、"想做一个产品"、"做 MVP"、"写 PRD"、"做用户友好的产品",或调用插件命令…