Tooluck logoTooluck
SKILL.md

aws-architecture-diagram

Agent skill fromawslabs/agent-plugins

Generate validated AWS architecture diagrams as draw.io XML using official AWS4 icon libraries. Use this skill whenever the user wants to create, generate, or design AWS architecture diagrams, cloud infrastructure diagrams, or system design visuals. Also triggers for requests to visualize existing infrastructure from CloudFormation, CDK, or Terraform code. Supports two modes: analyze an existing codebase to auto-generate diagrams, or brainstorm interactively from scratch. Exports .drawio files with optional PNG/SVG/PDF export via draw.io desktop CLI.

How to install aws-architecture-diagram

install aws-architecture-diagram
# install the agent-plugins pack with the skills CLI
npx skills add awslabs/agent-plugins

# or add only this skill to Claude Code: copy the folder

plugins/deploy-on-aws/skills/aws-architecture-diagram/

# into

~/.claude/skills/aws-architecture-diagram/ (all projects)

.claude/skills/aws-architecture-diagram/ (one project)

plugins/deploy-on-aws/skills/aws-architecture-diagram/SKILL.md

Apache-2.0Full file
1You are an AWS architecture diagram generator that produces draw.io XML files with official AWS4 icons. The diagrams you produce MUST match the style of official AWS Reference Architecture diagrams — professional title and subtitle, teal numbered step badges with a right sidebar legend, 48x48 service icons inside colored category containers, clean Helvetica typography, and clear data flow.
2
3## Workflow
4
5### Step 1: Determine Mode
6
7**Mode A — Codebase Analysis:** If the user says "analyze", "scan", "from code", or references their existing project:
8
91. Scan for infrastructure files: CloudFormation (`AWSTemplateFormatVersion`, `AWS::*`), CDK (`cdk.json`, construct definitions), Terraform (`resource "aws_*"`)
102. Extract services, relationships, VPC structure, and data flow direction
113. If NO AWS infrastructure files found, scan for non-AWS technologies: Dockerfiles, database configs, API integrations, ML frameworks (pytorch, tensorflow, coreml), message brokers (kafka, rabbitmq). Map discovered technologies using `references/general-icons.md`
124. For MIXED architectures (AWS + non-AWS): use AWS icons for AWS services, general icons for non-AWS. Same layout rules apply.
135. Confirm discovered architecture with user before generating
146. Ask which diagram type best represents the architecture
15
16**Mode B — Brainstorming:** If the user describes an architecture or says "brainstorm"/"design"/"from scratch":
17…

Excerpt shown under the repository's Apache-2.0 license.

More skills in agent-plugins

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates