verification-gates

verification-gates is a skill for Claude Code from josix/agent-flow. It costs 38 tokens per session (2,031 once invoked), scanned A, original, MIT.

A set of mandatory checks that code changes must pass before they are considered finished or committed. It can cover linting, formatting, tests, type checks, and build checks.

In plain words
What is it for?
Use it to run project-appropriate pre-commit checks and final validation, then report failures that need fixing.
Why use it?
It catches broken code, style problems, and failed tests before they reach the code repository. Work pauses when a required check fails.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Codex.

Part of the agent-flow plugin — 11 skills, 5 commands, 6 agents, 7 hooks shipped together

Good fit Use it to run project-appropriate pre-commit checks and final validation, then report failures that need fixing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/josix/agent-flow/verification-gates
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.

Any agent
npx skills add josix/agent-flow --skill verification-gates
Clone the repo
git clone --depth 1 https://github.com/josix/agent-flow

Made for: Claude Code.

Or install agent-flow, the plugin that ships this one along with the rest of its 11 skills, 5 commands, 6 agents, 7 hooks.

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 verification-gates

README.md
[![agentmods](https://agentmods.dev/badge/skills/josix/agent-flow/verification-gates/github.svg)](https://agentmods.dev/skills/josix/agent-flow/verification-gates)
Your own site
<a href="https://agentmods.dev/skills/josix/agent-flow/verification-gates"><img src="https://agentmods.dev/badge/skills/josix/agent-flow/verification-gates/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for verification-gates

Your own site · 80×15
<a href="https://agentmods.dev/skills/josix/agent-flow/verification-gates"><img src="https://agentmods.dev/badge/skills/josix/agent-flow/verification-gates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,031 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00038 $0.02031
Opus 5.5 $0.00015 $0.00812
Sonnet 5.5 $0.00008 $0.00406
Haiku 4.5 $0.00004 $0.00203

Measured 11d ago against content hash 15f92f7a0fbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

verification-gates 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 11d 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.

skills/verification-gates/SKILL.md · 247 lines

How it starts

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

Verification Gates

Overview

Verification gates are mandatory quality checkpoints that must pass before any implementation work is considered complete. These gates prevent broken code from being committed, ensure type safety, maintain code style consistency, and validate that all tests pass.

Owner Agent: Alphonse (Verifier Agent)

Key Principles

  1. Non-Negotiable Quality: Every code change must pass all applicable gates
  2. Automated Enforcement: Gates are triggered automatically via hooks
  3. Clear Feedback: Failures provide actionable error messages
  4. Project-Aware: Commands adapt to detected project type and tooling
  5. Fail-Fast, Fix-First: When any gate fails, work stops until resolved

Verification Hierarchy

Loid (Executor)          Alphonse (Verifier)
     |                         |
Quick sanity tests       Full verification gate
during implementation    before completion
     |                         |
     +----------> Handoff >----+

Gate Types

Pre-Commit Gates

Check Example Command Timeout
Lint npm run lint / ruff check 30s
Format npm run format:check / black --check 15s
Quick Tests Changed file tests only 60s

Pre-Complete Gates

Check Example Command Timeout
Full Test Suite npm test / pytest 300s
Type Checking npx tsc --noEmit / mypy . 120s
Linting Full codebase lint 60s
Build npm run build / python -m build 180s

Security Gates

Triggered by changes to sensitive files or security-critical code:

Check Trigger Action
Credential Scan *.env, *secret*, *.key Block + Alert
Permission Check Auth/ACL code Require review
Dependency Audit Package files npm audit / pip-audit

Verification Commands

Quick Reference by Language

Action Node.js Python Go Rust
Test npm test pytest go test ./... cargo test
Types npx tsc --noEmit mypy . go build cargo check
Lint npm run lint ruff check . golangci-lint run cargo clippy
Build npm run build python -m build go build cargo build

Read the full file on GitHub · 247 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago Changed · +8 lines 15f92f7a0fbf
  2. 1mo ago Changed · -2 lines 966f9d82f421
  3. 2mo ago Changed · +5 lines 42aac83a405a
  4. 3mo ago First seen · 236 lines · 38 tokens per session scan A aeaddc5119cf

Subscribe to this mod's changes

verification-gates is a skill published in the GitHub repository josix/agent-flow (8 stars, last pushed 12d ago), licensed MIT. It adds 38 tokens to every session and 2,031 once invoked, about $0.0002 per session on Opus 5.5. 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.

Related

verification-gates compared with skills from other repositories

verification-gates next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
verification-gatesjosix/agent-flowSkill812d agoMITA38Claude Code
requesting-code-reviewgraniet/kheishSkill20923d agoApache-2.0A41Claude Code, Codex
webhook-subscriptionsgraniet/kheishSkill20923d agoApache-2.0A24Claude Code, Codex
google-workspacegraniet/kheishSkill20923d agoApache-2.0A40Claude Code, Codex
jupyter-live-kernelgraniet/kheishSkill20923d agoApache-2.0A70Claude Code, Codex
notiongraniet/kheishSkill20923d agoApache-2.0A33Claude Code, Codex
find-nearbygraniet/kheishSkill20923d agoApache-2.0A40Claude Code, Codex