--- name: architecture-diagram description: "Draw a polished architecture or repo-map diagram as a hand-written SVG a README can embed: dark grid card, colour per kind of component, arrows behind boxes, a legend outside every boundary. Use when asked for a README diagram, a prettier picture than GitHub's Mermaid, how the repos or services fit together, or to redraw docs/img/*.svg. Not for a diagram inside docs/ pages, which is a Kroki fence (DIAGRAMS.md), nor a hand-drawn sketch (excalidraw)." --- # architecture-diagram Pattern from Cocoon-AI/architecture-diagram-generator@4b9087d (MIT; adapted, `LICENSE` beside this file). A README is read on GitHub, which renders no d2, PlantUML or Excalidraw and draws Mermaid plainly. So a README diagram is one hand-written SVG under `docs/img/`, shown with `

…

`. The SVG is its own source: no build step, no generator committed beside it. The reference is `docs/img/umbrella.svg`; read it before drawing. ## Steps 1. **Read the prose the diagram sits beside.** Draw only what it already says (DIAGRAMS.md), at most ~12 boxes. Name every box and arrow in the reader's words; each arrow carries one label. 2. **Lay out on paper first.** Pick `viewBox` (1000 wide; height to fit). Columns left to right in the direction things flow; give every box its x, y, w, h and every arrow its path before writing markup. Leave ≥ 40 px between boxes and ≥ 110 px between columns that carry a labelled arrow (11 px monospace is ~6.7 px a character). 3. **Write the SVG in this order** (document order is paint order): 1. `