From md2x
Creates complex directed/undirected graphs with precise layout control using Graphviz DOT syntax. Best for dependency trees, org charts, network topologies, and module relationships.
How this skill is triggered — by the user, by Claude, or both
Slash command
/md2x:graphvizThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Important:** Use ` ```dot ` as the code fence identifier, NOT ` ```graphviz `.
Important: Use
```dotas the code fence identifier, NOT```graphviz.
Quick Start: Choose digraph (directed) or graph (undirected) → Define nodes with attributes (shape, color, label) → Connect with -> or -- → Set layout (rankdir, spacing) → Wrap in ```dot fence. Default: top-to-bottom (rankdir=TB), cluster names must start with cluster_, use semicolons.
❌ subgraph backend { } → Won't render as box
✅ subgraph cluster_backend { } → Must start with cluster_
❌ API Gateway [label="API"]; → Invalid ID
✅ "API Gateway" [label="API"]; → Quote the ID
✅ api_gateway [label="API Gateway"]; → Use underscore ID
digraph: A -> B; → Directed arrow
graph: A -- B; → Undirected line
❌ node [shape=box color=red] → Missing comma
✅ node [shape=box, color=red]; → Comma separated
✅ shape=plaintext for HTML labels
✅ Use < > not " " for HTML content
| Issue | Solution |
|---|---|
| Nodes overlapping | Increase nodesep and ranksep |
| Poor layout | Change rankdir or add {rank=same} |
| Edges crossing | Use splines=ortho or adjust node order |
| Cluster not showing | Name must start with cluster_ |
| Label not displaying | Check quote escaping |
```dot
digraph G {
[diagram code]
}
```
For advanced layout control and complex styling, refer to references below:
npx claudepluginhub larchliu/md2x --plugin md2xGenerates Graphviz DOT language diagrams for visual content. Useful for creating flowcharts, network diagrams, and other graph-based visualizations from text descriptions.
Generates D2 diagrams from textual descriptions for system architectures, flowcharts, network topologies, data flows, and component relationships.
Guides creation of syntactically correct Mermaid diagrams including flowcharts, sequence diagrams, class diagrams, state diagrams, Gantt charts, ER diagrams, and data lineage visualizations.