agentleFS
juanklagosjuanklagos/spec-driven-development-template/CLAUDE.md

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…

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
  1. Distinctive:

    No code before approved spec and consistent plan.

    line 8
  2. Distinctive:

    No hay código sin spec aprobada y plan consistente.

    line 9
  3. Very specific:

    If the target project lives inside this template, keep it under www/.

    line 17
  4. Distinctive:

    Treat this repo as SDD starter template by default.

    line 22
  5. Distinctive:

    Ask concise clarification when required data is missing.

    line 23
  6. Very specific:

    Keep changes traceable in specs/ and bitacora/.

    line 24
  7. Distinctive:

    Run validation scripts before closing.

    line 25
  8. Very specific:

    Every record includes a "when to revisit" section, and every rationale points at a source (commit, file:line, spec history, CHANGELOG, …

    line 30

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Claude Operating Rules for this Template

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 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:

  1. Treat this repo as SDD starter template by default.
  2. Ask concise clarification when required data is missing.
  3. Keep changes traceable in specs/ and bitacora/.
  4. 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.log line.
  • 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.