create-diagram

create-diagram is a skill for Claude Code from diagrid-labs/dapr-skills. It costs 50 tokens per session (2,070 once invoked), scanned A, original, MIT.

A diagram generator for Dapr applications that creates SVG architecture diagrams and can also export PNG images. Dapr is a platform that provides common building blocks for distributed applications.

In plain words
What is it for?
Creating and refreshing Dapr architecture diagrams from code in a project.
Why use it?
It turns an application's structure into shareable visual documentation instead of requiring diagrams to be drawn by hand.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dapr-skills plugin — 33 skills shipped together

Good fit Creating and refreshing Dapr architecture diagrams from code in a project.

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

Made for: Claude Code.

Or install dapr-skills, the plugin that ships this one along with the rest of its 33 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/diagrid-labs/dapr-skills/create-diagram"><img src="https://agentmods.dev/badge/skills/diagrid-labs/dapr-skills/create-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,070 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.00050 $0.02070
Opus 5.5 $0.00020 $0.00828
Sonnet 5.5 $0.00010 $0.00414
Haiku 4.5 $0.00005 $0.00207

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

Security

Grade A, and why

create-diagram 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 11 executable files (engine/apis.mjs, engine/app.mjs, engine/brands.mjs, …), 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/create-diagram/SKILL.md · 110 lines

How it starts

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

Create a Dapr Diagram

Overview

This skill draws a Dapr diagram as code and exports it to an SVG (and, with Chromium, PNGs) in the user's project. It copies a small engine into a diagrams/ folder, you write one scene file per diagram, and the exporter renders it. The design rules and the layout method are in REFERENCE.md, the engine API in API.md, and specialised topics in topics/. This file is only the workflow.

<skill dir> is the directory that contains this SKILL.md. Relative paths in this file, such as scripts/setup.mjs, resolve from there. <diagramsDir> is the folder you set up below, diagrams by default. Run every command from the project root, because a relative <diagramsDir> resolves against the current directory. Remember the absolute path of the setup.mjs you run: you need it again for refreshes.

Prerequisites

Check before creating any file:

  • Node.js 22 or newer: run node --version. If it is older or missing, tell the user and stop.

Set up

  1. Pick the folder name: diagrams, unless the user names another one.
  2. Run node <skill dir>/scripts/setup.mjs <diagramsDir> and act on the exit code:
    • 0: created, or already up to date. Missing scaffold files are restored.
    • 2: the skill ships a newer engine than the project's copy. Ask the user whether to refresh. On yes, re-run with --refresh. Scenes and out/ are not touched.
    • 3: the folder exists and is not a create-diagram folder. Ask the user for another folder name and re-run.
    • 1: read the message. If the Chromium install failed, continue with SVG only and tell the user. Otherwise fix the cause or report it. Setup prints a "Next: ... --no-browser" hint. It is only a default, so still ask the PNG question below.
  3. Ask the user once whether they want PNGs for slides. Chromium gives three things: drawings centred in their canvas, a check that labels still fit when Inter is not installed, and light and dark PNGs. On yes, run the setup command again with --with-browser. On no, you get SVG only. Do not ask again.
    • Only the @playwright/test 1.56.1 package (about 13 MB) goes into the diagrams folder. The Chromium browser (about 150 MB) downloads once to the per-user Playwright cache and is shared by every project.
    • npm may print install-scripts warnings during the install (for example about fsevents). Ignore them. Setup prints "Chromium ready" when it worked.
    • On Linux the font check needs Arial and Courier-metric fonts, for example the fonts-liberation package.
    • If the project or a parent folder already has its own @playwright/test, the engine may use that one. Its Chromium still has to be downloaded, so --with-browser is still needed unless npx playwright install chromium was already run.
    • To enable Chromium later, re-run setup with --with-browser, then re-export (node "<diagramsDir>/_engine/export.mjs") so the PNGs and bbox.json are produced.

Read the full file on GitHub · 110 lines

Files

What ships with it

60 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 First seen · 110 lines · 50 tokens per session scan A e922cd39bfe9

Subscribe to this mod's changes

create-diagram is a skill published in the GitHub repository diagrid-labs/dapr-skills (13 stars, last pushed 5d ago), licensed MIT. It adds 50 tokens to every session and 2,070 once invoked, about $0.0002 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-11-25.

Related

create-diagram compared with skills from other repositories

create-diagram next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
create-diagramdiagrid-labs/dapr-skillsSkill135d agoMITA50Claude Code
visual-planfabiandistler/agentsSkill2todaynoneA54Claude Code, Codex
customer-journey-mapmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA86Claude Code, Codex
user-research-synthesismohitagw15856/pm-claude-skillsSkill1.6ktodayMITA114Claude Code, Codex
design-handoff-briefmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA83Claude Code
architectural-programme-briefmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA109Claude Code
architecture-client-presentationmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA117Claude Code