generating-diagrams

generating-diagrams is a skill for Claude Code, Codex from axiomantic/spellbook. It costs 100 tokens per session (3,843 once invoked), scanned A, original, MIT.

A method for creating diagrams from code, processes, architecture, or relationships, using formats such as Mermaid or Graphviz.

In plain words
What is it for?
It helps create flowcharts, dependency graphs, state-machine diagrams, entity-relationship diagrams, class diagrams, and sequence diagrams.
Why use it?
It makes complex flows, dependencies, state changes, and structures easier to inspect and explain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit It helps create flowcharts, dependency graphs, state-machine diagrams, entity-relationship diagrams, class diagrams, and sequence diagrams.

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

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 generating-diagrams

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/axiomantic/spellbook/generating-diagrams"><img src="https://agentmods.dev/badge/skills/axiomantic/spellbook/generating-diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,843 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.00100 $0.03843
Opus 5 $0.00050 $0.01921
Sonnet 5 $0.00020 $0.00769
Haiku 4.5 $0.00010 $0.00384

Measured 5d ago against content hash 953c8067c3f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

generating-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 5d 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/generating-diagrams/SKILL.md · 397 lines

How it starts

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

Generating Diagrams

Overview

Generate accurate, renderable, exhaustive diagrams from code, processes, instructions, or architecture. Every node justified by source material. Every reference traced to its deepest level. Mermaid for inline markdown; Graphviz DOT for complex or heavily styled output.

When to Use

  • Visualizing process flows, decision trees, or multi-phase workflows
  • Mapping dependency/invocation relationships between components
  • Documenting state machines or lifecycle transitions
  • Creating entity-relationship or class hierarchy diagrams
  • Analyzing skill, command, or instruction structure visually
  • Generating sequence diagrams for temporal interactions

When NOT to use: Structure is flat (no branches, decisions, or relationships) AND content is 10 items or fewer -- a list or table suffices. Runtime observability. Text-only documentation.

Invariant Principles

  1. Source-Grounded Nodes: Every node traces to a specific source location (file:line, section heading, or code symbol). No invented nodes.
  2. Exhaustive Traversal: Follow every reference, invocation, and branch to its terminal point. "..." and "etc." are forbidden. If too complex for one diagram, decompose into linked diagrams.
  3. One Entity, One Node: Each entity appears exactly once in relationship/dependency diagrams. Multiple connections use multiple edges, not duplicate nodes.
  4. Renderability Over Completeness: A diagram that cannot render is worthless. Always verify. When too complex for one diagram, decompose.

Quick Reference

Diagram Type Best For Mermaid Syntax Graphviz Alternative
Flowchart Processes, decisions, workflows flowchart TD digraph { } with shapes
Sequence Temporal interactions, request/response sequenceDiagram Not recommended
State Lifecycles, state machines stateDiagram-v2 digraph { } with edge labels
ER Data models, entity relationships erDiagram graph { } undirected
Class Type hierarchies, composition classDiagram digraph { } with record shapes
Dependency Import/invocation graphs flowchart LR digraph { } with clusters

Read the full file on GitHub · 397 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. 5d ago First seen · 397 lines · 100 tokens per session scan A 953c8067c3f4

Subscribe to this mod's changes

generating-diagrams is a skill published in the GitHub repository axiomantic/spellbook (10 stars, last pushed yesterday), licensed MIT. It adds 100 tokens to every session and 3,843 once invoked, about $0.0005 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

atomic-visual-options

Planning-phase visual comparison aid. Renders 2-4 side-by-side variants per decision dimension as a single throwaway, self-contained HTML file and captures the user's pick as typed terminal codes (e.g. "A2 B3"). Auto-fires on phrases like "show me a few options", "mock up some variants", "let me see this side by…

damusix/atomic-claude · 150 tokens

designmatch

Use when matching a React Native screen to a Claude Design HTML canonical at ≥95% visual parity on real Android/iOS hardware — closes the loop with a VQA stub mode, Playwright canonical renderer at 1080×2444, and a dual-metric pixelmatch + SSIM diff harness producing composite triptychs.

randomittin/heimdall · 69 tokens

desktop-brand-builder

Generate a branded Qwen Code desktop package from the Tauri desktop shell using a minimal brandId and logo. Use when the user wants a custom, white-label, or rebranded desktop client, installer, DMG/EXE/AppImage/deb, or one-click brand build on top of packages/desktop-shell.

QwenLM/qwen-code · 69 tokens

ui-mobile

Mobile UI patterns - React Native, iOS/Android, touch targets.

alinaqi/maggy · 17 tokens

brand-identity

Use when a project needs its visual foundation built or consolidated into one system: logo brief, color system in HEX/RGB/CMYK/OKLCH with proven AA contrast, type system, usage rules, and an exported W3C design-tokens.json that later skills consume. NOT the applied UI pixels (that is design), NOT the words or tone…

ericrisco/rsc-harness · 83 tokens

atomic-wiki

Conversational wiki and capture-bucket routing. Fires when the user wants a place, space, or folder for notes, research, tickets, raw dumps, or knowledge capture — checks the block in /.claude/CLAUDE.md; if the cwd is under a registered realm, creates the folder as a bucket via atomic wiki bucket add rather than a…

damusix/atomic-claude · 204 tokens