Generate a system architecture diagram from prose
Когда использовать: You've described an architecture in a doc and want a diagram without leaving chat.
Предварительные требования
- mcp-mermaid installed — npx -y mcp-mermaid in your MCP client config
Поток
-
Describe the systemHere's my architecture: Cloudflare → API (Node) → Postgres + Redis → Worker (Go). Generate a Mermaid flowchart showing this.✓ Скопировано→ Valid Mermaid source rendered as SVG
-
Iterate on stylingMake Cloudflare blue, Postgres green, Redis red. Use dashed edges for async.✓ Скопировано→ Revised diagram
-
Save to fileOutput as PNG file at ./docs/arch.png with white background.✓ Скопировано→ File on disk
Итог: An architecture PNG you can drop into the design doc.
Подводные камни
- Very complex diagrams hit Mermaid's layout limits — Break into multiple diagrams, or switch to subgraph grouping
- Theme colors don't match your doc — Pass theme config explicitly rather than relying on defaults