dbv-specs-ops: Command for Claude Code

.claude/commands/spec.md

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

A command for defining the specification stage of an SDD workflow. It records what needs to be built and why, after checking the project's existing specification and planning files.

In plain words
What is it for?
Use it to write or verify a project's requirements, goals, problems, and acceptance criteria before planning the work.
Why use it?
It prevents implementation from starting with an unclear or assumed requirement. If the requirement is not already documented, it asks for clarification.

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/spec.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 spec

README.md
[![agentmods](https://agentmods.dev/badge/commands/davidbuenov/dbv-specs-ops/spec/github.svg)](https://agentmods.dev/commands/davidbuenov/dbv-specs-ops/spec)
Your own site
<a href="https://agentmods.dev/commands/davidbuenov/dbv-specs-ops/spec"><img src="https://agentmods.dev/badge/commands/davidbuenov/dbv-specs-ops/spec/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 spec

Your own site · 80×15
<a href="https://agentmods.dev/commands/davidbuenov/dbv-specs-ops/spec"><img src="https://agentmods.dev/badge/commands/davidbuenov/dbv-specs-ops/spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,097 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 97% 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.00027 $0.01097
Opus 5.5 $0.00011 $0.00439
Sonnet 5.5 $0.00005 $0.00219
Haiku 4.5 $0.00003 $0.00110

Measured 4d ago against content hash 4a8f7fdba757, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spec 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

97% identical to spec — 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/spec.md · 41 lines

How it starts

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

Ejecuta ahora la fase Spec (/spec) del ciclo Spec→Plan→Build→Test→Simplify→Ship definido en dbv-specs-ops/docs/MASTER_PROMPT.md (<workflow>, paso 1). Lee primero dbv-specs-ops/project.config.md, dbv-specs-ops/docs/SPECIFICATIONS.md, dbv-specs-ops/memory.md y dbv-specs-ops/task.md. Revisa si el requisito ya está definido en SPECIFICATIONS.md; si no, pregunta antes de asumir nada. Todo requisito nuevo lleva un ID único (REQ-NN).

🕸️ Grafo de fases — nodo activo: Spec

Fase 1: el qué y el por qué en SPECIFICATIONS.md, con IDs REQ-NN (y DESIGN.md si hay UI).

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

  • desde Start (LEADS_TO) — si: project.config.md ya está configurado y el usuario pide una funcionalidad o un cambio de requisitos.
    • Cómo: Lee project.config.md, SPECIFICATIONS.md, memory.md (incluida la Rejection Memory) y task.md. Da a cada requisito nuevo o modificado el siguiente ID libre (máximo + 1).
    • Evita: No escribas código en esta fase. No inventes requisitos ambiguos: pregunta. No renumeres ni reutilices IDs.
  • desde Bootstrap (PROVIDES_INPUT_FOR) — si: El usuario ha confirmado la configuración y project.config.md está guardado.
    • Cómo: Si SPECIFICATIONS.md solo tiene placeholders y ya hay código, sigue ADOPTION_PROMPT.md; si no, define los requisitos con IDs y DESIGN.md si hay UI.
    • Evita: No pases a /plan con placeholders sin resolver en SPECIFICATIONS.md.
  • desde Plan (LEADS_TO) — si: El Architect Review revela que la especificación es ambigua o contradictoria, o el usuario rechaza el plan.
    • Cómo: Corrige solo la parte de SPECIFICATIONS.md afectada y vuelve a /plan. Registra el enfoque descartado y su motivo en la Rejection Memory de memory.md (REJECTED-NN).
    • Evita: No reescribas requisitos que no estaban en cuestión. No borres un enfoque rechazado: se registra para no volver a proponerlo.

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

  • Spec → Plan (PROVIDES_INPUT_FOR) — si: Los requisitos de la tarea tienen ID y criterios de aceptación verificables, sin preguntas abiertas críticas.
    • Cómo: Clasifica el modo (Conductor <= 2 archivos y < 50 líneas; Orquestador si no). Imprime <architect_review> con y <confidence_score>; el cita un sustantivo concreto de SPECIFICATIONS.md. Desglosa en pasos de <= 50 líneas que citen su ID.
    • Evita: No propongas un enfoque que figure como vigente en la Rejection Memory sin decir por qué ya no aplica. No avances a /build con un eje de confianza en low sin validación humana. Si el plan es complejo, no omitas el Frontmatter YAML (dependencies, risks, rollback_strategy).

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

  • Plan ↩ Spec (LEADS_TO) — si: El Architect Review revela que la especificación es ambigua o contradictoria, o el usuario rechaza el plan.
  • Plan → Build (PROVIDES_INPUT_FOR) — si: El plan ha superado el Architect Review y el usuario lo ha aprobado explícitamente.
    • Cómo: Implementa una porción cada vez. Cabecera de project.config.md en cada fichero nuevo, @spec REQ-NN en las funciones que implementan un requisito y entrada en CHANGELOG.md [Sin publicar]. Si contradices ARCHITECTURE.md, regístralo ya en memory.md.
    • Evita: Varios return fuera de las Guard Clauses iniciales (un solo return final); excepciones o None donde toca el patrón Result; any en TypeScript; .unwrap()/.expect() en comandos IPC de Rust; todo el React en App.tsx; en Tauri sin bundler, ES modules o una constante isTauri (usa IIFE y runningInTauri).

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

Read the full file on GitHub · 41 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. 4d ago Changed · +30 lines 4a8f7fdba757
  2. 8d ago Changed · +1 lines d82f1a758223
  3. 1mo ago First seen · 10 lines · 27 tokens per session scan A 0f5e78ec860d

Subscribe to this mod's changes

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