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