Skip to content
Back to skills

Gate Review

ASecurity

Reviews the document a gate is about and reports a verdict: clear the gate, send it back, or hand it on with what you checked. Use as the method of a gate's `auto_review` task, which Kraft runs when the gate opens, before a person is asked.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 21, 2026
ai-agentsnodegitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add itsOmidKarami/kraft --skill gate-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gate Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gate Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/itsomidkarami-gate-review/badge)](https://www.skillsdirectory.com/skills/itsomidkarami-gate-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gate-review
description: "Reviews the document a gate is about and reports a verdict: clear the gate, send it back, or hand it on with what you checked. Use as the method of a gate's `auto_review` task, which Kraft runs when the gate opens, before a person is asked."
---

# Gate Review

Your task instruction says whether you decide or check first; if you check
first, "When you check first" below is your rule. Either way, a gate exists
because someone decided this point deserves a person's attention. A reviewer
that decides is here so that a gate a person doesn't need stops reaching them;
any reviewer, so that the one they do need arrives already read. You report;
Kraft decides what your report means, and the API refuses a worker that tries to
approve or reject the gate itself.

## The default is `undecided`

This rule is for a reviewer that decides. If your task instruction says you
cannot approve, you check first, and "When you check first" below is your rule.

The default is not `approve`. A gate wrongly cleared costs a bad spec
implemented, a bad plan followed, or a bad diff merged. A gate wrongly held
costs a human one glance at something you already summarised for them. These
are not the same price.

Approve only when you can say concretely why the artifact is right — not merely
that you found nothing wrong with it.

## When you check first

On a gate whose `auto_review_mode` is `checks_first` you are a first pass: you
cannot approve, and a person decides after you whatever you report. There the
default is `pass`, not `undecided`, and you report one of two verdicts:

- `pass` hands the gate to the person. Report it whenever you are unsure: they
  read the work next anyway, and a rejection costs a full re-run of the node.
  `concerns` is what they read first, so say what you checked and any doubts.
- `reject` only for a concrete defect you can turn into an instruction for the
  agent that redoes the work.

Never edit. Read the worktree; do not change, write or commit any file, in it
or the gate's document. If you do, Kraft ignores your verdict.

What each gate is asking, below, applies whichever kind of reviewer you are.

## What each gate is asking

A gate's **id is whatever its chain calls it**, so do not match on names. The
prompt tells you the gate id and the path of the document it is about; the
document's *kind*, the file's name (`spec.md`, `plan.md`, `chain_revision.md`,
`work_brief.md`, `review_brief.md`), tells you which question below is yours.

Read the change with `kraft view diff` (or `git diff origin/<base>...HEAD`, where
`<base>` is the repository's default branch unless the work item names another).
With no document, read the local review's findings with `kraft view events --type
findings_measured --json`. If `kraft` can't run, say in `concerns` what you
couldn't read.

- **A gate about a spec** — does the spec solve the problem in the brief, and is
  it a design a person would recognise as theirs? A spec that solves a
  *different* problem, however well, is a reject.
- **A gate about a plan** — do the plan's steps produce the spec's design?
  Missing test steps and hand-wavy steps ("handle errors appropriately") are
  rejects.
- **A gate about a chain revision** — the change set a chain-review agent
  proposed for the nodes still to run, shown with each change's evidence and the
  diff it makes. Does each change follow from the line of the spec or plan it
  cites, and does the chain after it still do the work? A skipped check needs
  stronger evidence than an added one. A proposal the document says cannot be
  applied is a reject: put the reason it gives in your concerns, so the revision
  is rewritten. (A proposal that changes nothing never reaches this gate.)
- **A gate about a review brief or work-item summary** — the final review of
  the finished item and its merge request (`final_review` in the shipped
  chain). Does the finished work match what was approved, and does its size match
  the plan's? This is the one gate whose own document must exist; without it
  there is nothing to finalize, so report `undecided` and say it is missing.
- **A gate about a work brief** — the locally finished work, before it becomes
  a draft merge request. Does the brief match what the diff does, and is the
  work ready to be published as a draft?
- **A gate with no document at all** — a checkpoint before something
  irreversible starts (opening a merge request, for instance). Read the worktree
  and the diff, and judge whether the work is ready for that step.
- **A gate about a diff that is about to be merged** — the highest bar of any
  gate; at the final review it sits on top of the review brief's question.
  Judge from the brief and the local review's findings rather than redoing the
  review. When in doubt at all, report `undecided` (or `pass`, if you check
  first).
- **A gate about any other kind of document** — all you have is the gate id and
  the document's name. Judge whether it is complete, coherent and consistent with
  the brief, and say in `concerns` that no question was written for this kind.

## Reporting

Report your verdict and `concerns` exactly as your task instruction lays out.
Fill `concerns` whatever the verdict: for `undecided` it is what a person reads
first, and for a `reject` it is the steering note, so write it as an
instruction. As an illustration, not wording to copy: "The retry handling is
wrong and the tests are thin" is a complaint; "Task 3 retries on any exception:
retry only on `TimeoutError`, and add the failing case to `test_client.py`" is
an instruction.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.