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.
git clone --depth 1 https://github.com/darellchua2/opencode-config-templatenpx agentmods add skills/darellchua2/opencode-config-template/mermaid-diagram-creator-skillWrote 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.
[](https://agentmods.dev/skills/darellchua2/opencode-config-template/mermaid-diagram-creator-skill)<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.
<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>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.
| Model | Per session | Once 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 |
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/* 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.
- Parse Diagram Request: Analyze the user's description to understand diagram type and structure
- Generate Mermaid Syntax: Create valid Mermaid source code
- Embed Inline (default): Write a fenced
```mermaidblock directly into the target.mdfile — GitHub, GitLab, and VS Code preview render it natively - Optional File Render: When a standalone image is required, render via
npx -y @mermaid-js/mermaid-cli(mmdc) - Preserve Sources: Keep
.mmdfiles alongside rendered output when file rendering is used - 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
.mmdfiles 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
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.
- today Changed cd17121ea859
- 7d ago First seen · 375 lines · 39 tokens per session scan D f49f4c6d71b3
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.
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.
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.
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).
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.
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.
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.