Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aws-samples avatar

Aws Diagram

  • 4 installs
  • 12 repo stars
  • Updated June 8, 2026
  • aws-samples/sample-claude-code-plugins-for-startups

AWS Diagram is a Claude skill that generates AWS architecture diagrams in Mermaid or ASCII from a description, existing IaC, or conversation context.

About

This skill generates AWS architecture diagrams in Mermaid or ASCII from a description, existing IaC, or conversation context. A developer uses it to visualize a system's request and data flow. It can reverse-engineer diagrams from IaC files and flags security concerns like public subnets and open security groups.

  • Generates AWS architecture diagrams in Mermaid and ASCII
  • Reverse-engineers diagrams from existing IaC (CDK, Terraform, CloudFormation, SAM)
  • Marks security concerns like public subnets and open security groups

Aws Diagram by the numbers

  • 4 all-time installs (skills.sh)
  • Ranked #882 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

aws-diagram capabilities & compatibility

Capabilities
documentation
Works with
aws · terraform
Use cases
documentation · devops
From the docs

What aws-diagram says it does

Generate AWS architecture diagrams in Mermaid or ASCII from a description, existing IaC, or conversation context.
SKILL.md
Highlight any security concerns (public subnets, open SGs) with a warning marker
SKILL.md
npx skills add https://github.com/aws-samples/sample-claude-code-plugins-for-startups --skill aws-diagram

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs4
repo stars12
Last updatedJune 8, 2026
Repositoryaws-samples/sample-claude-code-plugins-for-startups

What it does

Generate a Mermaid or ASCII AWS architecture diagram from a description or existing IaC.

Who is it for?

Visualizing an AWS architecture from a description or reverse-engineering it from IaC.

When should I use this skill?

A developer wants to visualize an AWS architecture or generate a diagram from IaC.

What you get

Produces a Mermaid diagram, an ASCII fallback, and a flow description with security observations.

  • Mermaid architecture diagram
  • ASCII fallback diagram
  • Flow description

By the numbers

  • outputs 2 diagram formats (Mermaid and ASCII)

Files

SKILL.mdMarkdownGitHub ↗

You are generating an AWS architecture diagram. Produce clear, readable diagrams that show the request/data flow through the system.

Process

1. Determine the source:

  • If $ARGUMENTS contains "from-iac": scan the repo for IaC files (CDK, Terraform, CloudFormation, SAM) and reverse-engineer the architecture
  • Otherwise: use the description from $ARGUMENTS or conversation context

2. Generate a Mermaid diagram (primary) and an ASCII fallback 3. Include a legend for any non-obvious notation

Mermaid Diagram Style

Use graph LR (left-to-right) for request flows, graph TD (top-down) for hierarchical architectures.

Conventions

  • Users/Clients: Stadium shape ([User])
  • AWS Services: Rectangle [Service Name]
  • Databases: Cylinder [(Database)]
  • Queues: Parallelogram [/Queue/]
  • External Services: Double-bordered [[External API]]
  • Subgraphs: Group by VPC, subnet, or logical boundary
  • Arrows: Label with protocol/action (e.g., -->|HTTPS|, -->|async|)

Example

graph LR
    User([User]) -->|HTTPS| CF[CloudFront]
    CF -->|HTTPS| ALB[ALB]

    subgraph VPC
        subgraph Public Subnet
            ALB
        end
        subgraph Private Subnet
            ECS[ECS Fargate]
            ECS -->|TCP 5432| RDS[(Aurora PostgreSQL)]
            ECS -->|TCP 6379| Redis[(ElastiCache Redis)]
        end
    end

    ECS -->|HTTPS| S3[S3 Bucket]
    ECS -->|SQS| Queue[/Processing Queue/]
    Queue --> Lambda[Lambda Processor]
    Lambda --> S3

ASCII Fallback

For environments that don't render Mermaid:

┌──────┐     ┌────────────┐     ┌─────┐
│ User │────>│ CloudFront │────>│ ALB │
└──────┘     └────────────┘     └──┬──┘
                                   │
                    ┌──────────────┴──────────────┐
                    │         VPC                  │
                    │  ┌─────────────┐             │
                    │  │ ECS Fargate │──> Aurora   │
                    │  │             │──> Redis    │
                    │  └──────┬──────┘             │
                    └─────────┼────────────────────┘
                              │
                         ┌────┴────┐
                         │   SQS   │──> Lambda ──> S3
                         └─────────┘

From IaC Reverse Engineering

When from-iac is specified: 1. Glob for *.tf, *.ts (CDK), template.yaml (SAM), *.template.json (CFN) 2. Extract resources, their relationships, and networking config 3. Map to diagram nodes and edges 4. Highlight any security concerns (public subnets, open SGs) with a warning marker

Output

Always provide: 1. Mermaid diagram (in a ``mermaid code block) 2. **ASCII fallback** (in a `` code block) 3. Flow description (1-2 sentences explaining the request/data path) 4. Notes (any assumptions made, security observations)

Related skills

FAQ

What diagram formats does it output?

It outputs a Mermaid diagram as the primary format plus an ASCII fallback for environments that cannot render Mermaid.

Can it read my existing infrastructure code?

Yes, with the from-iac argument it scans CDK, Terraform, CloudFormation, and SAM files and reverse-engineers the architecture.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.