Agent skill that turns natural language, code, Terraform/K8s, SQL, OpenAPI, AsyncAPI, Protobuf and GraphQL sources into editable, tested draw.io architecture diagrams: incremental sync, multi-view projection, drift diff, CI architecture tests, whiteboard derasterize, interactive HTML/PPTX/Mermaid exports.
Python agent-skillsarchitecturearchitecture-diagramasyncapibpmnc4-modelclaude-codediagramdiagrams-as-codedrawioflowchartgithub-actionsgraphqlimage-to-diagramkubernetesmcp-serverprotobufsysmlterraformuml
<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="drawio" version="26.0.0">
<diagram name="Microservices E-Commerce Architecture">
<mxGraphModel dx="1200" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1200" pageHeight="900" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<!-- Client Tier -->
<mxCell id="10" value="Client Tier" style="swimlane;startSize=30;fillColor=#dae8fc;strokeColor=#6c8ebf;rounded=1;html=1;fontSize=14;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="100" y="20" width="1000" height="100" as="geometry" />
</mxCell>
<mxCell id="11" value="Mobile App" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="10">
<mxGeometry x="80" y="40" width="140" height="50" as="geometry" />
</mxCell>
<mxCell id="12" value="Web App" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="10">
<mxGeometry x="430" y="40" width="140" height="50" as="geometry" />
</mxCell>
<mxCell id="13" value="Admin Panel" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="10">
<mxGeometry x="780" y="40" width="140" height="50" as="geometry" />
</mxCell>
<!-- API Gateway Tier -->
<mxCell id="20" value="API Gateway Tier" style="swimlane;startSize=30;fillColor=#ffe6cc;strokeColor=#d79b00;rounded=1;html=1;fontSize=14;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="100" y="200" width="1000" height="100" as="geometry" />
</mxCell>
<mxCell id="21" value="API Gateway
Auth + Rate Limit + Routing" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=12;" vertex="1" parent="20">
<mxGeometry x="350" y="35" width="300" height="55" as="geometry" />
</mxCell>
<!-- Services Tier -->
<mxCell id="30" value="Services Tier" style="swimlane;startSize=30;fillColor=#dae8fc;strokeColor=#6c8ebf;rounded=1;html=1;fontSize=14;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="100" y="380" width="1000" height="100" as="geometry" />
</mxCell>
<mxCell id="31" value="Auth Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="30">
<mxGeometry x="20" y="40" width="140" height="50" as="geometry" />
</mxCell>
<mxCell id="32" value="User Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="30">
<mxGeometry x="210" y="40" width="140" height="50" as="geometry" />
</mxCell>
<mxCell id="33" value="Order Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="30">
<mxGeometry x="430" y="40" width="140" height="50" as="geometry" />
</mxCell>
<mxCell id="34" value="Product Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="30">
<mxGeometry x="620" y="40" width="160" height="50" as="geometry" />
</mxCell>
<mxCell id="35" value="Payment Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="30">
<mxGeometry x="830" y="40" width="150" height="50" as="geometry" />
</mxCell>
<!-- Kafka Message Queue (centered between Services and Data) -->
<mxCell id="40" value="Kafka Message Queue" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=12;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="420" y="560" width="200" height="50" as="geometry" />
</mxCell>
<!-- Notification Service -->
<mxCell id="41" value="Notification Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="760" y="560" width="160" height="50" as="geometry" />
</mxCell>
<!-- Data Tier -->
<mxCell id="50" value="Data Tier" style="swimlane;startSize=30;fillColor=#d5e8d4;strokeColor=#82b366;rounded=1;html=1;fontSize=14;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="100" y="690" width="1000" height="120" as="geometry" />
</mxCell>
<mxCell id="51" value="User DB" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="50">
<mxGeometry x="50" y="35" width="120" height="70" as="geometry" />
</mxCell>
<mxCell id="52" value="Order DB" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="50">
<mxGeometry x="250" y="35" width="120" height="70" as="geometry" />
</mxCell>
<mxCell id="53" value="Product DB" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="50">
<mxGeometry x="450" y="35" width="120" height="70" as="geometry" />
</mxCell>
<mxCell id="54" value="Redis Cache" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="50">
<mxGeometry x="680" y="35" width="120" height="70" as="geometry" />
</mxCell>
<mxCell id="55" value="Stripe API" style="rounded=1;whiteSpace=wrap;html=1;dashed=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;" vertex="1" parent="50">
<mxGeometry x="860" y="45" width="120" height="50" as="geometry" />
</mxCell>
<!-- Edges: Clients to API Gateway -->
<mxCell id="60" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="11" target="21">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="61" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="12" target="21">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="62" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="13" target="21">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Edges: API Gateway to Services (distributed exit points) -->
<mxCell id="63" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.1;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="21" target="31">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="64" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.3;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="21" target="32">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="65" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="21" target="33">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="66" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.7;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="21" target="34">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="67" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.9;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="21" target="35">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Edges: Order Service and Payment Service to Kafka -->
<mxCell id="70" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="33" target="40">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="71" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="35" target="40">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Edge: Kafka to Notification Service -->
<mxCell id="72" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="40" target="41">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<!-- Edges: Services to Databases -->
<!-- User Service to User DB -->
<mxCell id="80" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="32" target="51">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="310" y="510" />
<mxPoint x="210" y="510" />
</Array>
</mxGeometry>
</mxCell>
<!-- Order Service to Order DB -->
<mxCell id="81" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.25;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="33" target="52">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="565" y="640" />
<mxPoint x="410" y="640" />
</Array>
</mxGeometry>
</mxCell>
<!-- Product Service to Product DB -->
<mxCell id="82" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="34" target="53">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="800" y="640" />
<mxPoint x="610" y="640" />
</Array>
</mxGeometry>
</mxCell>
<!-- Auth Service to Redis Cache -->
<mxCell id="83" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="31" target="54">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="120" y="510" />
<mxPoint x="120" y="650" />
<mxPoint x="840" y="650" />
</Array>
</mxGeometry>
</mxCell>
<!-- Payment Service to Stripe API -->
<mxCell id="84" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="35" target="55">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1080" y="640" />
<mxPoint x="1020" y="640" />
</Array>
</mxGeometry>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>