d2-gen-azure

Installation
SKILL.md

D2 Diagram Generator

When to Use

  • Generate architecture diagrams from Terraform or Terragrunt code
  • Visualize Azure infrastructure with proper icons, connections, and grouping
  • Create .d2 files rendered to SVG/PNG via the d2 CLI
  • Represent resource dependencies, network topology, RBAC, monitoring, and data flows

Goal

Create readable architecture diagrams using D2 language for Azure/Terraform infrastructure. Output is .d2 text files, rendered to SVG or PNG via the d2 CLI.

Tools

  • d2 CLI: Render .d2 files to SVG/PNG: d2 input.d2 output.svg
  • d2 CLI with layout engine: d2 --layout=elk input.d2 output.svg
  • d2 fmt: Format D2 files: d2 fmt input.d2
  • No MCP server is used — the skill generates D2 source code as text.

Icon Source Requirement

Installs
2
Repository
miiitch/d2-gen
GitHub Stars
18
First Seen
May 12, 2026
d2-gen-azure — miiitch/d2-gen