spec-driven-development-template
CLAUDE.md19 starsChanged 3 months agoMITView on GitHub
Canonical source: - template-context/core-instructions/AGENT_OPERATING_SYSTEM.md - sdd.policy.yaml Hard stop: - No code before approved spec and consistent plan. - No hay código sin spec aprobada y plan consistente. Execution workspace: - Inside THIS template repository, put runnable code under www/<project-name>/. - For a project that already exists somewhere else — the common case — install the compact spec/ sidecar in it and leave the code where it is. That is the recommended default workspace for real work. - Dentro de ESTA…
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- site/AGENTS.mdAGENTS.md
- site/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- llms.txtllms.txt
- sdd-serveSkill
- sdd-serveSkill
- sdd-workflowSkill
The file
We split this CLAUDE.md into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
No code before approved spec and consistent plan.
- Distinctive: line 9
No hay código sin spec aprobada y plan consistente.
- Very specific: line 17
If the target project lives inside this template, keep it under www/.
- Distinctive: line 22
Treat this repo as SDD starter template by default.
- Distinctive: line 23
Ask concise clarification when required data is missing.
- Very specific: line 24
Keep changes traceable in specs/ and bitacora/.
- Distinctive: line 25
Run validation scripts before closing.
- Very specific: line 30
Every record includes a "when to revisit" section, and every rationale points at a source (commit, file:line, spec history, CHANGELOG, …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
Claude Operating Rules for this Template
Canonical source:
template-context/core-instructions/AGENT_OPERATING_SYSTEM.mdsdd.policy.yaml
Hard stop:
- No code before approved spec and consistent plan.
- No hay código sin spec aprobada y plan consistente.
Execution workspace:
- Inside THIS template repository, put runnable code under
www/<project-name>/. - For a project that already exists somewhere else — the common case — install the compact
spec/sidecar in it and leave the code where it is. That is the recommended default workspace for real work. - Dentro de ESTA plantilla, el código ejecutable va en
www/<nombre-proyecto>/. - Para un proyecto que ya existe en otro sitio —el caso normal— instala el sidecar compacto
spec/y deja el código donde está. Ese es el espacio de trabajo recomendado por defecto para el trabajo real. - The user may choose another target path.
- If the target project lives inside this template, keep it under
www/. - For real external projects, install the compact
spec/sidecar and keep code in the project root. - Para proyectos reales externos, instala el sidecar compacto
spec/y mantén el código en la raíz del proyecto.
Behavior requirements:
- Treat this repo as SDD starter template by default.
- Ask concise clarification when required data is missing.
- Keep changes traceable in
specs/andbitacora/. - Run validation scripts before closing.
Decision log:
- Record a decision in
bitacora/decisiones/YYYY-MM-DD-<slug>.md(use/sdd:decision) when it chose between real alternatives, when it will be expensive to reverse, or when a future reader would ask "why is it like this?". - Registra una decisión cuando eligió entre alternativas reales, cuando revertirla será caro, o cuando alguien preguntaría después "¿por qué es así?".
- Every record includes a "when to revisit" section, and every rationale points at a source (commit,
file:line, spec history, CHANGELOG,idea/). Never invent rationale or dates.
Approval and record rule:
- Approval evidence records WHAT was approved, its scope, the document or proposal it was approved against, and the date. Never a transcription of the chat.
- La evidencia de aprobación registra QUÉ se aprobó, con qué alcance y contra qué documento, con la fecha. Nunca la transcripción del chat.
- "hazlo", "dale", "arranca" and the like are not evidence: they say nothing about what was approved.
- The same rule governs
bitacora/and the summary of each.sdd/user-consent.logline. - Correcting the wording of an existing record is legitimate; changing what was approved, by whom, or when is not.
Session close contract:
- objective
- active_spec
- changes
- validation
- risks
- decision_recorded
- next_step
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.

