← Back to Skills Marketplace
opietaylor911

ISAI Mermaid Diagrams

by OpieTaylor911 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
248
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install isai-mermaid-diagrams
Description
Generate architecture diagrams (network, system, cloud, microservices) and sequence diagrams (API flows, auth flows, data flows) as PNG files using Mermaid....
README (SKILL.md)

Mermaid Diagrams Skill

Generates Mermaid diagrams and renders them to PNG using the mmdc CLI.

Reference Files

  • Architecture patterns (flowchart, C4, cloud, network, microservices) → references/architecture-patterns.md
  • Sequence diagram patterns (API flows, auth, CI/CD, DLP flows) → references/sequence-patterns.md

Load the relevant reference file based on diagram type requested.

Rendering Tool

Use mermaid.ink (free online renderer, no browser/install needed):

mkdir -p /home/bcaddy/.openclaw/workspace/diagrams
ENCODED=$(cat \x3Cinput.mmd> | base64 -w 0)
curl -s "https://mermaid.ink/img/${ENCODED}?bgColor=white&width=2048" \
  -o /home/bcaddy/.openclaw/workspace/diagrams/\x3Cname>.png
  • Output directory: /home/bcaddy/.openclaw/workspace/diagrams/
  • Width: 2048px default; increase for very wide diagrams (&width=3000)
  • Always create output directory first: mkdir -p /home/bcaddy/.openclaw/workspace/diagrams

Workflow

1. Identify Diagram Type

  • Network/system/cloud/microservices → use flowchart or C4Context
  • API/auth/data flows, step-by-step processes → use sequenceDiagram
  • When in doubt: sequence for "how does X work step by step", architecture for "what does X look like"

2. Load Reference File

  • Architecture → references/architecture-patterns.md
  • Sequence → references/sequence-patterns.md

3. Generate Mermaid Code

  • Write complete, valid Mermaid syntax
  • Use descriptive node labels (not just A, B, C)
  • Use subgraphs to group related components in architecture diagrams
  • Use alt/loop/note blocks to add clarity in sequence diagrams
  • Match the style of the patterns in the reference file

4. Save .mmd File

Save to: /home/bcaddy/.openclaw/workspace/diagrams/\x3Cdescriptive-name>.mmd

Use kebab-case, descriptive filenames: auth-flow.mmd, aws-architecture.mmd, api-gateway-sequence.mmd

5. Render to PNG via mermaid.ink

ENCODED=$(cat /home/bcaddy/.openclaw/workspace/diagrams/\x3Cname>.mmd | base64 -w 0)
curl -s "https://mermaid.ink/img/${ENCODED}?bgColor=white&width=2048" \
  -o /home/bcaddy/.openclaw/workspace/diagrams/\x3Cname>.png

6. Confirm Output

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.

Tips

  • flowchart LR for left-to-right pipelines and network flows
  • flowchart TD for top-down hierarchies and cloud stacks
  • Wide diagrams: increase -w (width); tall diagrams: increase -H (height)
  • For very complex diagrams, break into multiple diagrams
  • Always include a title comment at the top of the .mmd file: %% Title: ...
Usage Guidance
This skill appears to do what it says: create .mmd and render PNGs. Important things to consider before installing/using: - Privacy: Rendering is done by posting the base64-encoded Mermaid source to mermaid.ink. Do not use this skill to render diagrams that contain secrets, credentials, internal hostnames/IPs, or other sensitive information unless you are comfortable sending them to that external service. Consider sanitizing diagrams first. - If you need offline or private rendering, install/use the official mermaid-cli (mmdc) locally or host your own Mermaid rendering endpoint and change the curl target to that host. - Path: The SKILL.md hardcodes /home/bcaddy/.openclaw/workspace/diagrams/. Ensure the agent's runtime user has a writable workspace, or update the path to your environment. The example base64 command uses GNU base64 flags (-w 0) which may differ on non-Linux systems (macOS's base64 uses -b on some builds); adjust accordingly. - Trust and retention: Review mermaid.ink's privacy policy/retention practices if you plan to render sensitive diagrams. If you accept the above (i.e., you will not send sensitive diagrams to a public renderer or you will self-host), the skill is coherent and reasonable to use. If you require strict confidentiality, consider switching to a local renderer before using this skill.
Capability Analysis
Type: OpenClaw Skill Name: isai-mermaid-diagrams Version: 1.0.0 The skill is designed to generate and render Mermaid diagrams into PNG files using the public mermaid.ink API. It uses standard shell commands (curl, base64, mkdir) to encode diagram syntax and retrieve the rendered image, which is then stored in a local workspace directory. The behavior is transparent, well-documented, and aligns perfectly with the stated purpose of creating technical visualizations (architecture, sequence, and flow diagrams) without any evidence of malicious intent or unauthorized data access.
Capability Assessment
Purpose & Capability
Name/description match the instructions: the SKILL.md explains how to generate Mermaid (.mmd) files and render them to PNG via a renderer. The required capabilities (none) are proportionate. One minor mismatch: the instructions use a hardcoded path (/home/bcaddy/.openclaw/workspace/diagrams/) which assumes a specific username/environment and may not exist on all hosts.
Instruction Scope
Runtime instructions explicitly transmit the Mermaid source (base64-encoded) to https://mermaid.ink/img/ via curl. That is functionally required to render remotely but means any diagram content (which may include internal architecture, IPs, or secrets if present in labels) is sent to a third party. The skill does not request other unrelated files or credentials.
Install Mechanism
Instruction-only skill with no install spec or bundled code; nothing is written to disk by an installer. Lower install risk.
Credentials
The skill does not request environment variables or credentials (good). It does rely on an absolute filesystem path (/home/bcaddy/...); that is unnecessary to require a specific home directory and could cause failures or unexpected file placements in different environments.
Persistence & Privilege
always is false and the skill has no install script, no permissions or persistence requested, and does not modify other skills or global settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install isai-mermaid-diagrams
  3. After installation, invoke the skill by name or use /isai-mermaid-diagrams
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release — generate architecture diagrams (network, system, cloud, microservices) and sequence diagrams (API flows, auth flows, CI/CD) as PNG using mermaid.ink renderer. No local browser required.
Metadata
Slug isai-mermaid-diagrams
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is ISAI Mermaid Diagrams?

Generate architecture diagrams (network, system, cloud, microservices) and sequence diagrams (API flows, auth flows, data flows) as PNG files using Mermaid.... It is an AI Agent Skill for Claude Code / OpenClaw, with 248 downloads so far.

How do I install ISAI Mermaid Diagrams?

Run "/install isai-mermaid-diagrams" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is ISAI Mermaid Diagrams free?

Yes, ISAI Mermaid Diagrams is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does ISAI Mermaid Diagrams support?

ISAI Mermaid Diagrams is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created ISAI Mermaid Diagrams?

It is built and maintained by OpieTaylor911 (@opietaylor911); the current version is v1.0.0.

💬 Comments