Create homelab and network architecture diagrams from plain-English prompts by producing Mermaid-first artifacts that import cleanly into Excalidraw. Use for Docker host topology, service dependency maps, Cloudflare/public edge diagrams, and before/after infrastructure sketches.
Use text-first architecture diagrams that round-trip well: Mermaid source first, Excalidraw second.
.mmd file..md legend or assumptions file only when it materially helps.AGENTS.md, compose files, repo docs, and MCP/runtime inventory when available.scripts/validate_mermaid_excalidraw.py on any Mermaid file you create.flowchart or graph syntax.subgraph.sequenceDiagram, classDiagram, stateDiagram, erDiagram, journey, gantt, mindmap, timeline, pie, gitGraph, block-beta, packet-beta, sankey-beta, quadrantChart, and zenuml@{ ... }classDef, class, style, linkStyle, click, and HTML labels/tagsAlways produce:
docs/diagrams/docker-host-topology.mmd.If asked to write files, prefer:
docs/diagrams/<name>.mmddocs/diagrams/<name>.md for legend/notes only when helpfulNatural-language prompts are the default. Helpful details include:
Example:
references/excalidraw_mermaid_rules.md for the diagram playbook and example patterns.python scripts/validate_mermaid_excalidraw.py <file.mmd> when a Mermaid file is created.