dbv-md-reader: Command for Claude Code

.claude/commands/maintain.md

maintain is a command for Claude Code from davidbuenov/dbv-md-reader. It costs 27 tokens per session (999 once invoked), scanned A, original, MIT.

An optional maintenance step in a software development cycle for diagnosing a problem that has already been found.

In plain words
What is it for?
Use it to investigate and diagnose a reported issue.
Why use it?
It focuses investigation on an existing finding instead of treating maintenance as open-ended work.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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

Reuse

Borrowing it

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

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 maintain

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/davidbuenov/dbv-md-reader/maintain"><img src="https://agentmods.dev/badge/commands/davidbuenov/dbv-md-reader/maintain.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 999 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.00027 $0.00999
Opus 5.5 $0.00011 $0.00400
Sonnet 5.5 $0.00005 $0.00200
Haiku 4.5 $0.00003 $0.00100

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

Security

Grade A, and why

maintain 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

Copies of this mod

1 near-identical copy found in the catalogue:

  • maintain — 100% identical, 0 lines differ
.claude/commands/maintain.md · 42 lines

What it actually says

Ejecuta la fase Maintain (/maintain, Fase 7 opcional) definida en dbv-specs-ops/docs/MAINTAIN.md. Solo aplica si dbv-specs-ops/project.config.md declara "Maintain (Fase 7) → Habilitado: sí". Diagnostica en modo solo lectura la desviación reportada y redacta el hallazgo como una nueva entrada ## [Detectado automáticamente] <fecha> en dbv-specs-ops/docs/SPECIFICATIONS.md, siguiendo la estructura Problema/Objetivo/Criterios. No despliegues nada, no hagas merge de nada — el hallazgo vuelve a entrar por /plan como cualquier otro requisito, y un humano decide si se construye.

🕸️ Grafo de fases — nodo activo: Maintain

Fase 7 (opcional): diagnóstico en solo lectura de una desviación detectada por CI/cron.

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

  • desde Start (TRIGGERS) — si: Maintain está habilitado en project.config.md y el detector determinista (CI/cron) reporta una desviación de banda 2 o superior.
    • Cómo: Diagnostica en solo lectura. Si el log supera el presupuesto de contexto, conserva su FINAL (tail), no su principio: el fallo está al final. Consulta la Rejection Memory antes de proponer una causa o un arreglo.
    • Evita: No despliegues, no hagas merge y no cambies código. No te quedes con el principio del log (head): el fallo suele estar al final.

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

  • Maintain → End (LEADS_TO) — si: El hallazgo está redactado como ## [Detectado automáticamente] en SPECIFICATIONS.md.
    • Cómo: Deja la decisión al humano: el hallazgo reentra por /plan solo si alguien decide abordarlo.
    • Evita: No empieces a construir el arreglo en la misma sesión.
  • Maintain → Plan (PROVIDES_INPUT_FOR) — si: Un humano ha revisado el hallazgo [Detectado automáticamente] y decide abordarlo.
    • Cómo: Trata el hallazgo como un requisito más: asígnale un ID y pásalo por el Architect Review.
    • Evita: No saltes de Maintain a Build sin plan aprobado.

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.
    • 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.
  • 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

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 · +29 lines f32a4037f86f
  2. 1mo ago First seen · 13 lines · 27 tokens per session scan A 1adb03fca934

Subscribe to this mod's changes

maintain is a command published in the GitHub repository davidbuenov/dbv-md-reader (50 stars, last pushed 3d ago), licensed MIT. It adds 27 tokens to every session and 999 once invoked, about $0.0001 per session on Opus 5.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-09-04.