x9-diagrams

x9-diagrams is a skill for Claude Code from xonika9/agent-skills. It costs 132 tokens per session (1,367 once invoked), scanned A, original, MIT.

A diagram-making and review guide for Excalidraw, Mermaid, and draw.io, which are tools for creating visual explanations of systems and processes. It helps choose both the right kind of diagram and the file format.

In plain words
What is it for?
Use it to create, review, or convert flowcharts, sequences, architectures, data models, timelines, hierarchies, and comparisons.
Why use it?
It prevents choosing a format before deciding what relationship the diagram needs to show. It also keeps the editable source and the visual result correct.

Skill for Claude Code

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

Part of the x9-agent-skills plugin — 18 skills shipped together

Good fit Use it to create, review, or convert flowcharts, sequences, architectures, data models, timelines, hierarchies, and comparisons.

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

Made for: Claude Code.

Or install x9-agent-skills, the plugin that ships this one along with the rest of its 18 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 x9-diagrams

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xonika9/agent-skills/x9-diagrams"><img src="https://agentmods.dev/badge/skills/xonika9/agent-skills/x9-diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,367 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.00132 $0.01367
Opus 5 $0.00066 $0.00683
Sonnet 5 $0.00026 $0.00273
Haiku 4.5 $0.00013 $0.00137

Measured 11d ago against content hash 1dd8bb006bd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

x9-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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check_scene.py, scripts/test_check_scene.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.

skills/x9-diagrams/SKILL.md · 77 lines

How it starts

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

Diagrams

Design, create, review, and convert diagrams while keeping the visual argument and the native source independently correct.

The machine-readable onboarding contract lists external prerequisites.

Resolve two decisions

First choose the view that expresses the relationship: flowchart, sequence, state, architecture, data model, hierarchy, timeline, comparison, or another supported view. Then choose the delivery format. Do not let a familiar file format decide the diagram type.

An explicit format wins when it can express the required structure. If it creates a material limitation, explain the limitation and offer an alternative without silently changing the deliverable.

Use this matrix when the format is open:

Constraint Excalidraw Mermaid draw.io
Manual coordinate control Strong Weak; layout is automatic Strong
Collaborative visual editing Strong in Excalidraw Depends on the host Strong in diagrams.net
Text diff and code review Poor Strong Moderate with uncompressed XML
Automatic layout Manual-first Strong Available, but manual geometry remains explicit
Free spatial composition Strong Limited Strong
Pages, layers, containers, shape libraries Limited Limited and renderer-dependent Strong
Direct Markdown/chat rendering Rare Strong when supported Rare
Native editability after handoff .excalidraw Mermaid source in a compatible editor .drawio XML
Reliable validation and rendering Needs checker plus faithful renderer Needs target parser plus renderer Needs XML checks plus compatible editor/exporter

Prefer the format whose native editor, validator, and renderer are available in the delivery environment. If none can provide visual proof, produce the requested native source only when still useful and label the result DEGRADED.

Own the visual argument

Settle one question, audience, delivery viewport, entry point, and dominant reading direction. Preserve exact facts and identifiers while shortening explanatory labels. Model semantic nodes, boundaries, and relationships before syntax or coordinates.

Read the full file on GitHub · 77 lines

Files

What ships with it

7 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. 11d ago First seen · 77 lines · 132 tokens per session scan A 1dd8bb006bd6

Subscribe to this mod's changes

x9-diagrams is a skill published in the GitHub repository xonika9/agent-skills (4 stars, last pushed 6d ago), licensed MIT. It adds 132 tokens to every session and 1,367 once invoked, about $0.0007 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-08-31.