create-mermaid-diagrams

create-mermaid-diagrams is a skill for Codex from liatrio-labs/ai-prompts. It costs 58 tokens per session (897 once invoked), scanned A, original, Apache-2.0.

A skill for creating Mermaid diagrams, which are text descriptions that render as technical diagrams in documentation, and for checking that those diagrams can be rendered correctly.

In plain words
What is it for?
Use it to create or repair flowcharts, interaction timelines, and state diagrams, then validate the complete Markdown file with Mermaid's command-line renderer.
Why use it?
It reduces broken diagrams and unclear technical documentation by using a repeatable validation process.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to create or repair flowcharts, interaction timelines, and state diagrams, then validate the complete Markdown file with Mermaid's command-line renderer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/liatrio-labs/ai-prompts/create-mermaid-diagrams
Install

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.

Any agent
npx skills add liatrio-labs/ai-prompts --skill create-mermaid-diagrams
Clone the repo
git clone --depth 1 https://github.com/liatrio-labs/ai-prompts

Made for: Codex.

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 create-mermaid-diagrams

README.md
[![agentmods](https://agentmods.dev/badge/skills/liatrio-labs/ai-prompts/create-mermaid-diagrams/github.svg)](https://agentmods.dev/skills/liatrio-labs/ai-prompts/create-mermaid-diagrams)
Your own site
<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.

agentmods 80×15 button for create-mermaid-diagrams

Your own site · 80×15
<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>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 897 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00058 $0.00897
Opus 5 $0.00029 $0.00449
Sonnet 5 $0.00012 $0.00179
Haiku 4.5 $0.00006 $0.00090

Measured 12d ago against content hash f48b860ccfb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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.

skills/create-mermaid-diagrams/SKILL.md · 97 lines

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

  1. Define communication intent and choose the smallest diagram type that fits:

    • flowchart for process and architecture flow.
    • sequenceDiagram for interaction timelines.
    • stateDiagram-v2 for state transitions.
  2. 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.
  3. Validate the full markdown file with mmdc:

    mmdc -i <input.md> -o /tmp/<name>-rendered.md -a /tmp/<name>-mermaid-artifacts
    
  4. 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.
  5. Repeat failure analysis and correction up to 3 attempts.

  6. 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.

Read the full file on GitHub · 97 lines

Files

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.

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. 12d ago First seen · 97 lines · 58 tokens per session scan A f48b860ccfb7

Subscribe to this mod's changes

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.

Related

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.

VernonOY/alpha-skills · 74 tokens

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.

VernonOY/alpha-skills · 56 tokens

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.

VernonOY/alpha-skills · 85 tokens

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.

VernonOY/alpha-skills · 73 tokens

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.

VernonOY/alpha-skills · 55 tokens

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.

VernonOY/alpha-skills · 70 tokens