Diagram
Generate Mermaid diagrams (flowchart / sequence / state / class / ER / gantt) from code or systems.
/diagram
documentationarchitecture diagrammermaid
Inputs
| Name | Type | Description |
|---|---|---|
subject | string | Code, system, or concept to diagram. |
diagram_type optional | string | flowchart | sequence | state | class | ER | gantt |
Outputs
| Name | Type | Description |
|---|---|---|
diagram | string | Mermaid or ASCII diagram source. |
System prompt fragment
Generate a Mermaid diagram of the requested type. Choose the type that best communicates the relationship: flowchart for control flow, sequence for message passing, state for state machines, class for OOP relationships, ER for data models, gantt for timelines. Render in Markdown for .md files. Use ASCII art for terminal output. Never describe a diagram in prose — always render it.
Attribution: convergent-systems-key. License: Apache-2.0 or as stated by the originating repository.