diagrams

diagrams is a skill for Claude Code, Codex from nimadorostkar/Claude-Skills-collection. It costs 37 tokens per session (1,312 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 CodeCodex

Written for no agent in particular: nothing here depends on one.

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, Codex.

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 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,312 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.00037 $0.01312
Opus 5 $0.00018 $0.00656
Sonnet 5 $0.00007 $0.00262
Haiku 4.5 $0.00004 $0.00131

Measured 9d ago against content hash 86869f536936, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 9d 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. 9d 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 (26 stars, last pushed 25d ago), licensed MIT. It adds 37 tokens to every session and 1,312 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

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

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build landing pages, websites, dashboards, web components, or any frontend UI. Generates creative, polished code that avoids generic AI aesthetics.

tobihagemann/turbo · 48 tokens

prototype

Build a self-contained local prototype at .turbo/prototypes/ .html, drive it, and hand it to the user to settle unknowns that prose cannot answer. Use when the user asks to "prototype this", "build a prototype", "mock this up", "show me what it would look like", "let me try the interaction first", or when a decision…

tobihagemann/turbo · 88 tokens

user-experience

Apply a UX lens to a user-facing change: whether it serves the user's real goal and whether the path through it holds together, using the Understanding, Bridging, and Flowing contexts. Use when scoping, planning, or assessing any change that affects what a user sees or does. Loaded as a lens during planning and…

tobihagemann/turbo · 71 tokens

slop-eval

Objectively evaluate a UI/web design against the pols.dev anti-slop design law: detect catalogued slop tells with cited evidence, score 8 weighted axes (color, type, components, layout, motion, execution, signature, cohesion), and emit a Slop Report with a 0–100 Slop Index and grade. Use when the user asks to…

fabricioctelles/skills · 142 tokens

design-md-validator

Validate DESIGN.md files against the official Google specification using the @google/design.md CLI linter. Works with local files. Use when the user wants to lint a DESIGN.md, check spec compliance, find broken token references, verify WCAG contrast ratios, diff two versions, export tokens to Tailwind or DTCG format…

fabricioctelles/skills · 170 tokens