aws-architecture-diagram
Skill8 starsChanged 43 days agoApache-2.0View on GitHub
Generate validated AWS architecture diagrams as draw.io XML using official AWS4 icon libraries. Triggers when user wants to create, generate, or design AWS architecture diagrams, cloud infrastructure diagrams, or system design visuals. Supports codebase analysis and brainstorming modes.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- SumonMSelim/skillstheir own version, first seen Nov 1, 2026
- aws-samples/sample-architecture-diagram-mcp-servertheir own version, first seen Nov 1, 2026
- awslabs/agent-pluginstheir own version, first seen Oct 13, 2026
- akzedevops/aws-architecture-diagram-skilltheir own version, first seen Oct 13, 2026
- vidanov/aws-architecture-diagram-skilltheir own version, first seen Jul 22, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- awslabs/agent-plugins★ 918same name
- vidanov/aws-architecture-diagram-skill★ 157same name
- aws-samples/sample-architecture-diagram-mcp-server★ 11same name
- akzedevops/aws-architecture-diagram-skill★ 2same name
- SumonMSelim/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- AGENTSAGENTS.md
- amazon-bedrockSkill
- amazon-location-serviceSkill
- amazon-polly-generativeSkill
- aws-diagram-htmlSkill
- aws-diagram-pngSkill
- aws-serverless-patternsSkill
- cdk-infrastructure-patternsSkill
- cognito-email-migrationSkill
- cognito-passkey-authSkill
- deploy-on-awsSkill
- email-template-renderingSkill
- mcp-tool-discoverySkill
- personal-rules-managementSkill
- react-frontend-patternsSkill
- reinvent-stack-toolkitSkill
- testing-patternsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 5 are distinctive, and 11 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Use this skill (aws-architecture-diagram) when the user wants editable draw.io XML they can refine in app.diagrams.net before exporting
- Very specific: line 14
Use aws-diagram-png (the awsdac-based skill) when the user wants a PNG image directly for slides, docs, or PRs
- Very specific: line 15
Use aws-diagram-html when the user wants a polished, self-contained HTML page (inline SVG, official icons, verified non-overlapping lines) …
- Distinctive: line 30
If user says "analyze", "scan", "from code", or references their existing project:
- Distinctive: line 39
If user describes an architecture or says "brainstorm"/"design"/"from scratch":
- Distinctive: line 41
Ask 3-5 focused questions (purpose, services, scale, security, traffic pattern)
- Very specific: line 47
Font: ALL text MUST use fontFamily=Helvetica.
- Very specific: line 50
Dark mode: ALL structural elements use light-dark() fills with fillStyle=auto.
- Very specific: line 51
Region groups: Use container=0 (decoration-only)
- Very specific: line 52
Group fontColor: MUST match the group's strokeColor (VPC: #8C4FFF, Public subnet: #248814, Private subnet: #147EBA, Region: #00A4A6)
- Very specific: line 73
Use mxgraph.aws4.* namespace with resourceIcon;resIcon= for service icons
- Very specific: line 74
Use descriptive cell IDs: vpc-1, lambda-orders, s3-assets
- Distinctive: line 76
NEVER use compressed/base64 diagram content
- Very specific: line 77
NEVER use double hyphens (--) inside XML comments
- Very specific: line 90
Create docs/ directory if needed
- Distinctive: line 93
Only include services the user mentions or that are core to the data flow — do NOT add cross-cutting concerns (IAM, CloudWatch, CloudTrail, …
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AWS Architecture Diagram Generator
Generate draw.io XML files with official AWS4 icons matching the style of AWS Reference Architecture diagrams.
When to Use This Skill vs. aws-diagram-png
- Use this skill (
aws-architecture-diagram) when the user wants editable draw.io XML they can refine in app.diagrams.net before exporting - Use
aws-diagram-png(the awsdac-based skill) when the user wants a PNG image directly for slides, docs, or PRs - Use
aws-diagram-htmlwhen the user wants a polished, self-contained HTML page (inline SVG, official icons, verified non-overlapping lines) to open in a browser
The two skills use different AWS icon libraries:
| Skill | Icon namespace | Output |
aws-architecture-diagram (this) | mxgraph.aws4.* (draw.io's bundled AWS4 set) | .drawio XML |
aws-diagram-png | awsdac's definition-for-aws-icons-light.yaml | .png image |
Resource type names differ between the two — this skill uses draw.io's resIcon=mxgraph.aws4.<service>, while aws-diagram-png uses CloudFormation-style AWS::<Service>::<Resource> with awsdac-specific fallback rules. Don't mix the two.
Modes
Mode A — Codebase Analysis
If user says "analyze", "scan", "from code", or references their existing project:
- Scan for infrastructure files: CloudFormation, CDK (
cdk.json), Terraform (resource "aws_*") - Extract services, relationships, VPC structure, and data flow
- For non-AWS technologies (Docker, databases, ML frameworks), map to general icons
- Confirm discovered architecture with user before generating
Mode B — Brainstorming
If user describes an architecture or says "brainstorm"/"design"/"from scratch":
- Ask 3-5 focused questions (purpose, services, scale, security, traffic pattern)
- Propose the architecture with service recommendations and data flow
- Iterate if needed, then generate
Style Rules
- Font: ALL text MUST use
fontFamily=Helvetica; - Icon size: 48x48 inside 120x120 containers with category tint color
- Spacing: 180px horizontal, 120px vertical between service group containers
- Dark mode: ALL structural elements use
light-dark()fills withfillStyle=auto; - Region groups: Use
container=0(decoration-only) - Group fontColor: MUST match the group's
strokeColor(VPC:#8C4FFF, Public subnet:#248814, Private subnet:#147EBA, Region:#00A4A6) - Step badges: Teal
#007CBD28x28 badges near arrow sources - Legend: Right sidebar for 7+ services (unless user opts out)
- Sketch mode: OFF by default, only when user explicitly requests
XML Structure
<mxfile>
<diagram name="..." id="...">
<mxGraphModel dx="..." dy="..." grid="0" ...>
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<!-- diagram elements -->
</root>
</mxGraphModel>
</diagram>
</mxfile>- Use
mxgraph.aws4.*namespace withresourceIcon;resIcon=for service icons - Use descriptive cell IDs:
vpc-1,lambda-orders,s3-assets - Edges connect to service icons, not containers
- NEVER use compressed/base64 diagram content
- NEVER use double hyphens (
--) inside XML comments
Diagram Types
- Serverless: API Gateway, Lambda, DynamoDB, S3, Step Functions, EventBridge
- VPC/Network: VPC, subnets, security groups, NAT gateways, load balancers
- Container: ECS/EKS clusters, ECR, Fargate, load balancing
- Multi-Region: Multiple regions with replication, Route 53, Global Accelerator
- Data Flow/Analytics: Kinesis, S3, Glue, Athena, Redshift, QuickSight
- Hybrid: On-premises + AWS with Direct Connect, VPN, Transit Gateway
Output
- Create
docs/directory if needed - Save diagram to
./docs/<descriptive-name>.drawio - Present: file path, diagram type, services included, validation status
- Only include services the user mentions or that are core to the data flow — do NOT add cross-cutting concerns (IAM, CloudWatch, CloudTrail, KMS) unless asked
Prerequisites
defusedxml>=0.7.1for XML validation:pip3 install defusedxml- draw.io desktop (optional, for PNG/SVG/PDF export)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

