verify

A pre-pull-request check that runs the checks defined by the project, such as type checking, linting, tests, and the production build. In deep mode, it starts from a clean dependency install and runs unit, integration, and end-to-end tests in order.

In plain words
What is it for?
Use it to verify a branch quickly or deeply before review. It reports failures but does not change files.
Why use it?
It provides a final check before opening a pull request and helps explain failures as code regressions, flaky tests, environment problems, test-data issues, or configuration errors.

Command for Claude Code

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/cbmono/ai-setup/verify
Clone the repo
git clone --depth 1 https://github.com/cbmono/ai-setup

Made for: Claude Code.

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 423 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.00423
Opus 5 $0.00000 $0.00211
Sonnet 5 $0.00000 $0.00085
Haiku 4.5 $0.00000 $0.00042

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

Security

Grade A, and why

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 yesterday.

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.

.claude/commands/verify.md · 27 lines

What it actually says

Pre-PR verification gate. Runs the project's checks and hands off to diagnosis on failure.

Usage

  • /verify — fast mode: typecheck / lint / test / build from package.json scripts (parallel when safe, no dep install)
  • /verify --deep — deep mode: clean-install from the lockfile, then sequenced unit → integration → e2e, stopping on first red

Steps

  1. Dispatch the build-validator agent. Pass --deep through if the user included it.
  2. If all green, say so and stop.
  3. If anything fails, dispatch the oncall-guide agent with the failing output to classify the cause (regression / flake / environment / test data / configuration) and propose next steps.
  4. End with git status --short.

Do not modify files from this command. Fixes are applied by the user (or by a follow-up prompt), not by the verifier.

The build bucket stays in fast mode deliberately — it is the only check in the set that runs the production bundler/compiler. tsc --noEmit emits nothing and the test runner uses its own transform pipeline, so a build-only failure (an unmapped path alias, a file outside tsconfig's include, build-time env validation, a route that only fails during static generation, a loader or plugin error) is invisible to typecheck, lint and test alike. Moving it to --deep would put it behind a clean install, i.e. behind CI in practice — and a gate that lets the build break is not a pre-PR gate. It costs nothing where there is no build script: build-validator skips a bucket with no matching script.

This command is the concrete tool that satisfies the superpowers:verification-before-completion discipline (no "done" claim without fresh evidence) for the pre-PR gate — report only what the check output actually shows, never "should pass".

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. yesterday First seen · 27 lines · 0 tokens per session scan A c9b051278ba0

Subscribe to this mod's changes

verify is a command published in the GitHub repository cbmono/ai-setup (2 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 423 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.