Skip to content

Diagrams

It is often useful to request an LLM to generate a diagram. Fortunately, many LLMs already know mermaid, a popular Markdown extension to create diagrams and charts.

$`Generate a diagram of a merge.`
👤 user
Generate a diagram of a merge.
🤖 assistant
```mermaid
graph LR
A[Master] --> B((Merge Point))
C[Feature Branch] --> B
```

The generated Markdown will appear as follows:

```mermaid
graph LR
A[Master] --> C[New Commit]
B[Feature Branch] --> C
```

and it gets rendered automatically once you install the extension.