Specs — spec-driven development for GitFactory¶
The layout of a spec package, the
/specify→/implementworkflow, and the rules every spec follows.
This directory holds the persistent, versioned specifications that drive every non-trivial change in the codebase — the AO-SDLC spec-kit layer merged from law-ai (ADR-022, golden rule #11). See docs/AO-SDLC.md for the full loop.
Layout¶
specs/
├── _template/ # Copy this to start a new spec
│ ├── spec.md # WHAT + WHY (requirements, NFRs, acceptance criteria)
│ ├── plan.md # HOW (architecture, tech choices, risks)
│ └── tasks.md # Granular, agent-assignable tasks with acceptance tests
└── NNN-feature-slug/ # One directory per feature/epic, NNN = zero-padded id
Workflow¶
cp -r specs/_template specs/001-my-feature- Run
/specify→ fillspec.md(claims matchingBL-*items from BACKLOG.md). - Run
/clarify→ resolve open questions inline. - Run
/plan→ fillplan.md. - Run
/tasks→ filltasks.md. - Open PR. CI runs tools/spec_validator.py — every requirement in
spec.mdmust map to at least one task intasks.md. - Run
/implementon tasks, one at a time; referencespecs/NNN-...in commits/PR descriptions.
Rules¶
- Specs are code: review them in PRs, never edit historical specs in-place after merge — open an amendment spec instead.
- Every spec MUST satisfy the golden rules in AGENTS.md.
- One paragraph per line (the
markdown-onelineCI check applies here too; fix withpython3 tools/unwrap-prose.py --write). - Keep specs concrete and free of marketing language — agents load them as context.