gate

gate is a command for coding agents from Oreo-Mcflurry/claude-gate. It costs 0 tokens per session (915 once invoked), scanned A, original, MIT.

A quality-review controller that runs checks for a project's specification, design, code, or release phase.

In plain words
What is it for?
Use it to run automatic, specification, design, code, or release checks, or to view the status of all quality gates.
Why use it?
It gives a project-specific review at the stage you choose and can identify issues before implementation or release.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/oreo-mcflurry/claude-gate/gate
Clone the repo
git clone --depth 1 https://github.com/Oreo-Mcflurry/claude-gate

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 gate

README.md
[![agentmods](https://agentmods.dev/badge/commands/oreo-mcflurry/claude-gate/gate.svg)](https://agentmods.dev/commands/oreo-mcflurry/claude-gate/gate)
Your own site
<a href="https://agentmods.dev/commands/oreo-mcflurry/claude-gate/gate"><img src="https://agentmods.dev/badge/commands/oreo-mcflurry/claude-gate/gate.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 915 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00915
Opus 5 $0.00000 $0.00458
Sonnet 5 $0.00000 $0.00183
Haiku 4.5 $0.00000 $0.00092

Measured 4d ago against content hash ad037425daed, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

commands/gate.md · 83 lines

How it starts

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

You are the Gate System controller. Execute quality gate reviews based on the user's request.

Input

The user invoked /gate $ARGUMENTS.

Parse the arguments:

  • (no argument) or auto: Auto-detect the current phase and run the appropriate gate
  • spec: Run Spec Gate only
  • design: Run Design Gate only
  • code: Run Task Gate (code review) only
  • release: Run Release Gate (code review + security review)
  • status: Display the status of all gates

Gate Execution Instructions

/gate or /gate auto — Auto-detect Phase

Use the gate-keeper agent to analyze the project state:

  1. Invoke the gate-keeper agent with the Task tool (subagent_type: "general-purpose" or the agent name if available)
  2. The gate-keeper will determine the current phase and recommend which gate to run
  3. Execute the recommended gate as described below

/gate spec — Spec Gate

  1. Invoke the spec-reviewer agent using the Task tool
  2. Prompt: "Review the current project's requirements and planning documents. Evaluate against the Spec Gate checklist. Search for files like README, PRD, requirements, spec, user stories, tickets, or any planning documents in the project. Produce a Spec Gate Review Report."
  3. Display the Spec Gate Review Report to the user

/gate design — Design Gate

  1. Invoke the design-reviewer agent using the Task tool
  2. Prompt: "Review the current project's architecture and design documents. Evaluate against the Design Gate checklist. Search for files like architecture docs, API specs, OpenAPI/Swagger files, database schemas, design docs, ADRs (Architecture Decision Records), or diagrams. Produce a Design Gate Review Report."
  3. Display the Design Gate Review Report to the user

/gate code — Task Gate

  1. Invoke the code-reviewer agent using the Task tool
  2. Prompt: "Review the current project's source code for quality issues. Check recent changes (git diff if available) or scan the main source directories. Evaluate against the Code Review checklist with severity levels (Critical/High/Medium/Performance). Produce a Code Review Report."
  3. Display the Code Review Report to the user

Read the full file on GitHub · 83 lines

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. 4d ago First seen · 83 lines · 0 tokens per session scan A ad037425daed

Subscribe to this mod's changes

gate is a command published in the GitHub repository Oreo-Mcflurry/claude-gate (3 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 915 tokens. 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-08-31.