spec-driven-workflow
Qué hace
Esta skill hace que la IA escriba una especificación antes de construir una función. Es para quien quiere acordar qué se va a construir antes de empezar el trabajo.
Cuándo usarla
- ✓Cuando una función debe especificarse antes de que nadie escriba código.
- ✓Cuando quieres criterios de aceptación que se puedan convertir en pruebas.
- ✓Cuando varias personas necesitan trabajar a partir de una única definición acordada de una función.
Link de la skill
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/spec-driven-workflow/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
“Escribe una especificación con criterios de aceptación para una función de restablecimiento de contraseña antes de empezar a programar.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Redacta la especificación, la revisa en busca de huecos y ambigüedades, y extrae los criterios de aceptación como casos de prueba para poder comprobar el código frente a ellos.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Spec-Driven Workflow — POWERFUL
Overview
Spec-driven workflow enforces a single, non-negotiable rule: write the specification BEFORE you write any code. Not alongside. Not after. Before.
This is not documentation. This is a contract. A spec defines what the system MUST do, what it SHOULD do, and what it explicitly WILL NOT do. Every line of code you write traces back to a requirement in the spec. Every test traces back to an acceptance criterion. If it is not in the spec, it does not get built.
Why Spec-First Matters
- Eliminates rework. 60-80% of defects originate from requirements, not implementation. Catching ambiguity in a spec costs minutes; catching it in production costs days.
- Forces clarity. If you cannot write what the system should do in plain language, you do not understand the problem well enough to write code.
- Enables parallelism. Once a spec is approved, frontend, backend, QA, and documentation can all start simultaneously.
- Creates accountability. The spec is the definition of done. No arguments about whether a feature is "complete" — either it satisfies the acceptance criteria or it does not.
- Feeds TDD directly. Acceptance criteria in Given/When/Then format translate 1:1 into test cases. The spec IS the test plan.
The Iron Law
NO CODE WITHOUT AN APPROVED SPEC.
NO EXCEPTIONS. NO "QUICK PROTOTYPES." NO "I'LL DOCUMENT IT LATER."
If the spec is not written, reviewed, and approved, implementation does not begin. Period.
The Spec Format
Every spec follows this structure. No sections are optional — if a section does not apply, write "N/A — [reason]" so reviewers know it was considered, not forgotten.
Mandatory Sections
| # | Section | Key Rules |
|---|---|---|
| 1 | Title and Metadata | Author, date, status (Draft/In Review/Approved/Superseded), reviewers |
| 2 | Context | Why this feature exists. 2-4 paragraphs with evidence (metrics, tickets). |
| 3 | Functional Requirements | RFC 2119 keywords (MUST/SHOULD/MAY). Numbered FR-N. Each is atomic and testable. |
| 4 | Non-Functional Requirements | Performance, security, accessibility, scalability, reliability — all with measurable thresholds. |
| 5 | Acceptance Criteria | Given/When/Then format. Every AC references at least one FR-* or NFR-*. |
| 6 | Edge Cases | Numbered EC-N. Cover failure modes for every external dependency. |
| 7 | API Contracts | TypeScript-style interfaces. Cover success and error responses. |
| 8 | Data Models | Table format with field, type, constraints. Every entity from requirements must have a model. |
| 9 | Out of Scope | Explicit exclusions with reasons. Prevents scope creep during implementation. |
RFC 2119 Keywords
| Keyword | Meaning |
|---|---|
| MUST | Absolute requirement. Non-conformant without it. |
| MUST NOT | Absolute prohibition. |
| SHOULD | Recommended. Omit only with documented justification. |
| MAY | Optional. Implementer's discretion. |
See spec_format_guide.md for the complete template with section-by-section examples, good/bad requirement patterns, and feature-type templates (CRUD, Integration, Migration).
See acceptance_criteria_patterns.md for a full pattern library of Given/When/Then criteria across authentication, CRUD, search, file upload, payment, notification, and accessibility scenarios.
Bounded Autonomy Rules
These rules define when an agent (human or AI) MUST stop and ask for guidance vs. when they can proceed independently.
STOP and Ask When:
Scope creep detected. The implementation requires something not in the spec. Even if it seems obviously needed, STOP. The spec might have excluded it deliberately.
Ambiguity exceeds 30%. If you cannot determine the correct behavior from the spec for more than 30% of a given requirement, the spec is incomplete. Do not guess.
Breaking changes required. The implementation would change an existing API contract, database schema, or public interface. Always escalate.
Security implications. Any change that touches authentication, authorization, encryption, or PII handling requires explicit approval.
Performance characteristics unknown. If a requirement says "MUST complete in < 500ms" but you have no way to measure or guarantee that, escalate before implementing a guess.
Preguntas frecuentes
¿También escribe el código?
La skill se centra primero en escribir y revisar la especificación; el código llega después de que la especificación esté aprobada.
¿En qué formato están los criterios?
Usan un formato Dado, Cuando, Entonces que se traduce directamente en casos de prueba.
¿Pueden generarse las pruebas a partir de la especificación?
Sí. Un script extrae casos de prueba de los criterios de aceptación.
Detalles
Descripción original del autor
Use when a feature should be specified before coding (acceptance criteria, spec-first, tests from specs). Writes the spec with spec_generator.py, checks it with spec_validator.py and extracts tests with test_extractor.py.
Popularidad
- Estrellas en GitHub
- 29 mil
- Posición en el ranking
- #9605
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
agent-launcher-orchestrator
29 milAyuda a tu agente a planificar, crear, probar y programar un agente gestionado de Claude en tu propia cuenta, paso a paso, a partir de un objetivo claro.
grade-iterate
29 milPermite que tu agente evalúe el trabajo de un agente de IA gestionado según una rúbrica y lo mejore en un número fijo de rondas, para que nunca entre en un bucle infinito.
interview
29 milPermite que tu agente te entreviste sobre una idea de agente de IA y convierta tus respuestas en un plan de construcción sencillo antes de poner nada en marcha.
run-without-you
29 milAyuda a tu agente a configurar un agente gestionado de IA para que se ejecute según un calendario o cuando ocurra un evento, comprobando el horario cron antes del lanzamiento.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.