diagram-design

diagram-design is a skill for Claude Code from Avinava/document-design-system. It costs 139 tokens per session (2,189 once invoked), scanned A, original, MIT.

A guide for designing self-contained SVG diagrams that explain relationships such as system structure, process flow, timing, or data connections. SVG is a web image format that stays sharp at different sizes.

In plain words
What is it for?
Use it to create architecture diagrams, flowcharts, sequences, state machines, data models, timelines, comparisons, and system maps.
Why use it?
A diagram is useful when the arrangement communicates something faster than prose. This guide helps choose an appropriate diagram type and remove unnecessary detail.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the document-design-system plugin — 6 skills, 18 commands shipped together

Good fit Use it to create architecture diagrams, flowcharts, sequences, state machines, data models, timelines, comparisons, and system maps.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Avinava/document-design-system
Claude Code
/plugin install document-design-system

Made for: Claude Code.

Or install document-design-system, the plugin that ships this one along with the rest of its 6 skills, 18 commands.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/avinava/document-design-system/diagram-design.svg)](https://agentmods.dev/skills/avinava/document-design-system/diagram-design)
Your own site
<a href="https://agentmods.dev/skills/avinava/document-design-system/diagram-design"><img src="https://agentmods.dev/badge/skills/avinava/document-design-system/diagram-design.svg" alt="Measured on agentmods" height="20"></a>
Per session 139 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,189 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.00139 $0.02189
Opus 5 $0.00069 $0.01094
Sonnet 5 $0.00028 $0.00438
Haiku 4.5 $0.00014 $0.00219

Measured 7d ago against content hash 78061c92147c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

diagram-design 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 7d 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-design/SKILL.md · 149 lines

How it starts

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

Diagram Design

A diagram earns its place when the arrangement itself carries meaning that a sentence or a list cannot carry as fast.

That is the whole test. Boxes-and-arrows restating a numbered list is slower than the list. A flowchart of a linear three-step process is worse than three sentences. Before drawing anything, say what the reader will understand from the shape that they would not get from the prose.

If the answer is "nothing," write the prose.

The standard

The highest-quality move is usually deletion. Every node earns its place. Target density around 4/10 — a diagram that fills its frame is almost always doing too much.

The accent color is reserved for the one or two things the reader should look at first. Everything else is ink and hairlines.

(This standard is adapted from cathrynlavery/diagram-design, MIT. See Credits.)

Choosing a form

Match the form to the relationship being shown, not to the data you happen to have.

The reader needs to understand Form
How parts are arranged and what talks to what Architecture / system map
How something moves through steps, with branches Flow
Who calls whom, in what order, over time Sequence
What states exist and what transitions between them State machine
How entities relate and what they hold Data model
What happened when, and in what order Timeline
How responsibility is divided across actors Swimlane
How options compare on two independent axes Quadrant
What sits on top of what Layer stack
How something narrows or concentrates Funnel
How sets overlap Venn
How one thing decomposes into parts Tree / nested

If the answer is "several of these," the diagram is doing too much. Split it. Two clear diagrams beat one complete one — a reader who has to decode a diagram has already lost the time the diagram was meant to save.

For per-form construction rules — what to label, where to place the accent, how to handle overflow — read references/diagram-families.md.

Read the full file on GitHub · 149 lines

Files

What ships with it

3 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. 7d ago First seen · 149 lines · 139 tokens per session scan A 78061c92147c

Subscribe to this mod's changes

diagram-design is a skill published in the GitHub repository Avinava/document-design-system (2 stars, last pushed 12d ago), licensed MIT. It adds 139 tokens to every session and 2,189 once invoked, about $0.0007 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.

Related

Other skills, from other repositories

ui-ux-laws

Priority-ordered rulebook of core UX/UI laws, cognitive-psychology principles, Nielsen's usability heuristics, and accessibility requirements that Claude must actively apply (not just cite) whenever it designs, builds, redesigns, reviews, or critiques any user interface — websites, web/mobile apps, dashboards, forms…

AmirGhl/ui-ux-laws · 203 tokens

ui-ux-audit

Comprehensive UI/UX quality audit and prevention system that catches the failures AI consistently ships, including broken or shifting layouts, text overflow, inconsistent components, missing states, poor contrast, undersized touch targets, accessibility violations, performance jank, and generic "AI slop" aesthetics.…

EnchStyle/ui-ux-audit-skill · 226 tokens

scroll-craft

Build premium scroll-driven landing pages for service, product, food, and drink brands. Plan the visitor journey, page grammar, emotional peak, and bespoke signature move. Create dimensional heroes with independent visual planes, restrained motion, and separate mobile composition. Use supplied photos and footage or…

nateherkai/scroll-craft · 177 tokens

accessibility

Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

addyosmani/web-quality-skills · 51 tokens

visual-qa

Runs rigorous visual QA across web, terminal, and paginated surfaces with screenshot evidence and a verdict. Use for any UI build or change, or when asked whether a page, component, or TUI looks right.

code-yeongyu/oh-my-openagent · 47 tokens

frontend

Builds, styles, and polishes web UI and UX. Use for any frontend, page, component, styling, layout, animation, or visual-quality task, or when asked to make an interface look or feel a certain way.

code-yeongyu/oh-my-openagent · 49 tokens