d2-diagram¶
Create professional diagrams in D2 when the user needs architecture views, process maps, funnels, org charts, or other structural visuals that should live as text files in the repo.
- Area: Foundational
- Category: diagramming
- Level: advanced
- Input: conversation
- Output: diagram
- Setup: none
- Roles:
Creates professional architecture diagrams, flowcharts, system maps, and visual documentation in D2.
How you ask¶
- “Create a system architecture diagram in D2”
- “Draw a flowchart showing our deployment pipeline in D2”
- “Generate a D2 diagram of our microservices architecture”
- “Create a sequence diagram for the login flow using D2”
Inputs¶
- request — What to produce
Outputs¶
- d2-render (png)
- d2-source (d2)
- prefer a permanent directory)