Skip to content
Back to skills

Gates

ASecurity

Approves, rejects or skips the gate a Kraft work item is waiting on (a spec, a plan, or the final review that merges the work), files and submits review threads, and starts a filed item. Use when a person has made the call at a gate, said to request changes or ship it, or wants line comments sent or a filed item started; kraft:review helps decide first, kraft:steer pauses, resumes and redirects a started item, and kraft:triage covers stopped items.

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

Works with

  • mcp

Security analysis

A100/100

Scanned November 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Gates?

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

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

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: gates
description: "Approves, rejects or skips the gate a Kraft work item is waiting on (a spec, a plan, or the final review that merges the work), files and submits review threads, and starts a filed item. Use when a person has made the call at a gate, said to request changes or ship it, or wants line comments sent or a filed item started; kraft:review helps decide first, kraft:steer pauses, resumes and redirects a started item, and kraft:triage covers stopped items."
---

Kraft's tools come from the `kraft` MCP server. If `kraft` is not on PATH, this
plugin has been installed without the program it drives: say so and point at
https://kraft-sdlc.dev/get-started/install rather than reporting a
connection error.

# Gates

A gate is the person's decision. Before `approve_gate`, `reject_gate`,
`skip_work_item` or `submit_review`, they have to have answered this gate in
this conversation: an instruction that names it counts, even a conditional one
(`kraft:review` says how to meet it), and so does a yes to your question that
named it. With no gate pending, an instruction to send the review counts. Your
own recommendation, green CI or an earlier general "go ahead" doesn't. Approving
a gate because it seemed obvious is how the gate stops meaning anything.

Decide through these MCP tools, not `kraft item approve`, `reject` or `review`
from a shell: Kraft records who called, and a shell call is stored as the
person's own decision.

## Approve or reject

Only one gate pends at a time. Check that `get_work_item()`'s `pending_gate` is
the gate the person named before you call; if it isn't, tell them which one is
pending rather than deciding it.

- `approve_gate(gate=...)` - let the chain continue past that gate.
  - A chain revision gate also needs `approve_gate(digest=...)`, with the
    `digest` that `get_gate_artifact()` returned alongside the revision the
    person read. If the revision changed since, the approval is refused: show it
    again. `submit_review` can't carry a digest, so use `approve_gate` for it.
  - The final review (the gate that merges the work) needs `head=` too, on
    `approve_gate`, `skip_work_item` and an approving `submit_review`: the
    `head` that `get_work_item()` returned as `review_head` when the person read
    the diff (`get_gate_artifact()` returns it as `head`), not one fetched now.
    If the branch moved since, the call is refused: show them the change again
    and take their answer on it. Don't retry with the new head on the old
    go-ahead.
- `reject_gate(note="...")` - send the chain back to the node that can address
  the note; `node=` overrides where it re-enters, at or before the gate's own. The
  note is required, because a rejection with no reason strands whoever picks the
  work up next.
- `skip_work_item(note=...)` - advance past the pending gate without approving
  it. It takes no `gate=`, so check `pending_gate` first. It is the person's call
  every time.

## Review threads

Feedback about specific lines belongs in review threads, not in one long reject
note. Threads work at any point in an item's life, gate or no gate:

- `add_review_comment(body=..., file_path=..., start_line=..., label="must_fix")`
  files a draft thread; `thread_id=...` makes it a reply instead. `label` is
  `must_fix`, `question` or `nit`; `suggestion` proposes replacement text for
  the thread's lines. Nothing is sent until the review is submitted.
- `submit_review(outcome=...)` sends every draft on the item:
  - `comment` queues them for the next agent that runs, without stopping
    anything. At a pending gate it also launches an agent to answer them.
  - `request_changes` redoes work: at a gate it rejects the gate with the
    threads as the note. With no gate it picks the node the threads are about
    and re-runs it now if that node is the one running or the item is stopped;
    an earlier node waits until the running one finishes, and a paused item
    until it is resumed. The response's `target` and `action` say which.
  - `approve` needs a pending gate, and is refused while any `must_fix` thread
    is unresolved.
- `list_threads()` shows what is open and what the agents replied;
  `resolve_thread()` and `reopen_thread()` settle a thread once a reply holds up
  or does not.

`submit_review` is a gate-level decision like `approve_gate`: ask first.

## Starting a filed item

A filed work item lands paused. `resume_work_item(work_item_id=...)` starts it
for the first time, once the person asks. Pausing, resuming and steering a
started item are `kraft:steer`'s.

## Confirm it worked

After any of these, read the status and `pending_gate` from the answer (after
`submit_review`, call `get_work_item()`) and check they moved as expected: an
approved gate is no longer pending, a started item reads active, queued or
blocked. Report what you see, not what you meant to cause.

## If you are a Kraft worker session

You can't act on the work item that is running you: approve, reject, pause and
resume against your own item are all refused. Report what you found and let the
person decide.

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.