Docs As Code

Authoring conventions for documentation as versioned text artifacts - the docs-as-code practice: Mermaid diagrams (sequenceDiagram for interaction flows, erDiagram for schema sketches), decision records (ADR - Nygard + MADR 4), and C4 model views (context/container). Load before writing or reviewing ANY documentation artifact of these types, whatever the subject - a sequence/ER/C4 diagram in Markdown, an ADR or decision-log entry, or a diagram-tooling choice (Mermaid vs DBML vs Structurizr). Routes per doc type to references/. Triggers on sequence diagram, ER diagram, entity relationship, ADR, decision record, decision log, C4, container diagram, context diagram, docs-as-code - and on mermaid for those diagram types (other Mermaid forms get only the generic ground rules here). NOT the repo's committed architecture capture (project-architecture-analyzer owns <docs-path>/architecture/), not Markdown prose style (markdown-style), and not DB design itself (database-conventions).

envoydev 768a8c1 5 files · 21.3 KB Updated

File contents

envoydev/claude-stack/tree/main/stack/skills/docs-as-code commit 768a8c159a

Frequently asked questions

npx skillmds@latest add envoydev/docs-as-code