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