Generate Mermaid Diagram
sdd_generate_diagramTransform a specification artifact into a Mermaid diagram. Supports 17 diagram types including flowchart, sequence, class, and more.
Instructions
Generates a single Mermaid diagram from a specification artifact. Supports 17 diagram types: flowchart, sequence, class, ER, state machine, C4 context, C4 container, C4 component, C4 code, activity, use case, DFD (data flow), deployment, network topology, Gantt, pie chart, and mind map.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feature_number | No | Feature number (zero-padded, e.g. '001') | 001 |
| spec_dir | No | Spec directory path (relative to workspace root) | .specs |
| diagram_type | Yes | Type of Mermaid diagram to generate. 17 types covering all software engineering diagram categories. | |
| source | Yes | Which artifact to generate the diagram from. |