diagram-generator

diagram-generator is a skill for Claude Code, Codex from Jacobinwwey/notemdpro. It costs 17 tokens per session (616 once invoked), scanned A, original, MIT.

A diagram generator that turns an authorized source into diagrams while preserving required concepts, relationships, hierarchy, and references. It validates the source and only exports formats supported by the available renderer.

In plain words
What is it for?
Use it to create source-grounded Mermaid diagrams and, when supported by the host, render diagrams to formats such as SVG or PDF.
Why use it?
It reduces the risk of diagrams omitting source content or inventing relationships, and distinguishes preview or export from formats the host can actually produce.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create source-grounded Mermaid diagrams and, when supported by the host, render diagrams to formats such as SVG or PDF.

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

Made for: Claude Code, 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 diagram-generator

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jacobinwwey/notemdpro/diagram-generator"><img src="https://agentmods.dev/badge/skills/jacobinwwey/notemdpro/diagram-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 616 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.00017 $0.00616
Opus 5.5 $0.00007 $0.00246
Sonnet 5.5 $0.00003 $0.00123
Haiku 4.5 $0.00002 $0.00062

Measured 16d ago against content hash 124dcaaa4a81, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diagram-generator 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 16d 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/diagram-generator/SKILL.md · 31 lines

How it starts

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

Diagram generator

English

Canonical action: generate-diagram; accept generate-experimental-diagram as an alias. preview-diagram requires an available host renderer.

  1. Read the full authorized source. Identify required concepts, source references, ownership hierarchy and explicit directed predicates. Keep a coverage inventory.
  2. Select an available target. Mermaid text is supported by the bundled validator; Drawnix, SVG and PDF need an actual host adapter. Never claim an unavailable format was exported.
  3. Keep hierarchy separate from cross-branch relationships. Preserve all required nodes and source-supported relations, including reciprocal and distinct predicates. Do not invent edges merely to connect isolated concepts.
  4. Prefer deterministic renderer placement: closely related blocks should be nearer; route from boundaries, reserve label space and reduce crossings/overlap. Never delete content to improve geometry. Revalidate coverage after any reorder.
  5. Validate canonical source before preview/export. For a host SVG-to-PDF path, require sanitized SVG, resolved style/inheritance support, valid dimensions/viewBox, proportional page-size limits and a nonempty parseable PDF. Preserve source plus intermediate artifacts and report the failing stage when unsupported or unsuccessful.

Use workflow-runner for complete diagnostics. A successful text generation does not establish rendered export success.

中文

规范操作名为 generate-diagram,接受 generate-experimental-diagram 兼容别名。preview-diagram 需要实际可用的宿主渲染器。

  1. 阅读完整的已授权来源,整理必要概念、来源引用、归属层级和显式有向谓词,保留覆盖清单。
  2. 选择可用目标。随附验证器支持 Mermaid 文本;Drawnix、SVG 和 PDF 需要真实宿主适配器,不得把不可用格式报告为已导出。
  3. 分离层级与跨分支关系,保留全部必要节点及来源支持的关系,包括反向关系和不同谓词。不得为了连接孤立概念而虚构连线。
  4. 优先使用确定性渲染排布:紧密关联块相邻,连接节点边界,预留标签空间,减少交叉与重叠。不得删除内容改善几何效果;重排后重新验证覆盖。
  5. 预览/导出前验证规范源。宿主 SVG 到 PDF 路径应支持净化、样式/继承解析、有效尺寸/viewBox、等比例页面尺寸限制,以及非空且可解析的 PDF。保留源与中间产物,能力不支持或失败时报告具体阶段。

完整诊断遵循 workflow-runner。文本生成成功不代表渲染导出成功。

Read the full file on GitHub · 31 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. 16d ago First seen · 31 lines · 17 tokens per session scan A 124dcaaa4a81

Subscribe to this mod's changes

diagram-generator is a skill published in the GitHub repository Jacobinwwey/notemdpro (2 stars, last pushed 16d ago), licensed MIT. It adds 17 tokens to every session and 616 once invoked, about $0.0001 per session on Opus 5.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-10-05.

Related

Other skills, from other repositories

brand-landingpage

Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established…

wshobson/agents · 112 tokens

wcag-audit-patterns

Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.

wshobson/agents · 45 tokens

app-store-screenshots

Use when building App Store or Google Play screenshot pages, generating exportable marketing screenshots for iOS, macOS, and/or Android apps, or scaffolding a screenshot editor with Next.js. Triggers on app store, mac app store, play store, screenshots, marketing assets, html-to-image, phone mockup, mac mockup…

ParthJadhav/app-store-screenshots · 80 tokens

tailwind-design-system

Build scalable design systems with Tailwind CSS v4, design tokens, component libraries, and responsive patterns. Use when creating component libraries, implementing design systems, or standardizing UI patterns.

calesthio/OpenMontage · 42 tokens

motion-graphics

Use when the user wants a short, design-led motion graphic where motion is the message: kinetic typography, stat or number count-up, chart/data-viz hit, logo sting, brand lockup, lower-third, callout, social overlay, animated headline/tweet/news item, motion poster, or quick captured-page highlight. Usually under 10s…

calesthio/OpenMontage · 187 tokens

visual-style

Create, extract, and apply portable visual design systems via visual-style.md files. Use when: (1) Creating a visual-style.md design system from scratch, (2) Extracting a visual style from a website URL, video, or PDF brand guide, (3) Applying a visual style to HeyGen videos, HTML slides, Figma, or paper.design, (4)…

calesthio/OpenMontage · 136 tokens