review-flow: Command for Claude Code

.claude/commands/test.md

test is a command for Claude Code from DGouron/review-flow. It costs 0 tokens per session (364 once invoked), scanned A, original, MIT.

A read-only command that checks a project's tests, coverage, untested files, and basic test quality. It runs the test suite and summarizes failures and recent test changes.

In plain words
What is it for?
Use it to run all tests, list failures, find source files without matching tests, review coverage, check test assertions and mocks, and inspect recent test-related commits.
Why use it?
It puts test results and gaps in one report without changing code. This helps reveal failing tests, missing coverage, tests without checks, and tests that rely heavily on mocks.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is DGouron/review-flow's own configuration. It tells Claude Code how to work on review-flow 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 review-flow configures →

Reuse

Borrowing it

Nothing to install: this file belongs to DGouron/review-flow. 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/DGouron/review-flow/master/.claude/commands/test.md
Clone the repo
git clone --depth 1 https://github.com/DGouron/review-flow

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 test

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/dgouron/review-flow/test"><img src="https://agentmods.dev/badge/commands/dgouron/review-flow/test.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 364 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.00364
Opus 5.5 $0.00000 $0.00146
Sonnet 5.5 $0.00000 $0.00073
Haiku 4.5 $0.00000 $0.00036

Measured 2mo ago against content hash 086b4a72bb7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test 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/test.md · 61 lines

What it actually says

/test — Complete Test Verification

Read-only. No fixes.

1. Run All Tests

yarn test:ci --reporter=verbose

2. Failed Tests

Grep for FAIL / Error in output. List each with file and test name.

3. Files Without Tests

Find *.ts files under src/ that have no matching *.test.ts in src/tests/units/.

Exclude: type definitions, index files, config files.

4. Test Quality

Tests without assertions

Search for test blocks missing expect / assert / toBe / toEqual.

Tests with excessive mocks

Search for tests with > 3 mocks (vi.fn / vi.mock / vi.spyOn).

5. History

  • Last 10 test-related commits (git log --oneline --all --grep="test")
  • Tests added this week (git diff --stat HEAD~7 -- "src/tests/")

6. Synthesis

Metric Value
Total tests X
Passed X
Failed X
Statements coverage X%
Branches coverage X%

Untested files (prioritized):

Priority File Reason
BLOCKING Business logic files Core domain untested
Important Adapter files Interface layer untested
Acceptable Types / config Low risk

Actions list or "All good"

Rules

  • Read-only — don't fix anything
  • Prioritize untested business logic files
  • Report facts, not interpretation
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 · 61 lines · 0 tokens per session scan A 086b4a72bb7f

Subscribe to this mod's changes

test is a command published in the GitHub repository DGouron/review-flow (44 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 364 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-30.