gate

gate is a command for coding agents from dansasser/claude-code-marketplace. It costs 0 tokens per session (347 once invoked), scanned A, original, MIT.

A command for running one named or numbered preflight check. A preflight check is a review step that verifies a project before it moves forward, such as checking tests, security, compatibility, or packaging.

In plain words
What is it for?
Use it to start checks such as linting and tests, test coverage, cross-platform support, supported Python versions, security, API compatibility, packaging, or pull-request readiness.
Why use it?
It lets you run the exact check you need and tells you when an earlier check must pass first. This avoids running later checks on code that already fails an earlier requirement.

Command

Part of the preflight plugin — 2 skills, 8 commands, 11 agents shipped together

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/dansasser/claude-code-marketplace/gate
Clone the repo
git clone --depth 1 https://github.com/dansasser/claude-code-marketplace

Or install preflight, the plugin that ships this one along with the rest of its 2 skills, 8 commands, 11 agents.

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/dansasser/claude-code-marketplace/gate.svg)](https://agentmods.dev/commands/dansasser/claude-code-marketplace/gate)
Your own site
<a href="https://agentmods.dev/commands/dansasser/claude-code-marketplace/gate"><img src="https://agentmods.dev/badge/commands/dansasser/claude-code-marketplace/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 347 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.00347
Opus 5 $0.00000 $0.00173
Sonnet 5 $0.00000 $0.00069
Haiku 4.5 $0.00000 $0.00035

Measured 3d ago against content hash f5ef7c003cc4, 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 3d 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.

plugins/preflight/commands/gate.md · 57 lines

What it actually says

Run a specific Preflight gate by number or name.

Usage

/gate <number|name>

Examples

/gate 1
/gate lint-test
/gate 3
/gate cross-platform
/gate security

Gate Reference

Number Name Purpose
1 lint-test Linting, types, tests
2 coverage Coverage threshold
3 cross-platform Windows + Ubuntu
4 python-matrix Python 3.9-3.13
5 security Secrets, vulns
6 api-compat Breaking changes
7 packaging Build verification
8 github-pr Create PR

Prerequisite Checking

Each gate checks its prerequisites before running:

  • Gate 1: No prerequisites
  • Gate 2: Gate 1 must pass
  • Gate 3: Gates 1-2 must pass
  • Gate 4: Gates 1-3 must pass
  • Gate 5: Gates 1-4 must pass
  • Gate 6: Gates 1-5 must pass
  • Gate 7: Gates 1-6 must pass
  • Gate 8: ALL gates 1-7 must pass

If prerequisites not met, the gate will REFUSE to run and report which gates are blocking.

Output

GATE: cross-platform
STATUS: PASS
DURATION: 12.3s
DETAILS: [summary]
NEXT: python-matrix

Invoke the appropriate gate agent based on the argument.

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. 3d ago First seen · 57 lines · 0 tokens per session scan A f5ef7c003cc4

Subscribe to this mod's changes

gate is a command published in the GitHub repository dansasser/claude-code-marketplace (9 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 347 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.