Drawio aws
Skill NicolaSabino/drawio-aws-arch-generator/skills/drawio-aws
Use this skill whenever the user wants to create, generate, or produce an AWS architecture diagram in draw.io format. Trigger on phrases like "crea un drawio", "genera il diagramma", "draw this architecture", "make a draw.io for my AWS setup", or any description of AWS services that implies a diagram should be produced. Use even if the user doesn't say "draw.io" explicitly — if they describe an AWS architecture and want a diagram, this skill applies.From its SKILL.md
npx -y skills add NicolaSabino/drawio-aws-arch-generator --skill drawio-awsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.0 KB, as published. Nobody here has run it
drawio-aws
Generate visually consistent AWS architecture diagrams as .drawio files from a
free-text description. Uses official AWS icons (mxgraph.aws4 stencil pack).
Prerequisites: Python 3.9+, draw.io desktop with the official AWS icon pack installed.
Visual rules (enforced by script)
| Rule | Value |
|---|---|
| Icon size | 50 × 50 px |
| Icon set | Official AWS stencil pack (mxgraph.aws4.*) |
| Arrow color | Black (#000000), orthogonal |
| Layout | Left → Right, column width auto-sized to the widest label in it |
| Title | Centered at top, 18px bold |
| Naming | kebab-case enforced for id (error on violation) |
| Groups | VPC / Region / AZ as draw.io containers |
Keep labels short. The layout engine sizes node columns to fit the
widest label automatically, but it does not reserve extra room for
edge labels — two long edge labels near the same node can still collide
(this is what the mandatory review step in Step 3 catches). Prefer short
verbs/phrases (invoke, put_item, GET /path) for edge labels; put
longer explanations in the accompanying markdown doc instead of on the
diagram.
Workflow
User text → Step 1: produce JSON → save as <title>.json
→ Step 2: run script → produces <title>.drawio
→ Step 3: visual review → fix overlaps → re-render until clean
Step 1 — Produce intermediate JSON
Read the user's architecture description and produce the following JSON.
Save it as <title>.json in the user's working directory.
Naming rules:
titleand allidfields must be kebab-case:lambda-get-user✅LambdaFn❌- Node ids must be descriptive:
rds-postgres-dbnot justrds nodes[].labelis optional — free-text display label (e.g."GetUser (Lambda) - reads profile"). If omitted, the kebab-caseidis shown instead. Uselabelwhenever you want a human-readable caption; the script sizes column spacing to fit whatever label you give it, so long labels don't need manual layout fixes.- If unsure of a service key, read
references/aws-shapes.md
{
"title": "my-aws-architecture",
"nodes": [
{ "id": "api-gateway-main", "service": "api-gateway", "label": "API Gateway" },
{ "id": "lambda-get-user", "service": "lambda", "label": "GetUser (Lambda)" },
{ "id": "rds-postgres-db", "service": "rds" }
],
"edges": [
{ "from": "api-gateway-main", "to": "lambda-get-user" },
{ "from": "lambda-get-user", "to": "rds-postgres-db", "label": "SELECT" }
],
"groups": [
{
"id": "vpc-main",
"type": "vpc",
"label": "vpc-main",
"contains": ["lambda-get-user", "rds-postgres-db"]
}
]
}
groups is optional. edges[].label is optional (omit for unlabelled arrows).
groups[].type must be one of: vpc, region, availability-zone, generic.
Step 2 — Run the script
python /path/to/skills/drawio-aws/scripts/generate_drawio.py <title>.json
The script outputs <title>.drawio in the same directory as the input JSON.
Step 3 — Visual review (mandatory)
Do not hand the .drawio file to the user without doing this first. The
script gets column/row placement right, but it cannot know how a specific
edge label will visually land next to a neighboring node — that's a
rendering detail only visible once the diagram is actually drawn. Skipping
this step is the single biggest cause of diagrams that look fine in the
JSON but have overlapping text once opened.
- Render to PNG with the draw.io CLI (do not use
-e/--embed-diagramfor this throwaway preview — embedded-XML PNGs can fail to load as images):
Ifdrawio -x -f png -b 10 -o /tmp/<title>-preview.png <title>.drawiodrawioisn't onPATH, fall back to the platform path (macOS:/Applications/draw.io.app/Contents/MacOS/draw.io). - Look at the PNG with the Read tool. Check specifically for:
- Edge label text overlapping a node's label or another edge's label (most common where two+ edges meet at the same node)
- Any icon touching or overlapping another icon or a group border
- Text running outside its group container
- If you find overlaps, fix the cause, not just the symptom:
- Overlapping edge labels at a shared node → shorten the labels, or
reorder/split the JSON edges so they don't converge as tightly, or
add explicit
pointswaypoints in the generated XML to route one of them around - Node label colliding with a neighboring icon → shorten
label, the script already sizes columns to the label you gave it, so a collision here usually means the label is genuinely too long for a diagram and belongs in the doc instead - Group border clipping a label → widen manually in the XML, or reduce nesting
- Overlapping edge labels at a shared node → shorten the labels, or
reorder/split the JSON edges so they don't converge as tightly, or
add explicit
- Re-render and re-check after each fix. Stop when the PNG is clean; don't iterate more than ~3 times — if it's still messy, simplify the diagram (fewer nodes per row, shorter labels) rather than fighting the layout.
- Delete the preview PNG once the diagram is clean — it was only a
throwaway review artifact, the
.drawiofile is the deliverable.
Tell the user the output path when done.
Service keys
Most common services (full list in references/aws-shapes.md):
lambda api-gateway s3 rds dynamodb ec2 ecs eks fargate
cloudfront route53 alb nlb waf cognito iam secrets-manager
sqs sns eventbridge step-functions kinesis cloudwatch elasticache