Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add liatrio-labs/ai-prompts --skill create-mermaid-diagramsgit clone --depth 1 https://github.com/liatrio-labs/ai-promptsWrote 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/liatrio-labs/ai-prompts/create-mermaid-diagrams)<a href="https://agentmods.dev/skills/liatrio-labs/ai-prompts/create-mermaid-diagrams"><img src="https://agentmods.dev/badge/skills/liatrio-labs/ai-prompts/create-mermaid-diagrams/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/liatrio-labs/ai-prompts/create-mermaid-diagrams"><img src="https://agentmods.dev/badge/skills/liatrio-labs/ai-prompts/create-mermaid-diagrams.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.00058 | $0.00897 |
| Opus 5 | $0.00029 | $0.00449 |
| Sonnet 5 | $0.00012 | $0.00179 |
| Haiku 4.5 | $0.00006 | $0.00090 |
Grade A, and why
create-mermaid-diagrams scanned grade A with 0 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 12d ago.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Create Mermaid Diagrams
Overview
Create clear Mermaid diagrams and always validate output through a repeatable loop that catches syntax and rendering errors before final delivery.
Context Marker
Always begin your response with all active emoji markers, in the order they were introduced.
Format: "<marker1><marker2><marker3>\n<response>"
The marker for this skill is: 🎨
Manual Triggering
When manual invocation is needed, trigger this skill using whatever mechanism your assistant/tool provides for manual skill selection or activation.
Workflow
-
Define communication intent and choose the smallest diagram type that fits:
flowchartfor process and architecture flow.sequenceDiagramfor interaction timelines.stateDiagram-v2for state transitions.
-
Generate markdown with exactly one Mermaid fence per requested diagram:
- Opening fence must be exactly ```mermaid (no leading space; any spaced example is only Markdown escaping).
- Closing fence must be exactly ``` (no leading space; any spaced example is only Markdown escaping).
- Keep fence markers at column 0.
-
Validate the full markdown file with
mmdc:mmdc -i <input.md> -o /tmp/<name>-rendered.md -a /tmp/<name>-mermaid-artifacts -
If validation fails:
- Read raw Mermaid CLI output from
mmdc. - Apply the minimal targeted fix in the failing Mermaid fence.
- Re-run the same full-file validation command.
- Read raw Mermaid CLI output from
-
Repeat failure analysis and correction up to 3 attempts.
-
If still failing after 3 attempts, return:
- Best-effort corrected diagram.
- Validation summary with likely root cause.
- Raw error excerpt from Mermaid CLI output.
- Next manual fix suggestion.
Feedback Loop Rules
- Do not change diagram type unless the error indicates the type keyword is invalid.
- Prefer minimal edits per retry to avoid introducing new syntax errors.
- Preserve user intent and semantic meaning while repairing syntax.
- Stop retrying early when validation succeeds.
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 12d ago First seen · 97 lines · 58 tokens per session scan A f48b860ccfb7
create-mermaid-diagrams is a skill published in the GitHub repository liatrio-labs/ai-prompts (2 stars, last pushed 4d ago), licensed Apache-2.0. It adds 58 tokens to every session and 897 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
alpha-evaluate
A multi-step workflow for testing an investment factor, meaning a measurable stock signal, against market data. It examines predictive relationship, grouped returns, risk-adjusted results, consistency, and robustness.
alpha-backtest
A strategy backtesting workflow that tests factor-based stock portfolios on historical data. Backtesting means simulating how a strategy would have performed in the past.
alpha-autopilot
An automated research loop for investment factors, which are measurable signals used to select or compare stocks. It finds candidates, tests them, records successful ones, monitors active factors, and retires those that weaken.
alpha-mine
An automated process for proposing and testing stock-market formulas, called factors, that combine price or trading data with mathematical operations. It screens the candidates using measures such as IC, which compares a factor with later returns.
alpha-library
A manager for a quantitative-finance factor library, where factors are measurable signals used to study or select investments. It stores a registry of factors in a SQLite database and supports several stock markets through data adapters.
alpha-signal
A daily trading-signal generator that reads active investment factors, scores current market data, and produces a target portfolio. Factors are measurable rules used to rank investments.