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
.d2files rendered to SVG/PNG via thed2CLI - 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
.d2files 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.