ai-setup: Command for Claude Code

.claude/commands/verify.md

verify is a command for Claude Code from cbmono/ai-setup. It costs 0 tokens per session (423 once invoked), scanned A, original, MIT.

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

Written for Claude Code: installed under .claude/.

This is cbmono/ai-setup's own configuration. It tells Claude Code how to work on ai-setup itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-setup configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cbmono/ai-setup. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cbmono/ai-setup/main/.claude/commands/verify.md
Clone the repo
git clone --depth 1 https://github.com/cbmono/ai-setup

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 verify

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/cbmono/ai-setup/verify"><img src="https://agentmods.dev/badge/commands/cbmono/ai-setup/verify.svg" alt="Reviewed on agentmods" width="80" 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 423 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.00000 $0.00423
Opus 5.5 $0.00000 $0.00169
Sonnet 5.5 $0.00000 $0.00085
Haiku 4.5 $0.00000 $0.00042

Measured 2mo ago against content hash c9b051278ba0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.

.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. 2mo ago 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 10d 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.