diagram-maker

diagram-maker is a skill for Claude Code from bestdeejay-design/agent-skills. It costs 173 tokens per session (2,619 once invoked), scanned A, original, MIT.

A tool that turns a written description into Mermaid code for diagrams. Mermaid is a text format for drawing flowcharts, sequence diagrams, system architecture diagrams, and database relationship diagrams.

In plain words
What is it for?
Use it to create diagrams for README files, documentation, and issues, including process flowcharts, interaction sequences, service architecture, and database schemas.
Why use it?
It makes it easier to visualise processes, component interactions, and data relationships without drawing them by hand. The resulting text can be rendered in documentation or a diagram tool.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Use it to create diagrams for README files, documentation, and issues, including process flowcharts, interaction sequences, service architecture, and database schemas.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bestdeejay-design/agent-skills/diagram-maker
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 bestdeejay-design/agent-skills --skill diagram-maker
Clone the repo
git clone --depth 1 https://github.com/bestdeejay-design/agent-skills

Made for: Claude Code.

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 diagram-maker

README.md
[![agentmods](https://agentmods.dev/badge/skills/bestdeejay-design/agent-skills/diagram-maker/github.svg)](https://agentmods.dev/skills/bestdeejay-design/agent-skills/diagram-maker)
Your own site
<a href="https://agentmods.dev/skills/bestdeejay-design/agent-skills/diagram-maker"><img src="https://agentmods.dev/badge/skills/bestdeejay-design/agent-skills/diagram-maker/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 diagram-maker

Your own site · 80×15
<a href="https://agentmods.dev/skills/bestdeejay-design/agent-skills/diagram-maker"><img src="https://agentmods.dev/badge/skills/bestdeejay-design/agent-skills/diagram-maker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 173 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,619 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
How audits are shown
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.00173 $0.02619
Opus 5 $0.00086 $0.01309
Sonnet 5 $0.00035 $0.00524
Haiku 4.5 $0.00017 $0.00262

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

Security

Grade A, and why

diagram-maker 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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/mermaid_to_markdown.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/diagram-maker/SKILL.md · 253 lines

How it starts

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

Diagram Maker — генерация диаграмм из текстового описания

Загружай этот скилл когда нужно превратить словесное описание в диаграмму: блок-схему процесса, sequence-диаграмму взаимодействия, схему архитектуры сервисов или ER-схему базы данных. Выход всегда в синтаксисе Mermaid.

When to use

  • Нужна блок-схема (flowchart) бизнес-процесса или алгоритма
  • Нужна sequence-диаграмма взаимодействия компонентов/пользователей
  • Нужна схема архитектуры сервисов и их связей
  • Нужна ER-схема (сущности и связи) для базы данных
  • Нужен bar/line/pie/scatter chart для визуализации данных
  • Нужно быстро визуализировать описание, чтобы показать команде
  • Нужен код Mermaid или интерактивный HTML-график

Do NOT use to

  • Не используй для генерации изображений/картинок (это test-graphics)
  • Не используй для презентаций (это presentation-maker)
  • Не используй для рисования от руки или векторной графики (SVG/Canvas)
  • Не используй для сложных данных с множеством серий — это data-analysis
  • Не используй для интерактивных дашбордов с фильтрами — это data-analysis

What this skill does

Вход: natural language описание (текст на stdin, файл или прямо в чате).

Выход:

  1. Код Mermaid нужного типа (flowchart / sequence / architecture / er)
  2. Или интерактивный HTML-график (bar / line / pie / scatter) через Chart.js
  3. Рекомендация, как отрендерить результат:
    • mermaid.live — быстрый онлайн-рендер
    • mmdc (mermaid-cli) — локальный рендер в PNG/SVG/PDF
    • MCP-сервер mermaid — рендер прямо из агента
  4. (опционально) markdown-файл с mermaid-блоком через scripts/mermaid_to_markdown.py

How to work

Шаги при генерации диаграммы:

  1. Уточни тип диаграммы. Если пользователь не назвал тип — определи по описанию: процесс/алгоритм → flowchart; обмен сообщениями во времени → sequence; сервисы и связи → architecture; сущности и связи БД → er. Если неоднозначно — спроси или предложи наиболее вероятный тип.

  2. Составь mermaid-код. Используй шаблоны из templates/ как стартовую точку. Бери узлы и связи ТОЛЬКО из описания пользователя, не выдумывай лишние. Именуй узлы коротко и осмысленно.

Read the full file on GitHub · 253 lines

Files

What ships with it

8 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. 5d ago Changed · +55 lines · +39 tokens per session dc6e13f27dfe
  2. 10d ago First seen · 198 lines · 134 tokens per session scan A 7e192d1d6b1f

Subscribe to this mod's changes

diagram-maker is a skill published in the GitHub repository bestdeejay-design/agent-skills (5 stars, last pushed 3d ago), licensed MIT. It adds 173 tokens to every session and 2,619 once invoked, about $0.0009 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.