diagram

diagram is a skill for Claude Code from enjalot/moonshine. It costs 67 tokens per session (4,200 once invoked), scanned A, original, MIT.

A guide to designing and building clear diagrams for a technical article about a moonshine still. It covers what to show, how relationships and process order should read, and how to match an article’s visual style.

In plain words
What is it for?
Use it to create system, relationship, process, or architecture diagrams, including labelled boxes and icon-based figures, when adding or revising illustrations in the article.
Why use it?
It addresses common diagram problems such as unclear connections, inconsistent icons, and figures that do not match the surrounding article. It separates content decisions from visual styling and implementation.

Skill for Claude Code

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

Part of the moonshine plugin — 6 skills, 1 hook shipped together

Good fit Use it to create system, relationship, process, or architecture diagrams, including labelled boxes and icon-based figures, when adding or revising illustrations in the article.

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

Made for: Claude Code.

Or install moonshine, the plugin that ships this one along with the rest of its 6 skills, 1 hook.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/enjalot/moonshine/diagram"><img src="https://agentmods.dev/badge/skills/enjalot/moonshine/diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,200 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.00067 $0.04200
Opus 5.5 $0.00027 $0.01680
Sonnet 5.5 $0.00013 $0.00840
Haiku 4.5 $0.00007 $0.00420

Measured 4d ago against content hash 39f0ca529d19, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diagram 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 4d 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.

plugins/moonshine/skills/diagram/SKILL.md · 145 lines

How it starts

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

Diagram: Draw a System So It Reads the First Time

A diagram in a moonshine article shows how named things relate: what talks to what, what contains what, what happens in what order, what changes between today and a proposal. This skill covers the decisions an author kept having to correct by hand across several real articles. It separates three layers, because they vary differently from article to article:

  • Information design (what the diagram is for, what gets a node, what a line means). These lessons recurred in every article studied. Treat them as defaults and say so when you depart from one.
  • Visual style (tiles, lines, colour, type). One look was reused across several articles, and others were accepted too. Match what the article has. With nothing to match, start from the board look described below and expect the author to steer it.
  • Technical implementation (which component draws it). The built-in diagram draws both labelled boxes and icon tiles, and the author can rearrange and restyle it in the browser, so it is the default. A custom figure is for what it cannot do.

Read ../moonshine/STILL.md ("Diagrams", "How a Figure Gets Added") and ../moonshine/VISUALS.md ("Phones and touch") first. This skill adds to them.

1. Look at what the article already has

Before designing anything, find the article's existing diagrams and any sibling article the user names ("like the one in X").

  • Open src/figures/ and content/figures/. Note which diagrams are DiagramSpecs and which are custom figures on a shared kit (a folder such as board/, kit/, prims/, or a glyph file several figures import). If the article has a kit, build on it without changing it: add a glyph or a link family in its own grammar when the subject needs one.
  • When the user points at another article, what is being borrowed is the grammar: how a thing is drawn, how a link is drawn and named, how a boundary is drawn. The subject's nouns are new each time. Copy that article's glyphs (register them with registerGlyphs) and its choices of tone, label side and link family; copy its kit folder only if the new diagram needs something the built-in diagram cannot draw.
  • Render the existing figures and look at them. Note the surface (floor or plain), where labels sit, how links are named, what dashed means, what colour means. Your diagram uses the same answers.
  • If the article has no diagrams and no sibling to follow, start from the tile look in section 4.

Read the full file on GitHub · 145 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. 4d ago Changed · -15 tokens per session 39f0ca529d19
  2. 20d ago First seen · 145 lines · 82 tokens per session scan A ffa52b0f9e26

Subscribe to this mod's changes

diagram is a skill published in the GitHub repository enjalot/moonshine (55 stars, last pushed 5d ago), licensed MIT. It adds 67 tokens to every session and 4,200 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-11-15.

Related

diagram compared with skills from other repositories

diagram next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagramenjalot/moonshineSkill555d agoMITA67Claude Code
webgl-holographic-foilnexu-io/open-designSkill111ktodayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill111ktodayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill111ktodayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34ktodayMITA52Codex
glance-canonical-layoutsandroid/skillsSkill11ktodayApache-2.0A56Claude Code
accessibilitymicrosoft/hve-coreSkill1.7ktodayMITA47Claude Code