All products

Draw D2 diagrams with AI

Describe a process or system as editable text, try alternative layouts and inspect the result at the size your audience will see.

Draw D2 diagrams with AI when the same process needs to work in a document and on a slide. A page can accommodate several system names. A presentation may need just the decision that sends a request back to its owner. The d2-diagrams skill helps turn that choice into a source file you can revise as the process changes.

The guide includes templates, reusable styles and helpers for checking and rendering the source. Decide what the viewer should follow before selecting a theme. A valid diagram can still be hard to read if every connection crosses the main path.

What it does

  • Group related components within a system boundary.
  • Compare a horizontal layout with a vertical one.
  • Adjust labels to fit the space available in the final document.
  • Give equivalent components consistent styles across drawings.
  • Export a local SVG and inspect the actual rendering before sharing.

Install and use

  1. Install the skill in your agent. You can draft the source without a separate application. Use the official D2 CLI for rendering and validation.
  2. Ask, “Draw this approval process for a single slide. Keep the return path visible and use short labels.”
  3. Review the result at presentation size, then ask for one specific revision and keep the source alongside the export.

FAQ

Source

Made by Jude Rajasekera. Original skill: d2-diagrams, published on GitHub under the MIT licence.

View on GitHub