diagrams

diagrams is a skill for Claude Code from larsboes/Axon. It costs 150 tokens per session (1,506 once invoked), scanned A, original, MIT.

A diagram-rendering tool that turns Mermaid text into PNG images. Mermaid is a text format for describing diagrams such as flows, trees, decisions, and matrices.

In plain words
What is it for?
Use it to derive a Mermaid theme from an artifact palette, render diagram images, and check that the rendering setup is available.
Why use it?
It keeps diagram colours tied to the palette of the document or slide deck that contains them, avoiding a separately maintained colour scheme. It also pins the rendering setup for repeatable output.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the presentations plugin — 2 skills shipped together

Good fit Use it to derive a Mermaid theme from an artifact palette, render diagram images, and check that the rendering setup is available.

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

Made for: Claude Code.

Or install presentations, the plugin that ships this one along with the rest of its 2 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/larsboes/axon/diagrams/github.svg)](https://agentmods.dev/skills/larsboes/axon/diagrams)
Your own site
<a href="https://agentmods.dev/skills/larsboes/axon/diagrams"><img src="https://agentmods.dev/badge/skills/larsboes/axon/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/larsboes/axon/diagrams"><img src="https://agentmods.dev/badge/skills/larsboes/axon/diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,506 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.00150 $0.01506
Opus 5.5 $0.00060 $0.00602
Sonnet 5.5 $0.00030 $0.00301
Haiku 4.5 $0.00015 $0.00151

Measured 1mo ago against content hash 568f38c997d8, 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.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/diagramkit/__init__.py, scripts/diagramkit/__main__.py, scripts/diagramkit/cli.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.

Packs/presentations/skills/diagrams/SKILL.md · 127 lines

How it starts

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

Diagrams

A diagram source is text. A figure is the PNG it renders to. This skill turns the first into the second with the colours of the artifact that will embed it.

The tool surface is <skill>/scripts/diagrams theme|render|doctor. Python runs through uv, which pins the interpreter. The renderer is pinned in the code, not floating.

The one idea

The palette is the source, and the renderer theme is derived. A deck already carries a palette in theme.json. A paper carries one in whatever file its plot tooling reads. A diagram must not have a third one, because a diagram authored in its own colours is the figure that makes the slides around it look borrowed.

So the Mermaid theme is never hand-written. diagrams theme reads a palette and writes a renderer config. Change accent in theme.json and every diagram follows on the next render.

what Mermaid needs where it comes from
node fill, node border, text the theme's diagram.node_fill, accent, ink
edges and arrows accent
cluster background and border paper, diagram.cluster_edge
secondary and tertiary surfaces secondary_light, paper
stroke width, wrapping width layout defaults, overridable from diagram

The full table is in references/mermaid.md, with the layout defaults and the measurement behind each one.

Which roles a palette must carry is this Pack's contract, and it is held as a GATE rather than a shared file. Each skill names its own required roles — this skill's NEEDED in theme.py, slide-deck's REQUIRED_ROLES in its own — because a skill has to be able to run from its own directory. What keeps them honest is tools/check-presentations-theme-contract.sh, which fails when a role required here is not one a deck-valid theme defines. That is the property that matters; a file both skills read was tried and removed, because it made the source skill incomplete and was copied into all four skills of the Pack when two read it.

Read the full file on GitHub · 127 lines

Files

What ships with it

8 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. 1mo ago Changed · +13 lines 568f38c997d8
  2. 1mo ago First seen · 114 lines · 150 tokens per session scan A 33bff3036483

Subscribe to this mod's changes

diagrams is a skill published in the GitHub repository larsboes/Axon (1 stars, last pushed 1mo ago), licensed MIT. It adds 150 tokens to every session and 1,506 once invoked, about $0.0006 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-15.

Related

diagrams compared with skills from other repositories

diagrams next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagramslarsboes/AxonSkill11mo agoMITA150Claude Code
webgl-holographic-foilnexu-io/open-designSkill106ktodayApache-2.0A41Claude Code, Codex
webgl-liquid-iridescencenexu-io/open-designSkill106ktodayApache-2.0A41Claude Code, Codex
visual-designPinvou/pinvou-agentSkill2.9ktodayMITA152Claude Code, Codex
architecture-designCoWork-OS/CoWork-OSSkill537todayMITA21Claude Code, Codex
infographicPM-Shawn/Abu-CoworkSkill4193d agoApache-2.0A71Claude Code
starcat-ui-prototypestarcat-app/StarcatSkill215todayMITA85Claude Code, Codex