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.
git clone --depth 1 https://github.com/rhuss/cc-spexWrote 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.
[](https://agentmods.dev/commands/rhuss/cc-spex/speckit.spex-gates.verify)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
askis"smart"or"never": suppress all user prompts (do NOT use AskUserQuestion), complete the verification autonomously, and return immediately so the pipeline can advance. - If
askis"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
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.
- 9d ago First seen · 544 lines · 15 tokens per session scan A e0ae4608a52c
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.
Other commands, from other repositories
test
Run the repository's actual test suite: every ecosystem's canonical runner — NOT run is never green.
ia-verify
Run pre-PR verification chain -- build, types, lint, tests, security scan, diff review.
audio-pass
Functional audio review for implementation, mix coverage, clarity, and player feedback.
quality-check-command
This command performs comprehensive code quality checks. Use it before commits or when implementation is complete.
auditar-refactor
Invoca refactor-safety-auditor — gate canônico antes de qualquer refactor. Coleta evidências (linhas, contrato externo, coverage, mutation) e retorna veredito GO/BLOCK/WARN/GO-OVERRIDE.
gentle-sdd-apply
Implement SDD tasks — writes code following specs and design.