D2 Diagram Generator for Azure

Turns Terraform Azure infra into icon-accurate D2 architecture diagrams via a mandatory scope questionnaire and live icon lookup.

Works with setup

Test report

Verdict
Works with setup
Score
8.4/10
Tested
Jul 14, 2026
Environment
Claude Code 2.x (agent harness)
Upstream re-checked
Aug 10, 2026 · a1cc790

Ran it for real on a 3-resource Terraform snippet (Function App + Storage + Service Plan): it correctly resolved live Azure icons from the repo's own GitHub-hosted JSON index and rendered a valid SVG via `d2 --layout=elk --theme=1` - but its description advertises Bicep support while the SKILL.md's own Icon Source Requirement section only ever wires in the Terraform icon mapping URL, so a real Bicep diagram would silently fall back to plain rectangles for every single resource despite a working icon-index-bicep-png.json sitting unused in the same repo.

Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works

  • Installs cleanly 5/5
  • Triggers reliably 5/5
  • Output vs. baseline 9/10
  • Docs & honesty 2/5

What D2 Diagram Generator for Azure does

Reads Terraform/Terragrunt (and, per its own description, Bicep) Azure infrastructure code and generates D2 diagram source with real Azure service icons, resource-group containers, hidden-sub-resource styling, and rule-based internet-exposure detection, then renders it via the external d2 CLI. Triggers on requests to diagram Terraform/Azure infrastructure; explicitly excludes runtime debugging and draw.io output. Requires the d2 CLI to be installed separately and is documented in its own repo README as a GitHub Copilot skill with no Claude-specific install instructions, though the SKILL.md format itself works fine when copied into a Claude skills folder.

How to install D2 Diagram Generator for Azure

git clone https://github.com/miiitch/d2-gen
cd d2-gen
mkdir -p ~/.claude/skills
cp -r skills/d2-gen-azure ~/.claude/skills/d2-gen-azure

Skills live in ~/.claude/skills/ (global) or .claude/skills/ (per-project). Restart Claude Code after installing.

Commands — how to trigger D2 Diagram Generator for Azure

  • /d2-gen-azure Turns Terraform Azure infra into icon-accurate D2 architecture diagrams via a mandatory scope questionnaire and live icon lookup.

It also activates on plain-language prompts like these:

  • Turn my Terraform Azure setup into an architecture diagram
  • Draw our cloud infra with proper Azure service icons
  • Which of my Azure resources are exposed to the internet?

Frequently asked questions

Is the D2 Diagram Generator for Azure skill free?
Yes. The skill itself is free from miiitch/d2-gen. SkillProof publishes the install command and an independent test verdict at no cost.
Does D2 Diagram Generator for Azure work with Claude Code?
We tested it with Claude Code 2.x (agent harness) on Jul 14, 2026. Verdict: Works with setup. Ran it for real on a 3-resource Terraform snippet (Function App + Storage + Service Plan): it correctly resolved live Azure icons from the repo's own GitHub-hosted JSON index and rendered a valid SVG via `d2 --layout=elk --theme=1` - but its description advertises Bicep support while the SKILL.md's own Icon Source Requirement section only ever wires in the Terraform icon mapping URL, so a real Bicep diagram would silently fall back to plain rectangles for every single resource despite a working icon-index-bicep-png.json sitting unused in the same repo.
What is the D2 Diagram Generator for Azure SkillProof Score?
8.4/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 9/10, docs & honesty 2/5.
How do I install D2 Diagram Generator for Azure?
Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
Can I use D2 Diagram Generator for Azure with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.