agentsclimarketplace

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

Install
npx -y skills add NicolaSabino/drawio-aws-arch-generator --skill drawio-aws

Assembled 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)

RuleValue
Icon size50 × 50 px
Icon setOfficial AWS stencil pack (mxgraph.aws4.*)
Arrow colorBlack (#000000), orthogonal
LayoutLeft → Right, column width auto-sized to the widest label in it
TitleCentered at top, 18px bold
Namingkebab-case enforced for id (error on violation)
GroupsVPC / 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:

  • title and all id fields must be kebab-case: lambda-get-user ✅ LambdaFn ❌
  • Node ids must be descriptive: rds-postgres-db not just rds
  • nodes[].label is optional — free-text display label (e.g. "GetUser (Lambda) - reads profile"). If omitted, the kebab-case id is shown instead. Use label whenever 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.

  1. Render to PNG with the draw.io CLI (do not use -e/--embed-diagram for this throwaway preview — embedded-XML PNGs can fail to load as images):
    drawio -x -f png -b 10 -o /tmp/<title>-preview.png <title>.drawio
    
    If drawio isn't on PATH, fall back to the platform path (macOS: /Applications/draw.io.app/Contents/MacOS/draw.io).
  2. 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
  3. 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 points waypoints 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
  4. 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.
  5. Delete the preview PNG once the diagram is clean — it was only a throwaway review artifact, the .drawio file 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

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.