diagramming

diagramming is a skill for Claude Code, Codex from i9wa4/dotfiles. It costs 41 tokens per session (395 once invoked), scanned A, original, MIT.

Guidance for creating, editing, checking, previewing, and exporting draw.io and Mermaid diagrams. Mermaid is a text format for diagrams, while draw.io files can be edited visually.

In plain words
What is it for?
Use it for architecture diagrams, workflow charts, Mermaid diagrams in Quarto documents, and diagram previews or exports.
Why use it?
It keeps diagram sources editable and helps catch layout, color, asset, and rendering problems before diagrams are shared.

Skill for Claude CodeCodex

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

Good fit Use it for architecture diagrams, workflow charts, Mermaid diagrams in Quarto documents, and diagram previews or exports.

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

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 diagramming

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/i9wa4/dotfiles/diagramming"><img src="https://agentmods.dev/badge/skills/i9wa4/dotfiles/diagramming.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 395 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.00041 $0.00395
Opus 5 $0.00020 $0.00198
Sonnet 5 $0.00008 $0.00079
Haiku 4.5 $0.00004 $0.00040

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

Security

Grade A, and why

diagramming 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 3d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/check-drawio-svg-overlaps.mjs, scripts/convert-drawio-to-png.sh, scripts/find_aws_icon.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/diagramming/SKILL.md · 49 lines

What it actually says

Diagramming

Owns repo-local diagramming guidance for draw.io and Mermaid workflows. Use this skill for diagram source edits, preview/export decisions, layout checks, color/asset conventions, and diagram-focused validation.

1. Scope

  • draw.io .drawio source creation, editing, review, and export.
  • draw.io layout, color palette, shape vocabulary, and AWS icon usage.
  • Mermaid diagrams in Quarto revealjs .qmd files.
  • Mermaid CLI preview, %%{init}%% configuration, CSS overrides, and layout validation.
  • Diagram-focused scripts and reference assets.

Out of scope:

  • Data-platform workflows; use data-platform.
  • GitHub issue, PR, review, or public-surface mechanics; use dev-platform-workflow.
  • Generic Bash, Python, Nix, Markdown, or implementation-loop work; use programming.
  • Agent harness runtime, hooks, postman routing, or installed agent outputs; use dotfiles.

2. Workflow

  1. Inspect the diagram source, nearby conventions, and git status.
  2. Choose the focused reference below before editing or validating diagrams.
  3. Preserve editable source files; treat generated exports as reproducible outputs unless the surrounding workflow requires them.
  4. Verify rendered dimensions, text contrast, and overlap when diagram layout changes are user-visible.
  5. Run the nearest diagram or Markdown checks before reporting success.

3. References

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. 3d ago Changed · +1 lines 376de8e22366
  2. 9d ago First seen · 48 lines · 41 tokens per session scan A b01f94fa6be7

Subscribe to this mod's changes

diagramming is a skill published in the GitHub repository i9wa4/dotfiles (11 stars, last pushed 2d ago), licensed MIT. It adds 41 tokens to every session and 395 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-08-30.