d2-diagram

Community

Automate D2 diagrams from descriptions.

Authorneuro-synapse
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Manually drawing and maintaining complex diagrams is time-consuming, prone to inconsistencies, and difficult to version control. This Skill automates the creation of professional D2 diagrams from simple text descriptions, making visualization fast, accurate, and easily maintainable.

Core Features & Use Cases

  • Text-to-Diagram Generation: Converts natural language descriptions and structured text into D2 diagram code, supporting various diagram types like system architectures, data flows, and network topologies.
  • Rich Styling & Icons: Allows extensive customization with shapes, colors, and a wide range of validated icons (AWS, GCP, Tech, etc.) to create visually appealing and informative diagrams.
  • Complex Layouts: Handles hierarchical, grid, and custom layouts, ensuring clarity even for intricate system designs.
  • Version Control Friendly: D2's text-based nature enables easy tracking of diagram changes in version control systems, facilitating collaboration and auditability.
  • Use Case: A software architect needs to quickly visualize a new microservices architecture. Instead of using a GUI tool, they provide a textual description to this skill, which generates a D2 diagram that can be easily shared, reviewed, and version-controlled alongside their code.

Quick Start

Create a D2 diagram showing a user connecting to a web server, which then connects to a database. Label the connections appropriately.

Dependency Matrix

Required Modules

d2

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: d2-diagram
Download link: https://github.com/neuro-synapse/network-topology-agent/archive/main.zip#d2-diagram

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository