spec-driven-development-template
AGENTS.md19 starsChanged 3 months agoMITView on GitHub
Cloning is optional. The mandatory requirement is to work with this repository template and guides as the primary reference. Clonar es opcional. Lo obligatorio es trabajar con este template y sus guías como referencia principal. Default target-project rule / Regla por defecto para proyecto destino: Quick start for AI tools / Inicio rápido para herramientas de IA: Before implementation tasks, explicitly determine:
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository8 other files it gives its agents.
- site/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- site/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- llms.txtllms.txt
- sdd-serveSkill
- sdd-serveSkill
- sdd-workflowSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
20 rules. About 0 are common, 13 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Default target-project rule / Regla por defecto para proyecto destino:
- Distinctive: line 38
Before implementation tasks, explicitly determine:
- Very specific: line 40
If the task is template maintenance or target project execution.
- Very specific: line 43
Default to the compact spec/ sidecar for target projects.
- Very specific: line 44
Use www/<project-name>/ only as the clean container when the target project should live inside this repository.
- Very specific: line 45
If the target project lives inside this repository, keep it under www/ to avoid mixing framework and product work.
- Distinctive: line 65
If GitHub Spec Kit is available, use:
- Very specific: line 71
Keep specs/ and bitacora/ updated at session end.
- Distinctive: line 74
Run validation before finishing.
- Distinctive: line 77
Run policy check before finishing.
- Distinctive: line 80
Run gate check before finishing.
- Distinctive: line 89
If idea, scope, priority, or requirements change:
- Distinctive: line 91
Update the active specification.
- Very specific: line 92
Add an entry in history.md.
- Very specific: line 93
Update specs/INDEX.md if status or priority changes.
- Distinctive: line 96
Do not continue implementation until documentation is aligned.
- Distinctive: line 98
No continúes implementación hasta que la documentación quede alineada.
- Distinctive: line 131
No implementation without specification, refinement trace, and logbook updates.
- Distinctive: line 133
No hay implementación sin especificación, traza de refinamiento y actualización de bitácora.
- Distinctive: line 174
Always use this repository as the primary reference:
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
🤖 Instructions for any AI tool / Instrucciones para cualquier herramienta de IA
Mandatory repository rule / Regla obligatoria del repositorio
Cloning is optional. The mandatory requirement is to work with this repository template and guides as the primary reference.
Clonar es opcional. Lo obligatorio es trabajar con este template y sus guías como referencia principal.
Default target-project rule / Regla por defecto para proyecto destino:
- EN: Do not clone or copy this full repository into the user's project unless the user explicitly asks for a full standalone workspace.
- ES: No clones ni copies este repositorio completo dentro del proyecto del usuario salvo que el usuario pida explícitamente un workspace standalone completo.
- EN: For real projects, install only the compact
spec/sidecar and keep project code in the project root. - ES: Para proyectos reales, instala solo el sidecar compacto
spec/y mantén el código del proyecto en la raíz del proyecto.
Quick start for AI tools / Inicio rápido para herramientas de IA:
- AGENT_OPERATING_SYSTEM.md
sdd.policy.yamlINSTRUCTIONS.mdAI_START_HERE.mdtemplate-context/README.mdtemplate-context/01-PURPOSE.mdtemplate-context/02-AI-OPERATING-RULES.mdtemplate-context/03-FAST-ENTRY-FLOWS.mdtemplate-context/04-ANTI-MISUSE.mdtemplate-context/05-SDD-EXECUTION-GATE.mdtemplate-context/06-AI-RULES-MATRIX.mdtemplate-context/07-AI-HANDOFF-CHECKLIST.mddocs/es/10-agentes-ia-soportados-y-prompts.mddocs/en/10-supported-ai-agents-and-prompts.md
Repository context lock / Bloqueo de contexto del repositorio
- EN: Treat this repository as a starter template, not as a single in-progress product.
- ES: Trata este repositorio como un template de arranque, no como un único producto en desarrollo.
Before implementation tasks, explicitly determine:
- If the task is
template maintenanceortarget project execution. - The real target project path when execution is for a user project.
- The active specification in that target project.
- Default to the compact
spec/sidecar for target projects. - Use
www/<project-name>/only as the clean container when the target project should live inside this repository. - If the target project lives inside this repository, keep it under
www/to avoid mixing framework and product work.
Mandatory reading order / Orden obligatorio de lectura
idea/IDEA_GENERAL.mdspecs/INDEX.md- Latest handoff file in
bitacora/handoffs// último archivo debitacora/handoffs/ - Reusable templates in
templates// plantillas reutilizables entemplates/ - Optional packs and quality evidence (
playbooks/,quality/) when needed
Mandatory workflow / Flujo obligatorio
- Confirm the target project path.
- recommended clean workspace inside this template:
./scripts/create-www-project.sh <project-name> <assistant> - recommended external target path:
./scripts/install-spec-sidecar.sh /absolute/path/to/project - full standalone workspace only when explicitly requested:
./scripts/init-project.sh /absolute/path/to/project --profile=full
- recommended clean workspace inside this template:
- Work from one active specification.
- Record explicit user consent before execution/implementation starts on an approved spec:
- sidecar mode:
./spec/scripts/confirm-user-consent.sh --spec 001-<slug> "User approved scope X" - standalone full mode:
./scripts/confirm-user-consent.sh --spec 001-<slug> "User approved scope X"
- sidecar mode:
- If GitHub Spec Kit is available, use:
/speckit.constitution/speckit.specify/speckit.plan/speckit.tasks/speckit.implement
- Keep
specs/andbitacora/updated at session end. - Record decisions worth keeping in
bitacora/decisiones/YYYY-MM-DD-<slug>.md(command/sdd:decision): when the session chose between real alternatives, when the choice is expensive to reverse, or when a future reader would ask "why is it like this?". Each record states when to revisit it, and every rationale points at a source (commit,file:line, spec history, CHANGELOG,idea/). Never invent rationale or dates.- Registra decisiones en
bitacora/decisiones/cuando se eligió entre alternativas reales, cuando revertirlas será caro, o cuando alguien preguntará después "¿por qué es así?". Nunca inventes justificación ni fechas.
- Registra decisiones en
- Run validation before finishing.
- sidecar mode:
./spec/scripts/validate-sdd.sh . --strict - standalone full mode:
./scripts/validate-sdd.sh . --strict
- sidecar mode:
- Run policy check before finishing.
- sidecar mode:
./spec/scripts/check-sdd-policy.sh . - standalone full mode:
./scripts/check-sdd-policy.sh .
- sidecar mode:
- Run gate check before finishing.
- sidecar mode:
./spec/scripts/check-sdd-gate.sh . - standalone full mode:
./scripts/check-sdd-gate.sh .
- sidecar mode:
- Optional, if available: run
new-spec.sh,score-spec.sh,generate-roadmap.sh,generate-status.sh, andlegacy-discovery.shfor stronger consistency.
Optional modules are accelerators, not blockers. If they are not used, keep core consistency with idea/, specs/, and bitacora/.
Mandatory refinement protocol / Protocolo obligatorio de refinamiento
If idea, scope, priority, or requirements change:
- Update the active specification.
- Add an entry in
history.md. - Update
specs/INDEX.mdif status or priority changes. - Register the change in
bitacora/.
Do not continue implementation until documentation is aligned.
No continúes implementación hasta que la documentación quede alineada.
Required reference / Referencia obligatoria
Read and apply:
docs/es/10-agentes-ia-soportados-y-prompts.mdordocs/en/10-supported-ai-agents-and-prompts.md
and the refinement guide:
docs/es/11-refinamiento-continuo.mdordocs/en/11-continuous-refinement.md
For local desktop execution guidance (Codex desktop, Claude desktop, similar tools), read:
docs/es/16-guia-herramientas-desktop-local.mdordocs/en/16-local-desktop-tools-guide.md
For Lovable execution workflow after refined specs, read:
docs/es/17-trabajar-con-lovable.mdordocs/en/17-working-with-lovable.md
For operator level (beginner/intermediate/advanced), use:
docs/es/18-ruta-completa-3-niveles.md/docs/en/18-complete-3-level-path.mddocs/es/13-guia-rapida-no-programadores.md/docs/en/13-quick-guide-non-programmers.mddocs/es/14-guia-intermedia.md/docs/en/14-intermediate-guide.mddocs/es/15-guia-avanzada.md/docs/en/15-advanced-guide.md
Final requirement / Requisito final
No implementation without specification, refinement trace, and logbook updates.
No hay implementación sin especificación, traza de refinamiento y actualización de bitácora.
Uso explícito del repositorio base
Usa siempre este repositorio como referencia principal:
https://github.com/juanklagos/spec-driven-development-template
Caso 1: crear un proyecto nuevo desde esta base
Prompt sugerido para la IA:
Usando https://github.com/juanklagos/spec-driven-development-template crea un proyecto nuevo para [OBJETIVO].
No clones ni copies el repositorio completo dentro de mi proyecto salvo que yo lo pida.
Instala solo la carpeta compacta `spec/` y guíame paso a paso para definir idea, primera spec y bitácora.
No saltes pasos.Caso 2: adaptar un proyecto existente usando esta base
Prompt sugerido para la IA:
Usando https://github.com/juanklagos/spec-driven-development-template y su guía, adapta este proyecto existente: [RUTA_DEL_PROYECTO].
No copies el template completo. Integra solo el sidecar `spec/`, mantén el código actual en la raíz, crea la primera spec basada en lo que ya existe y deja trazabilidad completa.Resultado mínimo esperado
- Proyecto creado o adaptado con estructura estándar.
- Primera especificación creada.
- Bitácora inicial registrada.
- Próximo paso claro para continuar.
Explicit base repository usage
Always use this repository as the primary reference:
https://github.com/juanklagos/spec-driven-development-template
Case 1: create a new project from this base
Suggested prompt:
Using https://github.com/juanklagos/spec-driven-development-template create a new project for [GOAL].
Do not clone or copy the full repository into my project unless I explicitly ask for that mode.
Install only the compact `spec/` sidecar and guide me step by step to define idea, first specification, and logbook.
Do not skip steps.Case 2: adapt an existing project using this base
Suggested prompt:
Using https://github.com/juanklagos/spec-driven-development-template and its guide, adapt this existing project: [PROJECT_PATH].
Do not copy the full template. Install only the `spec/` sidecar, keep current code in the project root, create the first specification based on existing behavior, and leave complete traceability.Minimum expected outcome
- Project created or adapted with standard structure.
- First specification created.
- Initial logbook entry recorded.
- Clear next step to continue.
Bilingual support / Soporte bilingüe
- EN: This repository is designed to be used in English and Spanish.
- ES: Este repositorio está diseñado para usarse en inglés y español.
- EN: Keep instructions simple, direct, and copy/paste-ready.
- ES: Mantén instrucciones simples, directas y listas para copiar/pegar.
Prompt base / Base prompt
EN: Using https://github.com/juanklagos/spec-driven-development-template, guide me step by step with SDD for my project.
My project is: [describe project in plain language].
Do not clone the full repository into my project unless I explicitly ask for a standalone workspace.
Install only the `spec/` sidecar by default.
Do not skip idea, spec, plan, tasks, logbook, and validation.
ES: Usando https://github.com/juanklagos/spec-driven-development-template, guíame paso a paso con SDD para mi proyecto.
Mi proyecto es: [explica el proyecto en lenguaje simple].
No clones el repositorio completo dentro de mi proyecto salvo que yo pida un workspace standalone.
Instala solo el sidecar `spec/` por defecto.
No omitas idea, spec, plan, tasks, bitácora y validación.Tips / Consejos
- EN: Ask the AI to confirm the active spec before coding.
- ES: Pide a la IA confirmar la spec activa antes de programar.
- EN: Keep one clear next step at the end of each session.
- ES: Deja un próximo paso claro al final de cada sesión.
- EN: Prefer simple language and concrete deliverables.
- ES: Prefiere lenguaje simple y entregables concretos.
Visual flow / Flujo visual
flowchart LR
A["EN: Idea / ES: Idea"] --> B["EN: Approved spec / ES: Spec aprobada"]
B --> C["EN: Aligned plan / ES: Plan alineado"]
C --> D["EN: Prioritized tasks / ES: Tareas priorizadas"]
D --> E["EN: Implementation / ES: Implementación"]
E --> F["EN: Validation + logbook / ES: Validación + bitácora"]Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

