iac-diagram-generator

Generate architecture diagrams from Terraform, CloudFormation, and other IaC files.

8|1|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/johnpsasser/iac-diagram-generator --skill iac-diagram-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iac-diagram-generator
Source: https://github.com/johnpsasser/iac-diagram-generator/tree/main/.
Command: npx skills add https://github.com/johnpsasser/iac-diagram-generator --skill iac-diagram-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the generation of cloud architecture diagrams directly from Infrastructure as Code (IaC) files. It analyzes repositories containing Terraform, CloudFormation, Kubernetes, and Docker Compose definitions to produce clear, standardized diagrams, reducing manual drawing time and ensuring architectural accuracy.

Core Features & Use Cases

  • Automated IaC Diagramming: Scans IaC files across Terraform, CloudFormation, Kubernetes, and Docker Compose to build a resource graph and generate diagrams that reflect your actual infrastructure.
  • Nano Banana Pro Prompt Creation: Produces a structured, high-quality prompt describing the architecture with proper hierarchy, labels, and security boundaries for AI diagram rendering.
  • Render & Save Diagrams: Utilizes Nano Banana Pro to render a professional diagram and saves the output image to disk for documentation or sharing.

Quick Start

Use the iac-diagram-generator to create a diagram from your IaC directory, for example: "Generate an architecture diagram from my Terraform code" pointing to ./terraform.