Generate production-quality SVG+PNG technical diagrams from natural language. Use when user wants to create any technical diagram — architecture, data flow, flowchart, sequence, agent/memory, UML, mind map, or concept map — and export as SVG+PNG. Triggers (EN): "generate diagram", "draw diagram", "create chart", "visualize", "architecture diagram", "flowchart", "sequence diagram", "data flow", "tech graph". Triggers (中文): "画图", "帮我画", "生成图", "做个图", "架构图", "流程图", "可视化", "出图", "技术图". Also triggers on any system/flow description the user wants illustrated, especially for AI/Agent systems (RAG, Agentic Search, Mem0, Multi-Agent, Tool Call).
Generate production-quality SVG+PNG technical diagrams from natural language descriptions.
Nodes = services/components. Group into horizontal layers (top→bottom or left→right).
<rect> containers group related services0 0 960 600 or 0 0 960 800Label every arrow with data type ("embeddings", "query", "context"). Wider arrows for primary paths.
Top-to-bottom preferred. Diamond = decision, rounded rect = process, parallelogram = I/O.
5 layers: Input → Agent Core (LLM) → Memory → Tools → Output
store(), retrieve(), forget(), consolidate()#dcfce7 fill + ✓; unsupported: #f9fafb fillcx=480, cy=280| Concept | Shape |
|---|---|
| User / Human | Circle head + body path |
| LLM / Model | Rounded rect, double border, ⚡ |
| Agent | Hexagon or double-border rect |
| Memory (short-term) | Dashed-border rounded rect |
| Memory (long-term) | Solid cylinder |
| Vector Store | Cylinder with grid lines |
| Graph DB | 3 overlapping circles |
| Tool / Function | Rect with ⚙ icon |
| API Gateway | Hexagon |
| Queue / Stream | Horizontal pipe/tube |
| Document | Folded-corner rect |
| Browser / UI | Rect with 3-dot titlebar |
| Decision | Diamond |
| Flow Type | Color | Stroke | Dash |
|---|---|---|---|
| Primary data | #2563eb blue | 2px solid | none |
| Control/trigger | #ea580c orange | 1.5px solid | none |
| Memory read | #059669 green | 1.5px solid | none |
| Memory write | #059669 green | 1.5px | 5,3 |
| Async/event | #6b7280 gray | 1.5px | 4,2 |
| Embedding | #7c3aed purple | 1px solid | none |
| Feedback/loop | #7c3aed purple | 1.5px curved | none |
Always include a legend when 2+ arrow types are used.
references/styles.md for exact colorsreferences/icons.md for known productspython3 scripts/svg2png.py <file.svg> or rsvg-convertEstimate complexity:
Generation method:
Python method (recommended for complex SVGs):
python3 << 'EOF'
svg_content = '''<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 600">
...complete SVG here...
</svg>'''
with open('/path/to/output.svg', 'w') as f:
f.write(svg_content)
print("Generated output.svg")
EOF
0 0 960 600 default; 0 0 960 800 tall; 0 0 1200 600 wide<style>font-family: system-ui, Helvetica, sans-serif</style> — no external @import<defs>: arrow markers, gradients, filters, clip paths<marker> with markerEnd, sized markerWidth="10" markerHeight="7"<feDropShadow> sparinglyM x1,y1 C cx1,cy1 cx2,cy2 x2,y2 cubic bezierRAG Pipeline: Query → Embed → VectorSearch → Retrieve → LLM → Response Agentic RAG: Query → Embed → VectorSearch → Agent loop (Tool use) → LLM → Response Agentic Search: Query → Planner → [Search / Calculator / Code] → Synthesizer → Response Mem0 Memory: Input → Memory Manager → [Write: VectorDB + GraphDB] → [Read: Retrieve+Rank] → Context Multi-Agent: Orchestrator → [SubAgent A / B / C] → Aggregator → Output Tool Call Flow: LLM → Tool Selector → Tool Execution → Parser → LLM (loop)
| Problem | Fix |
|---|---|
| PNG blank/black | Remove @import url() — use system fonts only |
| rsvg-convert not found | Use python3 scripts/svg2png.py fallback |
| SVG cut off at bottom | Increase ViewBox height |
| Text overflowing | text-anchor="middle" + shorten label |
| Marker undefined | Ensure <marker id="..."> in <defs> |
| Arrow crossing nodes | Use orthogonal routing or bezier detour |
./[derived-name].svg and ./[derived-name].png--output /path/| # | Name | Background | Best For |
|---|---|---|---|
| 1 | Flat Icon (default) | White | Blogs, docs, slides |
| 2 | Dark Terminal | #0f0f1a | GitHub, dev articles |
| 3 | Blueprint | #0a1628 | Architecture docs |
| 4 | Notion Clean | White | Notion, wikis |
| 5 | Glassmorphism | #0d1117 gradient | Product sites, keynotes |
| 6 | Claude Official | #f8f6f3 warm cream | Anthropic-style diagrams |
| 7 | OpenAI Official | Pure white | OpenAI-style diagrams |
Load references/styles.md for exact color tokens and patterns.