/diagram-kit:create-diagramfrom Diagram Kit
Make clear, well-positioned, interactive diagrams (system design and architecture, flowcharts, sequences, state machines, data models, trees, mind maps) from a request, a codebase or a document. Use when someone asks to diagram, visualize, map or draw how something works or fits together, or wants to understand part of a project visually. Not for charts of numbers.
Ships in Diagram Kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Agents are poor at placing boxes. Use this skill's scripts for geometry: you decide the meaning, ELK.js decides the positions, the checks tell you what is wrong. Never place coordinates yourself.
<skill> below is the folder holding this file.
node <skill>/scripts/diagram.mjs setup installs the pinned dependencies into ~/.cache/diagram-kit/ (needs network). One install serves Claude Code, Codex and every copy of the skill, and survives plugin refreshes. In Codex, ask to run it with escalated permissions.node <skill>/scripts/diagram.mjs (help lists commands). It prints the setup command when dependencies are missing.about, details, facts and sources, shown on click) are included by default only in standalone pages and artifacts. Elsewhere add them where the medium has a natural place for them.exec runs), make a standalone page in docs/diagrams/<slug>/ and say where it went.file:line. A document: extract its parts, flows and claims. Deep path: write the brief, show it, wait for approval, set status: approved.node <skill>/scripts/diagram.mjs build <spec> --out <dir> writes <name>.layout.json, <name>.html and <name>.png, and prints the check report.view_image in Codex) against the checklist. Fix through the spec: tiers, order, groups, direction, labels, or splitting (layout). At most two rounds, then report what is left.--strict, which fails while the brief is unapproved.layout.json) with their components, styles and conventions; do not ship our viewer or theme into their environment.agents/openai.yaml (opens in a new tab)assets/fonts/Geist-Medium.ttf (opens in a new tab)assets/fonts/Geist-Medium.woff2 (opens in a new tab)assets/fonts/Geist-Regular.ttf (opens in a new tab)assets/fonts/Geist-Regular.woff2 (opens in a new tab)assets/fonts/Geist-SemiBold.ttf (opens in a new tab)assets/fonts/Geist-SemiBold.woff2 (opens in a new tab)assets/fonts/GeistMono-Medium.ttf (opens in a new tab)assets/fonts/GeistMono-Medium.woff2 (opens in a new tab)assets/fonts/GeistMono-Regular.ttf (opens in a new tab)assets/fonts/GeistMono-Regular.woff2 (opens in a new tab)assets/icon.svg (opens in a new tab)assets/icons.json (opens in a new tab)assets/licenses/geist-OFL.txt (opens in a new tab)assets/licenses/lucide-ISC.txt (opens in a new tab)assets/metrics.json (opens in a new tab)assets/viewer/render.mjs (opens in a new tab)assets/viewer/theme.mjs (opens in a new tab)assets/viewer/viewer.css (opens in a new tab)assets/viewer/viewer.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub alireza29675/diagram-kit --plugin diagram-kit