Skip to content
prod e051e98
Browse

Visuals & diagrams

System docs · visuals

Binding rule: sections that convey a process, structure/relationship, or change over time must carry a diagram — see Writing style → Visuals.

ComponentUse when
DiagramFigureFrame + caption for inline SVG
RuntimeOwnershipSingle runtime / request authority
PackageBoundaryWhat talks to what
StageFlowHorizontal pipeline
LayerStackTiers / layers
StepStackVertical numbered procedure
TimelinePhases over time
PatternPairBefore ↔ after
ContentDecisionTreeBranching classification

Import from ~/components/diagrams/… in .mdx only. Styles: .zaj-diagram-* in src/styles/diagrams.css.

Default edge style: orthogonal (stepAfter in astro.config.mjs). Use for arbitrary graphs when no bespoke layout is needed.

PageVisuals used
Build an MCP server2× Mermaid + <FileTree>
Content architectureMermaid reader-moment graph
System docs homeContentDecisionTree component

Add under src/components/diagrams/ when:

  • The same editorial layout will appear on 3+ pages
  • Mermaid cannot hit layout/styling requirements
  • You need token-themed, accessible, responsive SVG (never screenshots)

Run the visual QC gate in AGENTS.md before merge.