This directory is the source of truth for documentation in this repository.
/docs
├── README.md
├── AGENTS.md
├── PRD.md
├── system-design.md
├── ai/
│ ├── README.md
│ └── {area}/...
├── templates/
│ ├── adr.md
│ ├── feature-spec.md
│ ├── PRD.md
│ ├── system-design.md
│ └── ...
├── rules/
│ ├── AGENTS.md
│ ├── README.md
│ ├── common/
│ │ ├── AGENTS.md
│ │ ├── README.md
│ │ ├── coding-style.md
│ │ ├── security.md
│ │ ├── git-workflow.md
│ │ ├── patterns.md
│ │ ├── testing.md
│ │ └── ...
│ ├── typescript/
│ │ └── ...
│ ├── rust/
│ │ └── ...
│ └── {framework}/
│ └── ...
├── adrs/
│ ├── AGENTS.md
│ ├── README.md
│ ├── 0001-initial-architecture-decision.md
│ └── ...
├── specs/
│ ├── AGENTS.md
│ ├── README.md
│ ├── 0001-user-authentication/
│ │ ├── spec.md
│ │ └── ...
│ └── ...
├── knowledge/
│ ├── AGENTS.md
│ ├── README.md
│ └── ...
├── guides/
│ ├── AGENTS.md
│ ├── README.md
│ └── ...
├── reference/
│ ├── AGENTS.md
│ ├── README.md
│ ├── sdl-phases.md
│ └── ...
└── ...
adrs/(Required) — Architecture Decision Records. System-wide decisions that affect multiple features (e.g. framework choices, infrastructure, protocols). Seedocs/adrs/README.mdfor structure and conventions.specs/(Required) — Feature specifications. One folder per feature.spec.mdis required as the entry point. Seedocs/specs/README.mdfor structure and conventions.rules/(Recommended) — Coding rules, standards, conventions, and practices: code style, git workflow, testing, development practices, etc. Seedocs/rules/README.mdfor structure and conventions.PRD.md(Recommended) — Product requirements: problem, success criteria, user needs, scope. Upstream of system design and feature specs.system-design.md(Recommended) — High-level system architecture: tech stack, service connections, infrastructure layout, external dependencies, etc.ai/(Recommended) — Hierarchical, AI-navigable docs that point to the right source files for each topic. Seecmk:codebase-docsfor the structure and conventions.knowledge/(Recommended) — Accumulated knowledge: gotchas, non-obvious findings, hard-won insights. One file per topic. Seedocs/knowledge/README.mdfor structure and conventions.guides/(Recommended) — Operational and onboarding docs, team decides what's needed (e.g. onboarding.md, local-dev.md, deployment.md).reference/(Recommended) — Cross-cutting reference docs shared across phases and teams. Seedocs/reference/README.mdfor structure and conventions.AGENTS.md— Agent navigation instructions for this docs subtree.
- PRD template:
docs/templates/PRD.md - System design template:
docs/templates/system-design.md - Feature spec template:
docs/templates/feature-spec.md - ADR template:
docs/templates/adr.md
Note: Engineers can add more files or folders as needed. This structure is a baseline, not a restriction.