diagram

diagram is a skill for Claude Code from Rune-kit/rune. It costs 74 tokens per session (2,427 once invoked), scanned A, original, MIT.

A tool for creating system diagrams as self-contained HTML and SVG files. It covers visuals such as architecture, flows, sequences, states, data models, and processes without relying on an external diagram renderer.

In plain words
What is it for?
Use it to draw how components connect, how requests move, how a process works, or how data and state change. It can also redraw Mermaid diagrams as standalone visuals.
Why use it?
It turns complex code and processes into readable visuals and avoids diagrams that depend on a separate rendering service.

Skill for Claude Code

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

Part of the rune plugin — 66 skills, 1 command, 66 agents, 6 hooks shipped together

Good fit Use it to draw how components connect, how requests move, how a process works, or how data and state change. It can also redraw Mermaid diagrams as standalone visuals.

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

Made for: Claude Code.

Or install rune, the plugin that ships this one along with the rest of its 66 skills, 1 command, 66 agents, 6 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rune-kit/rune/diagram"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,427 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.00074 $0.02427
Opus 5.5 $0.00030 $0.00971
Sonnet 5.5 $0.00015 $0.00485
Haiku 4.5 $0.00007 $0.00243

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

Security

Grade A, and why

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 8d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/mermaid_extract.py, scripts/self_check.py, scripts/verify_geometry.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/SKILL.md · 185 lines

How it starts

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

diagram

Purpose

Draws editorial system, flow, sequence, state, ER, swimlane, loop, layer-stack, data-flow, and process diagrams as self-contained HTML files (inline CSS + inline SVG) — no Mermaid renderer, no external images. Ten visual types plus seven semantic patterns, a 9-node complexity budget, orthogonal connectors, and a machine-checked geometry gate. Complements asset-creator (icons/OG) and slides (Marp + Mermaid).

Triggers

  • "draw the system", "architecture diagram", "how do the pieces connect"
  • "sequence of calls", "request flow", "state machine", "what states does X have"
  • "data model", "entity relationship", "swimlane", "who does what in this process"
  • .mmd / .mermaid / fenced mermaid block — "redraw this Mermaid", "make this presentable"
  • Called by other skills needing a visual for a reader

Not for logos, OG images, social banners (→ asset-creator), or Marp decks (→ slides).

Called By (inbound)

  • docs (L2): architecture and flow diagrams in generated docs
  • design (L2): system and data-model visuals during design
  • ba (L2): requirement flows and state machines
  • scout (L2): topology maps of scanned codebases
  • slides (L3): diagram slides
  • marketing (L2): editorial visuals for posts
  • User: direct invocation

(Callers point here via suggested_next; no inbound listen signal is required.)

Calls (outbound)

None — pure L3 utility.

Data Flow

request ("architecture of X")
  → resolve tokens (design-system → conventions → style-guide roles)
  → pick ONE pattern (if behavior is load-bearing) → ONE of 10 types
  → write .rune/diagrams/<slug>.html [+ -dark]
  → python scripts/self_check.py && verify_geometry.py
  → emit media.diagram.composed

Workflow

Step 1: Resolve tokens

Read .rune/design-system.md, then .rune/conventions.md, then references/style-guide.md. Map whatever names colors/fonts onto the semantic roles (paper, ink, muted, accent, link). If neither file names fonts, use the shipped defaults. Do not force a specific serif/sans/mono family over a project that names its own.

Read the full file on GitHub · 185 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. 8d ago First seen · 185 lines · 74 tokens per session scan A d92a4f646b3e

Subscribe to this mod's changes

diagram is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed 2d ago), licensed MIT. It adds 74 tokens to every session and 2,427 once invoked, about $0.0003 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-22.

Related

diagram compared with skills from other repositories

diagram next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagramRune-kit/runeSkill962d agoMITA74Claude Code
design-itsmallnest/goal-workflowSkill3032mo agoMITA95Claude Code
create-diagramdiagrid-labs/dapr-skillsSkill135d agoMITA50Claude Code
tddsentimony/skillsSkill8todayMITA43Claude Code
frontend-craftsentimony/skillsSkill8todayMITA99Claude Code
design-reviewerHarshvardhan86/claude-wave-pluginSkill141mo agoMITA46Claude Code
using-agent-skillsvanja-emichi/a0_agent_skillsSkill63mo agoMITA95Claude Code, Codex