heathdutton/claude-d2-diagrams

12 stars · Last commit 2026-03-05

A Claude Code plugin that generates infrastructure and architecture diagrams (and documentation) from your codebase using D2

README preview

# claude-d2-diagrams

A [Claude Code](https://docs.anthropic.com/en/docs/claude-code) plugin that generates infrastructure and architecture diagrams (and documentation) from your codebase using [D2](https://d2lang.com/).

**Command:** `/d2:diagram`

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

---

## Example Output

### Infrastructure (Simplified)
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="./examples/infrastructure-simplified-dark.svg">
  <source media="(prefers-color-scheme: light)" srcset="./examples/infrastructure-simplified-light.svg">
  <img alt="Infrastructure Diagram" src="./examples/infrastructure-simplified-light.svg">
</picture>

### Architecture (Simplified)

View full repository on GitHub →