Install
openclaw skills install ai-mermaid-diagramsGenerate architecture diagrams (network, system, cloud, microservices) and sequence diagrams (API flows, auth flows, data flows) as PNG files using Mermaid. Use when asked to create, draw, or diagram anything including system architecture, network topology, cloud infrastructure, API request flows, authentication flows, CI/CD pipelines, database flows, or any other technical diagram. Triggers on phrases like "create a diagram", "draw", "diagram this", "architecture diagram", "sequence diagram", "flow diagram", "network diagram", "system design diagram".
openclaw skills install ai-mermaid-diagramsGenerates Mermaid diagrams and renders them to PNG using the mmdc CLI.
references/architecture-patterns.mdreferences/sequence-patterns.mdLoad the relevant reference file based on diagram type requested.
Use mermaid.ink (free online renderer, no browser/install needed):
mkdir -p /home/bcaddy/.openclaw/workspace/diagrams
ENCODED=$(cat <input.mmd> | base64 -w 0)
curl -s "https://mermaid.ink/img/${ENCODED}?bgColor=white&width=2048" \
-o /home/bcaddy/.openclaw/workspace/diagrams/<name>.png
/home/bcaddy/.openclaw/workspace/diagrams/&width=3000)mkdir -p /home/bcaddy/.openclaw/workspace/diagramsflowchart or C4ContextsequenceDiagramreferences/architecture-patterns.mdreferences/sequence-patterns.mdSave to: /home/bcaddy/.openclaw/workspace/diagrams/<descriptive-name>.mmd
Use kebab-case, descriptive filenames: auth-flow.mmd, aws-architecture.mmd, api-gateway-sequence.mmd
ENCODED=$(cat /home/bcaddy/.openclaw/workspace/diagrams/<name>.mmd | base64 -w 0)
curl -s "https://mermaid.ink/img/${ENCODED}?bgColor=white&width=2048" \
-o /home/bcaddy/.openclaw/workspace/diagrams/<name>.png
Report the full path to the saved PNG. Offer to adjust layout, add components, or generate a .mmd file for further editing in mermaid.live or VS Code.
flowchart LR for left-to-right pipelines and network flowsflowchart TD for top-down hierarchies and cloud stacks-w (width); tall diagrams: increase -H (height)%% Title: ...