d2

Generate diagrams from textual definitions using the D2 language.

39|3|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/LiorCohen/sdd --skill d2-liorcohen
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: d2
Source: https://github.com/LiorCohen/sdd/tree/main/.claude/skills/d2
Command: npx skills add https://github.com/LiorCohen/sdd --skill d2-liorcohen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

D2 Diagramming language provides a comprehensive reference to create architecture diagrams, sequence diagrams, grid layouts, SQL tables, and class diagrams from plain-text definitions.

Core Features & Use Cases

  • Core syntax, shapes, connections, layers, and styling, with examples for architecture diagrams, sequence diagrams, and data-model representations.
  • Use cases include visualizing deployments, software architectures, and data models from textual specifications.

Quick Start

Create a simple D2 diagram by defining a few shapes and connections and render it to SVG.

Frequently Asked Questions about d2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn text into architecture diagrams for software deployments?▼

You can generate architecture diagrams by writing plain-text definitions that specify shapes, connections, and layers, then rendering them into a visual diagram output. This method models software architectures and deployments directly from textual specifications.

What types of technical diagrams can I generate using a text-based diagramming language?▼

A text-based diagramming language supports generating architecture diagrams, sequence diagrams, grid layouts, SQL tables, and UML-style class diagrams. These formats cover software engineering visualization needs from data models to deployment flows.

How do I start modeling a sequence diagram from plain text?▼

To model a sequence diagram, define the participating shapes and their message-passing connections using the core syntax, then apply styling. The quick-start workflow provides examples for rendering textual definitions into a visual sequence format.

Can I represent SQL tables and class diagrams in a text-to-diagram workflow?▼

Yes, a text-to-diagram workflow supports representing SQL tables and UML-style class diagrams. The diagramming language includes syntax for defining data-model structures and applying styling for precise visualization.

Does the diagramming syntax support grid layouts and layers for complex visualizations?▼

Yes, the diagramming syntax supports grid layouts and layers for complex visualizations. You can organize shapes into grids and separate concerns using layers to structure detailed architecture diagrams effectively.