Feature specification artifacts live here. Subdirectories hold architecture, ADRs, contracts, and phase artifacts produced by architect and other agents.
docs/specs/
└── <epic>-<feature-slug>/
├── architecture.md # System design — 10 sections, Mermaid diagrams
├── contracts/
│ ├── openapi.yaml # API contract
│ ├── events.md # Event schema
│ ├── schema.sql # Database schema
│ └── seed-data.sql # Test data seeds
└── threat-model.md # STRIDE threat model
The story file in docs/stories/ is the spec. Architecture artifacts here are produced by the @architect agent in Phase 2 after the story is approved.
- The
@spec-kitagent writes story files directly todocs/stories/— not here. - Architecture docs live here after ARCHITECT phase.
- Spec-Kit is skipped for
spike/*andchore/*branches andtype:bugstories. - ADRs live in
docs/architecture/— usedocs/architecture/adr-template.md.