test

test is a command for Claude Code from dinhnguyenngoc/spec-driven-claude-code. It costs 13 tokens per session (5,619 once invoked), scanned A, original, MIT.

A testing command that verifies an application with real dependencies such as databases and caches before code review.

In plain words
What is it for?
Use it to run the project's appropriate type checks, builds, tests, coverage checks, and container-backed database fixtures according to its technology profile.
Why use it?
It provides a quality checkpoint that can reveal environment, integration, and database problems that isolated unit tests may miss.

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/dinhnguyenngoc/spec-driven-claude-code/test
Clone the repo
git clone --depth 1 https://github.com/dinhnguyenngoc/spec-driven-claude-code

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/dinhnguyenngoc/spec-driven-claude-code/test.svg)](https://agentmods.dev/commands/dinhnguyenngoc/spec-driven-claude-code/test)
Your own site
<a href="https://agentmods.dev/commands/dinhnguyenngoc/spec-driven-claude-code/test"><img src="https://agentmods.dev/badge/commands/dinhnguyenngoc/spec-driven-claude-code/test.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,619 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.00013 $0.05619
Opus 5 $0.00006 $0.02809
Sonnet 5 $0.00003 $0.01124
Haiku 4.5 $0.00001 $0.00562

Measured 5d ago against content hash ff9e6c2f32e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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 · 324 lines

How it starts

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

/test — Quality Gate Testing

"Tests are proof, not afterthought."

Purpose

Verify code works correctly in production-like environment with real dependencies (database, cache). This is the quality gate before /review.

Workspace Mode: if the session root declares Mode: workspace → resolve the target repo per CLAUDE.md §Workspace Mode before anything else; every path, probe, and gate below is relative to the target repo, and the workspace disk-check applies at the gate.

Stack Profile note: read Project Profile first. Core = Node.jsrules/overrides/test-nodejs.md replaces the test stack (Jest/Vitest instead of xUnit/Moq/FluentAssertions; @testcontainers/* fixtures + prisma migrate deploy per its §Template B; coverage via npm test -- --coverage) — the dotnet commands in this file map accordingly. Database → the TestContainers image follows the Profile: SQL Server (default) · Oracle → Oracle XE/Free · MySQL → mysql:8.0 · PostgreSQL → postgres:16-alpine · MongoDB → mongo:7.0 (see rules/overrides/database-*.md). Observability ELK → rules/overrides/monitoring-elk.md. On Apple Silicon (arm64): swap the SQL Server image to azure-sql-edge + a TCP/port-wait — the default mssql/server:2022 image segfaults under qemu; see rules/testing.md Template B arm64 note.

Prerequisites

  • Code implemented via /build
  • Docker Desktop installed and running (REQUIRED)

Test Engineer Responsibilities

/test differs from /build:

Aspect /build (Developer) /test (Test Engineer)
Focus Write tests while implementing Verify, supplement, and re-run with real engines
Tests ADDED Unit (Mock) + Integration (In-Memory) TestContainers + E2E
Tests EXECUTED Unit (Mock) + Integration (In-Memory) Everything — re-runs /build's suite (Unit + In-Memory + frontend Vitest) AND adds TestContainers + Playwright E2E
Docker ❌ Not required ✅ Required
Goal Feature works Feature works in production-like env, with no regressions

Read the full file on GitHub · 324 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. 5d ago First seen · 324 lines · 13 tokens per session scan A ff9e6c2f32e8

Subscribe to this mod's changes

test is a command published in the GitHub repository dinhnguyenngoc/spec-driven-claude-code (20 stars, last pushed 6d ago), licensed MIT. It adds 13 tokens to every session and 5,619 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.