diagrams

diagrams is a skill for Claude Code from nimadorostkar/Claude-Skills-collection. It costs 74 tokens per session (1,349 once invoked), scanned A, original, MIT.

A method for creating technical diagrams as text, commonly with Mermaid, so the diagrams can live beside code in version control. It supports architecture, sequence, flow, state, entity-relationship, and schedule diagrams.

In plain words
What is it for?
Use it to document architectures, service interactions, data flows, state machines, request paths, and decision processes in READMEs or design documents.
Why use it?
It avoids outdated image files in wikis and makes diagrams reviewable and editable like source code. Updating the diagram becomes part of updating the system it describes.

Skill for Claude Code

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

Part of the documents plugin — 6 skills shipped together

Good fit Use it to document architectures, service interactions, data flows, state machines, request paths, and decision processes in READMEs or design documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nimadorostkar/claude-skills-collection/diagrams
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 nimadorostkar/Claude-Skills-collection --skill diagrams
Clone the repo
git clone --depth 1 https://github.com/nimadorostkar/Claude-Skills-collection

Made for: Claude Code.

Or install documents, the plugin that ships this one along with the rest of its 6 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 diagrams

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/diagrams"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/diagrams.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 1,349 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.01349
Opus 5.5 $0.00030 $0.00540
Sonnet 5.5 $0.00015 $0.00270
Haiku 4.5 $0.00007 $0.00135

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

Security

Grade A, and why

diagrams 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 1mo 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/documents/diagrams/SKILL.md · 126 lines

How it starts

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

Diagrams

Purpose

Produce technical diagrams as text, so they live in version control, appear in code review, and can be corrected when the system changes — instead of a PNG in a wiki that was accurate two years ago.

When to Use

  • Documenting an architecture, a data flow, or a request path.
  • Explaining a sequence of interactions between services.
  • Visualizing a state machine or a decision flow.
  • Adding a diagram to a README, an ADR, or a design document.

Capabilities

  • Mermaid: flowcharts, sequence diagrams, state diagrams, ER diagrams, Gantt.
  • Diagram-type selection.
  • Layout control and readability.
  • Rendering to SVG or PNG for contexts that do not support Mermaid.

Inputs

  • The system, process, or interaction being described.
  • The audience and what they need to understand from it.

Outputs

  • A diagram as text, in the repository, next to the code it describes.
  • A rendered image, where the destination cannot render Mermaid.

Workflow

  1. Choose the type by the question — Sequence diagrams answer "what talks to what, in what order". Flowcharts answer "what are the paths through this". State diagrams answer "what states exist and how do you move between them". Using the wrong one produces a diagram that is technically correct and useless.
  2. Draw one thing — A diagram showing the architecture, the data flow, and the deployment topology at once shows none of them.
  3. Label the edges — An unlabelled arrow between two boxes conveys almost nothing. "publishes OrderPlaced" conveys a great deal.
  4. Keep it under about fifteen nodes — Beyond that, it is a map, not a diagram, and nobody will read it.
  5. Put it in version control — Next to the code. A diagram that is not reviewed alongside the change it describes will drift, silently.

Best Practices

  • A diagram that cannot be updated in a pull request will not be updated. That is the entire argument for diagrams-as-code over a drawing tool.
  • Unlabelled arrows are the most common diagram defect. The relationship between two components is the information; the boxes are just anchors.
  • Trust boundaries, when relevant, should be visible. A diagram that does not distinguish "inside our network" from "the public internet" is missing the thing that matters for a security review.
  • Show the failure path, not just the happy one, in a sequence diagram of anything important. The interesting part of a payment flow is what happens when the gateway times out.
  • Do not attempt to show every component. A diagram is an abstraction; if it were complete, it would be the code.
  • Render to SVG for documentation sites — it scales and the text remains selectable.

Read the full file on GitHub · 126 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. 1mo ago Changed · +37 tokens per session dde857d23ba3
  2. 2mo ago First seen · 126 lines · 37 tokens per session scan A 86869f536936

Subscribe to this mod's changes

diagrams is a skill published in the GitHub repository nimadorostkar/Claude-Skills-collection (41 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 1,349 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-09-03.

Related

diagrams compared with skills from other repositories

diagrams next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagramsnimadorostkar/Claude-Skills-collectionSkill41todayMITA74Claude Code
customer-journey-mapmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA86Claude Code, Codex
user-research-synthesismohitagw15856/pm-claude-skillsSkill1.6ktodayMITA114Claude Code, Codex
explorer-interface-briefmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA97Claude Code
design-handoff-briefmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA83Claude Code
architectural-programme-briefmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA109Claude Code
architecture-client-presentationmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA117Claude Code