mermaid-diagram-creator-skill

mermaid-diagram-creator-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 39 tokens per session (2,747 once invoked), scanned D, original, Apache-2.0.

A workflow for creating Mermaid diagrams from plain-language descriptions. Mermaid is a text format that renders diagrams such as flowcharts, sequences, class diagrams, and timelines in supported Markdown viewers.

In plain words
What is it for?
It creates Mermaid source for workflows, architecture, and other diagram types, embeds it in Markdown, and can optionally render standalone SVG or PNG files.
Why use it?
It makes diagrams easier to keep alongside documentation and source code because their definitions are editable text.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions OpenCode.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ![Flow Diagram](./PLAN-GIT-136/flow.svg).

Good fit It creates Mermaid source for workflows, architecture, and other diagram types, embeds it in Markdown, and can optionally render standalone SVG or PNG files.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template
agentmods
npx agentmods add skills/darellchua2/opencode-config-template/mermaid-diagram-creator-skill

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mermaid-diagram-creator-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/mermaid-diagram-creator-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/mermaid-diagram-creator-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/mermaid-diagram-creator-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/mermaid-diagram-creator-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mermaid-diagram-creator-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/mermaid-diagram-creator-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/mermaid-diagram-creator-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,747 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.02747
Opus 5 $0.00019 $0.01373
Sonnet 5 $0.00008 $0.00549
Haiku 4.5 $0.00004 $0.00275

Measured today against content hash cd17121ea859, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade D, and why

mermaid-diagram-creator-skill scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt-get install -y chromium-browser

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

RUN apt-get update && apt-get install -y chromium && rm -rf /var/lib/apt/lists/*
opencode_app/.opencode/skills/mermaid-diagram-creator-skill/SKILL.md · 375 lines

How it starts

The opening of the file, as written. The whole thing — 375 lines — stays where its author put it; the contents beside it link to each section on GitHub.

What I do

I create professional Mermaid diagrams from natural language descriptions — no MCP server, no rendering service, zero tool overhead.

  1. Parse Diagram Request: Analyze the user's description to understand diagram type and structure
  2. Generate Mermaid Syntax: Create valid Mermaid source code
  3. Embed Inline (default): Write a fenced ```mermaid block directly into the target .md file — GitHub, GitLab, and VS Code preview render it natively
  4. Optional File Render: When a standalone image is required, render via npx -y @mermaid-js/mermaid-cli (mmdc)
  5. Preserve Sources: Keep .mmd files alongside rendered output when file rendering is used
  6. Handle Complex Diagrams: Split large diagrams into multiple blocks/files when needed

Supported diagram types:

  • Flowcharts (TD, LR, BT, RL)
  • Sequence diagrams
  • Class diagrams
  • State diagrams (v2)
  • ER diagrams
  • Gantt charts
  • Pie charts
  • Mind maps
  • Git graphs
  • User journey
  • Timeline

When to use me

Use this workflow when:

  • You need to visualize workflows, processes, or system architecture
  • You want Mermaid diagrams for documentation or presentations
  • You need to include diagrams in git commits or PLAN files
  • You're creating planning documents for GitHub issues or JIRA tickets
  • You need to document code logic or system flows visually
  • You want diagrams that can be edited later (source .mmd files preserved)

Rendering (no MCP)

Default — inline block. For diagrams integrated into Markdown (READMEs, PLAN files, ADRs), write the diagram directly into the .md as a fenced code block. GitHub/GitLab/VS Code render it natively; the source stays text (diffable, greppable, zero tokens beyond the diagram itself):

```mermaid
flowchart TD
    A[Start] --> B{Decision}
```

Optional — standalone file via mmdc. Only when an actual image file is needed (pandoc/LaTeX pipelines, slide decks, contexts that don't render mermaid):

npx -y @mermaid-js/mermaid-cli -i diagram.mmd -o diagram.svg -b white

Read the full file on GitHub · 375 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed cd17121ea859
  2. 7d ago First seen · 375 lines · 39 tokens per session scan D f49f4c6d71b3

Subscribe to this mod's changes

mermaid-diagram-creator-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 39 tokens to every session and 2,747 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

accessibility

Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

microsoft/hve-core · 47 tokens

make-resume

A Chinese-language tool for creating editable HTML resumes that can be changed in a browser and printed to PDF. It uses available resume templates when they are installed and otherwise provides a simpler fallback.

Hisn00w/ASu-skills · 86 tokens