一键导入
diagram-infra
Generate infrastructure diagrams using Python Diagrams library (mingrammer/diagrams).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate infrastructure diagrams using Python Diagrams library (mingrammer/diagrams).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Dashboard Screenshot Capture
Generate professional system architecture diagrams using Excalidraw. Expert-level system design visuals.
E2E/QA testing with agent-browser CLI for token-efficient browser automation
| name | diagram-infra |
| description | Generate infrastructure diagrams using Python Diagrams library (mingrammer/diagrams). |
| triggers | ["인프라 구성도","인프라 다이어그램","infrastructure diagram","infra diagram","배포 구성도","deployment diagram","cloud architecture","클라우드 아키텍처","docker 구성도","docker diagram"] |
MANDATORY: When this skill is triggered, you MUST use the Python diagrams library (mingrammer/diagrams) to generate infrastructure diagrams.
Do NOT use Excalidraw, Mermaid, or ASCII art for infra diagrams.
pip install diagrams
Requires Graphviz installed (brew install graphviz on macOS).
{name}_diagram.py) that produces a PNG/SVGdocs/ or infra/ directoryfrom diagrams import Diagram, Cluster, Edge
from diagrams.onprem.database import MySQL
from diagrams.onprem.queue import Kafka
from diagrams.onprem.monitoring import Prometheus, Grafana
from diagrams.onprem.network import Nginx
from diagrams.programming.framework import Spring
from diagrams.elastic.elasticsearch import Elasticsearch
from diagrams.onprem.container import Docker
Cluster to group related components (e.g., "Order Service", "Monitoring Stack")Edge with labels for protocols and data flow descriptionsdirection="LR" for horizontal, direction="TB" for verticalgraph_attr={"fontsize": "20", "bgcolor": "white"}with Diagram("E-Commerce Platform", show=False, direction="LR"):
with Cluster("API Layer"):
gateway = Nginx("API Gateway")
with Cluster("Services"):
order = Spring("Order Service")
payment = Spring("Payment Service")
with Cluster("Data"):
db = MySQL("MySQL")
queue = Kafka("Kafka")
gateway >> order >> db
order >> Edge(label="async") >> queue >> payment
If diagrams library cannot be installed or Graphviz is unavailable,
fall back to Excalidraw with infrastructure-style icons and layout.