d2-diagram

Convert textual descriptions into D2 diagrams with validated syntax and layouts.

15|2|Updated Dec 16, 2025
One-click install
npx skills add https://github.com/enitrat/skill-issue --skill d2-diagram-enitrat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: d2-diagram
Source: https://github.com/enitrat/skill-issue/tree/main/plugins/base-config/skills/d2-diagram
Command: npx skills add https://github.com/enitrat/skill-issue --skill d2-diagram-enitrat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate clear, professional diagrams from textual descriptions to visualize systems.

Core Features & Use Cases

  • Create D2 diagrams for system architectures, data flows, network topologies, and process diagrams from plain-language descriptions.
  • Provide guidance on shapes, icons, layout, and styling to ensure readable, consistent visuals.
  • Validate against D2 syntax and icon references, and render diagrams with consistent theming.

Quick Start

Describe the system you want diagrammed and I will generate a D2 diagram from that description.

Frequently Asked Questions about d2-diagram

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

FAQPage Schema
How do I generate a system architecture diagram from a text description?

To generate a system architecture diagram from text, describe your system components and connections in plain language. The tool converts your textual description into a precise D2 diagram, applying validated syntax and directional layouts to visualize the architecture.

Can I visualize network topology and data flow using D2?

Yes, you can visualize network topology and data flow using D2. The tool processes plain-language descriptions to map out network structures and directional data movements, enforcing D2 syntax with container groupings for clear, professional visualization.

What is the best way to create process diagrams without manual drawing?

The best way to create process diagrams without manual drawing is by providing a plain-language description of your workflow. The tool automatically translates this into D2 diagram code, handling shapes, icons, and consistent theming for professional results.

Does the D2 diagram generator support custom icons and styling?

Yes, the D2 diagram generator supports custom icons and styling. It validates against D2 icon references and provides guidance on shapes, layout, and styling to ensure your diagrams maintain readable and consistent visual theming.

How do I group related components in a D2 diagram?

To group related components in a D2 diagram, describe the container relationships in your textual input. The tool supports container groupings within D2 syntax, organizing related system parts into nested visual structures for clearer architecture representation.

What are the limitations of text-to-diagram generation for complex systems?

Limitations of text-to-diagram generation include relying on clear textual descriptions to accurately map complex systems. While it enforces D2 syntax and validates icons, highly intricate data flows may require precise directional layout instructions to render correctly.