dbv-specs-ops: Command for Claude Code

.claude/commands/test.md

test is a command for Claude Code from davidbuenov/dbv-specs-ops. It costs 22 tokens per session (964 once invoked), scanned A, a copy of test, MIT.

A testing command for the Test stage of an SDD workflow. It creates and runs missing tests, including evaluations for non-deterministic AI behavior, and requires passing tests before work is marked complete.

In plain words
What is it for?
Use it to add or run tests for new code, evaluate AI components, and document bugs corrected during testing.
Why use it?
It makes verification part of finishing a task rather than an optional follow-up. Fixed bugs are also recorded in the project changelog.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is davidbuenov/dbv-specs-ops's own configuration. It tells Claude Code how to work on dbv-specs-ops 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 dbv-specs-ops configures →

Reuse

Borrowing it

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

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/davidbuenov/dbv-specs-ops/test/github.svg)](https://agentmods.dev/commands/davidbuenov/dbv-specs-ops/test)
Your own site
<a href="https://agentmods.dev/commands/davidbuenov/dbv-specs-ops/test"><img src="https://agentmods.dev/badge/commands/davidbuenov/dbv-specs-ops/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/davidbuenov/dbv-specs-ops/test"><img src="https://agentmods.dev/badge/commands/davidbuenov/dbv-specs-ops/test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 964 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 100% copy Near-identical to another mod 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.00022 $0.00964
Opus 5.5 $0.00009 $0.00386
Sonnet 5.5 $0.00004 $0.00193
Haiku 4.5 $0.00002 $0.00096

Measured 4d ago against content hash 79ffc1a42ead, 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 4d 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.

Origin

This is a copy

100% identical to test — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/test.md · 40 lines

What it actually says

Ejecuta ahora la fase Test (/test) del ciclo Spec→Plan→Build→Test→Simplify→Ship definido en dbv-specs-ops/docs/MASTER_PROMPT.md (<workflow>, paso 4). Crea y ejecuta los tests que falten para el código construido; ninguna tarea se marca como hecha sin un test que pase. Cada test que valide un requisito con ID lo cita con @spec REQ-NN. Si el proyecto tiene componentes de IA no deterministas, incluye también Evals. Registra cualquier bug corregido en dbv-specs-ops/CHANGELOG.md.

🕸️ Grafo de fases — nodo activo: Test

Fase 4: tests deterministas etiquetados con @spec y Evals si hay IA no determinista.

Al entrar — la transición por la que llegas fija la condición, cómo ejecutar esta fase y qué evitar:

  • desde Build (LEADS_TO) — si: La porción está implementada, compila o se ejecuta sin errores y está anotada en CHANGELOG.md.
    • Cómo: Escribe y ejecuta tests deterministas que citen @spec REQ-NN para cada requisito tocado. Con componentes de IA, añade Evals; con un Agent Plugin, valida plugin.json y mcp.json.
    • Evita: No marques una tarea como hecha sin un test en verde. Si un enfoque falla y lo reviertes, regístralo en la Rejection Memory antes de probar otro.

Salidas (salto 1) — a dónde puedes ir y con qué condición:

  • Test → Build (TRIGGERS) — si: Algún test o Eval falla.
    • Cómo: Corrige la causa en el código y anótalo como Fixed en CHANGELOG.md. Si el fallo desmiente un supuesto de SPECIFICATIONS.md, regístralo en Lecciones Aprendidas de memory.md.
    • Evita: No relajes ni borres una aserción para poner el test en verde. No repitas un arreglo que ya se revirtió (míralo en la Rejection Memory).
  • Test → Simplify (PROVIDES_INPUT_FOR) — si: Todos los tests y Evals pasan, y ningún requisito con ID de la tarea se queda sin test.
    • Cómo: Haz los tres pases de docs/REVIEW.md (Bugs, Seguridad, Cumplimiento con <coding_standards>) y, si hay Python, ejecuta dbv-lint.py --changed. Después refactoriza para dar claridad sin cambiar el comportamiento.
    • Evita: No añadas funcionalidad nueva. Si un refactor rompe tests y lo reviertes, regístralo en la Rejection Memory.

Horizonte (salto 2) — lo que vendrá después y revisará tu trabajo:

  • Build ↩ Test (LEADS_TO) — si: La porción está implementada, compila o se ejecuta sin errores y está anotada en CHANGELOG.md.
  • Simplify ↩ Build (TRIGGERS) — si: La revisión deja un hallazgo Crítico que exige cambiar el comportamiento del código, o un refactor rompe los tests.
  • Simplify → Ship (CONVERGES_TO) — si: Cero hallazgos Crítico, dbv-lint.py sin errores (si aplica) y tests en verde tras el refactor.
    • Cómo: Imprime <memory_update_proposal>. Actualiza README.md de la raíz, sincroniza DESIGN.md derivado si existe, completa walkthrough.md, pregunta el tipo de versión, publica CHANGELOG.md y propone commit + tag.
    • Evita: No ejecutes git push (solo sugiérelo). No cierres sin <memory_update_proposal>. No generes start/stop en apps de escritorio, librerías o CLIs.

Rutas relativas a dbv-specs-ops/. Lee la 🚫 Rejection Memory de memory.md antes de proponer un enfoque: lo que ya se descartó no se vuelve a proponer sin explicar qué ha cambiado.

$ARGUMENTS

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. 4d ago Changed · +28 lines 79ffc1a42ead
  2. 8d ago Changed · +1 lines 479e4b3c029e
  3. 1mo ago First seen · 11 lines · 22 tokens per session scan A 15cf790658e9

Subscribe to this mod's changes

test is a command published in the GitHub repository davidbuenov/dbv-specs-ops (29 stars, last pushed 4d ago), licensed MIT. It adds 22 tokens to every session and 964 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to test, differing in 0 lines, and is treated as a copy.