SKILL.md--- name: aws-drawio-architecture-diagrams description: Creates professional AWS architecture diagrams in draw.io XML format (.drawio files) using official AWS Architecture Icons (aws4 library). Use when the user asks for AWS diagrams, VPC layouts, multi-tier architectures, serverless designs, network topology, or draw.io exports involving Lambda, EC2, RDS, or other AWS services. allowed-tools: Read, Write, Bash --- # AWS Architecture Diagram Creation with Draw.io ## Overview Creates pixel-perfect AWS architecture diagrams in draw.io XML format using official AWS4 shape library. Generates production-ready `.drawio` files for [diagrams.net](https://app.diagrams.net/?libs=aws4). ## When to Use - AWS cloud architecture diagrams (VPC, subnets, services) - Multi-tier application architectures on AWS - Serverless designs (Lambda, API Gateway, DynamoDB) - Network topology diagrams with security groups - Infrastructure documentation for Well-Architected reviews ## Instructions ### File Structure Every `.drawio` file follows this XML structure: ```xml <mxfile host="app.diagrams.net" agent="Claude" version="24.7.17"> <diagram id="aws-arch-1" name="AWS Architecture"> <mxGraphModel dx="1434" dy="759" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0"> <root> <mxCell id="0" /> <mxCell id="1" parent="0" /> <!-- AWS shapes and connectors --> </root> </mxGraphModel> </diagram> </mxfile> ``` **Key rules:** - IDs "0" and "1" are reserved for root cells - Use sequential integer IDs starting from "2" - Landscape orientation (`pageWidth="1169" pageHeight="827"`) - All coordinates positive and aligned to grid (multiples of 10) ### AWS4 Group Containers Groups use `container=1` with child shapes referencing via `parent="groupId"`. **AWS Cloud (top-level boundary):** ```xml <mxCell id="2" value="AWS Cloud" style="points=[[0,0],[0.25,0],[0.5,0],[0.75,0],[1,0],[1,0.25],[1,0.5],[1,0.75],[1,1],[0.75,1],[0.5,1],[0.25,1],[0,1],[0,0.75],[0,0.5],[0,0.25]];outlineConnect=0;gradientColor=none;html=1;whiteSpace=wrap;fontSize=12;fontStyle=0;shape=mxgraph.aws4.group;grIcon=mxgraph.aws4.group_aws_cloud_alt;strokeColor=#232F3E;fillColor=none;verticalAlign=top;align=left;spacingLeft=30;fontColor=#232F3E;dashed=0;labelBackgroundColor=none;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;" vertex="1" parent="1"> <mxGeometry x="100" y="40" width="1000" height="700" as="geometry" /> </mxCell> ``` **Region:** ```xml <mxCell id="3" value="us-east-1" style="...grIcon=mxgraph.aws4.group_region;strokeColor=#00A4A6;fontColor=#147EBA;dashed=1;..." vertex="1" parent="2"> <mxGeometry x="20" y="40" width="960" height="640" as="geometry" /> </mxCell> ``` **VPC:** ```xml <mxCell id="4" value="VPC (10.0.0.0/16)" style="...grIcon=mxgraph.aws4.group_vpc;strokeColor=#8C4FFF;fontColor=#AAB7B8;.