spec-score

spec-score is a command for Claude Code from doncheli/don-cheli-sdd. It costs 102 tokens per session (2,161 once invoked), scanned A, original, Apache-2.0.

A specification-quality scorer rates a software specification from 0 to 100 using measures such as completeness, clarity, verifiability, and testability. It compares requirements with formal specification standards.

In plain words
What is it for?
Use it to assess a specification, user story, or requirements document and compare its quality with a threshold or branch version.
Why use it?
It reveals vague, missing, inconsistent, or difficult-to-test requirements before implementation begins.

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 assess a specification, user story, or requirements document and compare its quality with a threshold or branch version.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/doncheli/don-cheli-sdd/spec-score/github.svg)](https://agentmods.dev/commands/doncheli/don-cheli-sdd/spec-score)
Your own site
<a href="https://agentmods.dev/commands/doncheli/don-cheli-sdd/spec-score"><img src="https://agentmods.dev/badge/commands/doncheli/don-cheli-sdd/spec-score/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-score

Your own site · 80×15
<a href="https://agentmods.dev/commands/doncheli/don-cheli-sdd/spec-score"><img src="https://agentmods.dev/badge/commands/doncheli/don-cheli-sdd/spec-score.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,161 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.00102 $0.02161
Opus 5 $0.00051 $0.01081
Sonnet 5 $0.00020 $0.00432
Haiku 4.5 $0.00010 $0.00216

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

Security

Grade A, and why

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

scripts/.claude/commands/dc/spec-score.md · 190 lines

How it starts

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

/dc:spec-score

Objetivo

Evaluar la calidad de una especificación con una puntuación cuantitativa de 0 a 100, usando 8 métricas ponderadas. Compara contra los estándares IEEE 830 e ISO 29148. Produce un informe con radar chart descriptivo y tabla de desglose accionable.

Uso

/dc:spec-score                               # Evaluar spec del proyecto actual
/dc:spec-score @docs/specs/checkout/spec.md # Evaluar un archivo específico
/dc:spec-score --historia US-042             # Evaluar una historia de usuario
/dc:spec-score --umbral 80                   # Cambiar umbral de aprobación
/dc:spec-score --comparar main               # Comparar contra versión en main
/dc:spec-score --formato ejecutivo           # Reporte simplificado para PMs

Las 8 Métricas

# Métrica Peso Descripción
1 Completitud 15% ¿Cubre todos los escenarios? ¿Tiene happy path + edge cases?
2 Medibilidad 15% ¿Los criterios de aceptación son verificables y cuantificables?
3 Ausencia de ambigüedad 15% ¿Usa lenguaje preciso? ¿Evita "rápido", "fácil", "adecuado"?
4 Testeabilidad 15% ¿Se puede escribir un test automatizado para cada criterio?
5 Consistencia 12% ¿Contradice otras specs del sistema? ¿Usa terminología uniforme?
6 Atomicidad 12% ¿Cada requisito expresa una sola cosa? ¿Sin requisitos compuestos?
7 Trazabilidad 8% ¿Tiene ID único? ¿Referencia al objetivo de negocio que lo origina?
8 Independencia 8% ¿Puede implementarse sin depender de specs aún no definidas?

Umbrales de Calidad

Rango Nivel Acción
90-100 Excelente Lista para implementar
80-89 Buena Revisar observaciones menores
60-79 Necesita trabajo Corregir antes de implementar
0-59 Rechazada Reescribir con /dc:especificar

Comportamiento

  1. Cargar spec del archivo o historia indicada

  2. Evaluar cada métrica (0-100 por métrica):

Read the full file on GitHub · 190 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 · 190 lines · 0 tokens per session scan A af56e47ca58f

Subscribe to this mod's changes

spec-score is a command published in the GitHub repository doncheli/don-cheli-sdd (57 stars, last pushed 29d ago), licensed Apache-2.0. It adds 102 tokens to every session and 2,161 once invoked, about $0.0005 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.