speckit.spex-gates.verify

speckit.spex-gates.verify is a command for Claude Code from rhuss/cc-spex. It costs 15 tokens per session (4,266 once invoked), scanned A, original, Apache-2.0.

A final project check that runs tests and reviews code quality, specification compliance, and differences between the planned and implemented work.

In plain words
What is it for?
Use it before completion to run tests, inspect code hygiene, check the specification, and detect implementation drift.
Why use it?
It helps prevent declaring a task finished without evidence that the code works and still matches its specification.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Good fit Use it before completion to run tests, inspect code hygiene, check the specification, and detect implementation drift.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rhuss/cc-spex/speckit.spex-gates.verify
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.

Clone the repo
git clone --depth 1 https://github.com/rhuss/cc-spex

Made for: Claude Code.

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 speckit.spex-gates.verify

README.md
[![agentmods](https://agentmods.dev/badge/commands/rhuss/cc-spex/speckit.spex-gates.verify/github.svg)](https://agentmods.dev/commands/rhuss/cc-spex/speckit.spex-gates.verify)
Your own site
<a href="https://agentmods.dev/commands/rhuss/cc-spex/speckit.spex-gates.verify"><img src="https://agentmods.dev/badge/commands/rhuss/cc-spex/speckit.spex-gates.verify/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 speckit.spex-gates.verify

Your own site · 80×15
<a href="https://agentmods.dev/commands/rhuss/cc-spex/speckit.spex-gates.verify"><img src="https://agentmods.dev/badge/commands/rhuss/cc-spex/speckit.spex-gates.verify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,266 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.00015 $0.04266
Opus 5 $0.00008 $0.02133
Sonnet 5 $0.00003 $0.00853
Haiku 4.5 $0.00002 $0.00427

Measured 9d ago against content hash e0ae4608a52c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

speckit.spex-gates.verify 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 9d 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.

specs/038-neutral-command-vocab/pre-rewrite-snapshot/spex-gates/commands/speckit.spex-gates.verify.md · 544 lines

How it starts

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

Verification Before Completion (Spec-Aware)

Ship Pipeline Guard

If .specify/.spex-state exists and its status is running, this command is part of an autonomous pipeline. Check the ask field:

  • If ask is "smart" or "never": suppress all user prompts (do NOT use AskUserQuestion), complete the verification autonomously, and return immediately so the pipeline can advance.
  • If ask is "always": prompt the user as normal.
if [ -f ".specify/.spex-state" ]; then
  STATUS=$(jq -r '.status // empty' .specify/.spex-state 2>/dev/null)
  ASK=$(jq -r '.ask // "always"' .specify/.spex-state 2>/dev/null)
  if [ "$STATUS" = "running" ] && [ "$ASK" != "always" ]; then
    echo "AUTONOMOUS_MODE=true"
  else
    echo "AUTONOMOUS_MODE=false"
  fi
else
  echo "AUTONOMOUS_MODE=false"
fi

In autonomous mode: do NOT output a completion summary, do NOT ask "Shall I proceed?", do NOT suggest next steps. Complete the verification and return.

Overview

Claiming work is complete without verification is dishonesty, not efficiency.

Core principle: Evidence before claims, always.

Verify implementation is complete by running tests AND validating spec compliance.

Key Steps:

  • Step 0: Closeout gate (blocks on unresolved Critical/Important findings)
  • Step 0a: Smoke test reminder
  • Step 1: Run tests (existing behavior)
  • Step 2: Code hygiene review (mechanical defect detection)
  • Step 3: Validate spec compliance (spec-driven)
  • Step 4: Check for spec drift (spec-driven)
  • Blocks completion if closeout gate, tests, code hygiene, OR spec compliance fails

The Iron Law

NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE

If you haven't run the verification command in this message, you cannot claim it passes.

The Gate Function

BEFORE claiming any status or expressing satisfaction:

1. IDENTIFY: What command proves this claim?
2. RUN: Execute the FULL command (fresh, complete)
3. READ: Full output, check exit code, count failures
4. VERIFY: Does output confirm the claim?
   - If NO: State actual status with evidence
   - If YES: State claim WITH evidence
5. CHECK SPEC: Does implementation match spec?
   - If NO: State actual compliance with evidence
   - If YES: State compliance score WITH evidence
6. ONLY THEN: Make the claim

Skip any step = lying, not verifying

Read the full file on GitHub · 544 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. 9d ago First seen · 544 lines · 15 tokens per session scan A e0ae4608a52c

Subscribe to this mod's changes

speckit.spex-gates.verify is a command published in the GitHub repository rhuss/cc-spex (116 stars, last pushed 21d ago), licensed Apache-2.0. It adds 15 tokens to every session and 4,266 once invoked, about $0.0001 per session on Opus 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-30.