spec-driven-eval
Qué hace
Esta skill hace que la IA compruebe una implementación frente a cada criterio de aceptación de un documento de requisitos de producto y la puntúe. Es para personas que comparan implementaciones guiadas por especificaciones o auditan si una función está completa. Solo se ejecuta cuando la nombras.
Cuándo usarla
- ✓Cuando quieres comprobar si una función cumple por completo sus requisitos de producto.
- ✓Cuando necesitas comparar varias implementaciones de la misma especificación.
- ✓Cuando quieres que cada criterio de aceptación tenga una nota y una puntuación final comparable.
Link de la skill
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/spec-driven-eval/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Ejecuta spec-driven-eval en esta función y dime qué criterios de aceptación no están implementados por completo.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA recorre criterio por criterio, puntúa la implementación y sus pruebas por separado, y luego agrega los resultados en una única nota final.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Spec-Driven Implementation Evaluation
Evaluate a spec-driven-development (SDD) effort against a PRD case by case (acceptance criterion by acceptance criterion), scoring implementation and tests separately, and roll up to a single comparable final grade. Designed for benchmarking: the same PRD evaluated across different SDD frameworks — and the same effort evaluated twice — must yield comparable, reproducible numbers.
Two subjects, two questions
This eval answers two independent questions, and keeps their verdicts separate because they fail independently:
- How good is the framework at respecting and extracting requirements? — Did it honor the PRD and stay in bounds (respect:
Finalimplementation side + ScopeS), and did it surface the implicit requirements the PRD only implied, without noise (extract: ElicitationE)? - How good is the harness at ensuring they are all implemented? — Does the test suite prove every sanctioned requirement is actually built (
T+ Engineering GatesG)?
The linkage that makes "all implemented" well-defined: the harness is held accountable for the full sanctioned requirement set =
PRD acceptance criteria ∪ valid E-additions. A valid requirement the framework extracted but the harness never tests is a harness miss (T), not a framework miss (Ekeeps the extraction credit). Extraction defines the verification target.
Scoring is checklist-based: every criterion is decomposed into atomic binary (MET / UNMET) checks, each backed by file:line evidence. Binary decomposition is the design choice that makes the grade reproducible — graded/Likert scales (is this a 3 or a 4?) are the dominant source of evaluator-to-evaluator disagreement; binary checks raise inter-evaluator agreement to roughly human level. Partial credit is derived from the fraction of checks met, never judged on a sliding scale.
When to use
- "Evaluate/score this PRD case by case and give a final grade"
- "Was this story/feature implemented 100%?"
- Benchmarking multiple spec-driven implementations of the same PRD
- Auditing implementation and test coverage (unit + e2e) against acceptance criteria
Inputs required
- The PRD (ground-truth product intent) — the user story acceptance criteria are the unit of evaluation.
- The implementation (production code).
- The tests (unit + e2e).
- The SDD-derived artifacts —
spec.mdandtasks.md(refined ACs, requirement IDs, derived requirements). Required for the ElicitationEand ScopeSaxes (they grade these against the PRD). When absent,Final/Tstill run, but reportE/Sasn/a — no derived spec. The PRD remains the source of truth for what counts as "expected"; the derived spec is what gets graded for respect and extraction.
Scoping the diff. Before scoring, use git to identify which files changed for this implementation. That diff surface is the primary search scope for all file:line evidence in steps 4 and 8:
git diff <base>..<head> --name-only # branch or PR
git diff --name-only HEAD # uncommitted changes
git status --short # include untracked new files
Record the diff surface in the report. Evidence outside it is still valid (e.g. a pre-existing file was modified), but note when a check relies on files not in the diff — that may indicate the wrong base was chosen.
Quick start
New to running this end-to-end? See quickstart.md for the 4-chat-session flow (freeze baseline → plan → implement → evaluate) with paste-ready prompts. Read it when you need the operational how-to; the rest of this file is the scoring methodology.
Core rules (read first)
These five rules govern every score. They exist to make the grade auditable and reproducible.
- Evidence or zero. Every MET check MUST cite evidence as
file:line(orfile:startLine-endLine). No located evidence ⇒ the check is UNMET. Never award credit from assumptions or from the PRD restating intent. - Search-before-zero (anti false-negative). Before marking a check UNMET for "not found", record the search actually performed — starting with the diff-surface files from the scoping step, then the grep/glob terms tried and any additional files/dirs inspected. A check scored UNMET must confirm the behavior is absent from the diff surface, not just from an ad-hoc grep across the full repo. UNMET means
Preguntas frecuentes
¿Se ejecutará por sí sola?
No. Solo se usa cuando la nombras explícitamente.
¿Puntúa las pruebas por separado?
Sí. La implementación y las pruebas se puntúan por separado y luego se combinan.
¿Puede comparar dos versiones?
Sí. La misma especificación de producto puede evaluarse en distintas versiones para una comparación justa.
Detalles
Descripción original del autor
Scores how completely an implementation fulfills a PRD/spec, case by case, and produces a single comparable final grade. Invoke only when explicitly named (e.g. run spec-driven-eval); do not auto-trigger. Use when benchmarking spec-driven implementations, grading acceptance criteria, evaluating whether a feature was 100% implemented, comparing multiple implementations of the same PRD, or auditing implementation and test coverage (unit and e2e) against product requirements. Do NOT use for planning or building features (use tlc-spec-driven), writing PRDs, or general code review unrelated to a sp
Popularidad
- Estrellas en GitHub
- 7,1 mil
- Posición en el ranking
- #13534
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
component-common-domain-detection
7,1 milAyuda a tu agente a encontrar la lógica de negocio repetida en varias partes de una base de código y a sugerir cómo combinarla.
component-flattening-analysis
7,1 milAyuda a tu agente a encontrar código mal colocado y aplanar las estructuras de carpetas de componentes desordenadas, para que cada pieza esté donde debe.
component-identification-sizing
7,1 milAyuda a tu agente a mapear las partes de una base de código y medir su tamaño, para encontrar qué módulo conviene dividir primero.
coupling-analysis
7,1 milAyuda a tu agente a comprobar cuán estrechamente dependen unas partes de una base de código de otras, y qué conexiones conviene aflojar primero.
Skills parecidas
test-driven-development
311 milEnseña a tu agente a escribir primero una prueba que falle, verla fallar y después escribir el código más pequeño que la hace pasar, antes de construir cualquier función o corrección.
verification-before-completion
311 milEnseña a tu agente a ejecutar comprobaciones reales y leer su resultado antes de afirmar que una tarea, una corrección o una compilación está completa o en buen estado.
migrate-to-shoehorn
310 milSustituye los casts de tipo arriesgados de tus archivos de prueba por la librería shoehorn, para que las pruebas usen datos parciales y sigan pasando las comprobaciones de tipos.