archivar

archivar is a command for Claude Code from doncheli/don-cheli-sdd. It costs 13 tokens per session (534 once invoked), scanned A, original, Apache-2.0.

A closing command that synchronises incremental requirement files with the main specifications and archives completed features. A delta specification describes only what a change adds or modifies.

In plain words
What is it for?
Use it to archive one completed feature or all features marked as implemented, update the main specification, record decisions, and remove temporary files.
Why use it?
It keeps active specifications tidy and preserves completed feature plans, tests, reviews, and metadata for later reference.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Part of the don-cheli-sdd plugin — 28 skills, 115 commands, 1 agent shipped together

Good fit Use it to archive one completed feature or all features marked as implemented, update the main specification, record decisions, and remove temporary files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/doncheli/don-cheli-sdd/archivar
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.

Clone the repo
git clone --depth 1 https://github.com/doncheli/don-cheli-sdd

Made for: Claude Code.

Or install don-cheli-sdd, the plugin that ships this one along with the rest of its 28 skills, 115 commands, 1 agent.

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 archivar

README.md
[![agentmods](https://agentmods.dev/badge/commands/doncheli/don-cheli-sdd/archivar.svg)](https://agentmods.dev/commands/doncheli/don-cheli-sdd/archivar)
Your own site
<a href="https://agentmods.dev/commands/doncheli/don-cheli-sdd/archivar"><img src="https://agentmods.dev/badge/commands/doncheli/don-cheli-sdd/archivar.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 534 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.00013 $0.00534
Opus 5 $0.00006 $0.00267
Sonnet 5 $0.00003 $0.00107
Haiku 4.5 $0.00001 $0.00053

Measured 4d ago against content hash 586d7a858f8f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

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

scripts/.claude/commands/dc/archivar.md · 70 lines

What it actually says

/dc:archivar

Objetivo

Sincronizar las specs delta (cambios incrementales) con las specs principales y archivar las features completadas para referencia futura.

Adaptado de sdd-archive de Gentle-AI — fase de cierre que Don Cheli no tenía.

Uso

/dc:archivar @specs/features/<dominio>/<Feature>.feature
/dc:archivar --todo   # Archivar todas las features @implementada

Comportamiento

  1. Verificar que la feature tiene tag @implementada (todos los tests pasan)
  2. Mover artefactos completados a specs/archivo/
  3. Actualizar la spec principal del dominio si existe
  4. Registrar en .dc/memoria/decisiones.md
  5. Limpiar archivos temporales de la feature

Estructura de Archivo

specs/
├── features/          # Features ACTIVAS
│   └── usuario/
│       └── EditarPerfil.feature  (en progreso)
├── archivo/           # Features COMPLETADAS
│   └── usuario/
│       └── CrearUsuario/
│           ├── CrearUsuario.feature
│           ├── CrearUsuario.plan.md
│           ├── CrearUsuario.tasks.md
│           ├── review.md
│           └── metadata.json  # Fechas, métricas, estimado vs real
└── db_schema/         # Schemas (no se archivan)

metadata.json

{
  "feature": "CrearUsuario",
  "dominio": "usuario",
  "archivada": "2026-03-21",
  "iniciada": "2026-03-18",
  "duracion_real_dias": 3,
  "estimado_dias": 5,
  "precision_estimado": "60%",
  "escenarios_gherkin": 5,
  "tests_totales": 12,
  "archivos_modificados": 8
}

Valor para el Framework

Los datos archivados alimentan:

  • /dc:estimar → datos históricos para estimados más precisos
  • /dc:analizar-sesiones → patrones de desarrollo
  • Memoria persistente → decisiones y convenciones aprendidas
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 First seen · 70 lines · 13 tokens per session scan A 586d7a858f8f

Subscribe to this mod's changes

archivar is a command published in the GitHub repository doncheli/don-cheli-sdd (57 stars, last pushed 28d ago), licensed Apache-2.0. It adds 13 tokens to every session and 534 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-09-03.