heathdutton/claude-d2-diagrams
18 stars · Last commit 2026-09-24
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://code.claude.com) plugin that reads your codebase and draws its infrastructure and architecture with [D2](https://d2lang.com), then keeps those diagrams in step with the code as it changes. **Command:** `/d2:diagram` [](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)