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.
npx skills add fmind/dot --skill diagrams-as-codegit clone --depth 1 https://github.com/fmind/dotWrote 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.
[](https://agentmods.dev/skills/fmind/dot/diagrams-as-code)<a href="https://agentmods.dev/skills/fmind/dot/diagrams-as-code"><img src="https://agentmods.dev/badge/skills/fmind/dot/diagrams-as-code/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.
<a href="https://agentmods.dev/skills/fmind/dot/diagrams-as-code"><img src="https://agentmods.dev/badge/skills/fmind/dot/diagrams-as-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.00916 |
| Opus 5.5 | $0.00014 | $0.00366 |
| Sonnet 5.5 | $0.00007 | $0.00183 |
| Haiku 4.5 | $0.00003 | $0.00092 |
Grade A, and why
diagrams-as-code 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Diagrams as Code
Use diagrams for boundaries, flows, lifecycles, and comparisons (tables or lists when non-spatial). Simple and pleasant is default: show the plain mental model in 3 to 5 soft-colored boxes (~10 to 15 words total) for flows, or a dark-mode-safe framed mini C1/C2 card (1px #9AA0A6 rounded #FFFFFF card: inputs -> grouped core container with 3 crisp inner boxes -> outputs) for READMEs and architecture briefs, lifting raw flags or protocols into a bottom table.
Plot data charts only when a comparison or baseline adds real decision value; use large readable labels (15 to 18pt on full-width slides), stamp [DRAFT] on unverified draft charts, and default to an editorial bar or line chart with light scale, baseline line, winner highlight, and delta (reserve multi-container C4 graphs and dense diagnostics strictly for opt-in engineering docs). Apply client branding (ask if missing; never mix), keep existing identities, or use ~/.agents/DESIGN.md (fmind/theme) and ~/.agents/themes/ (edit upstream only). Cut chrome, gradients, and AI imagery.
Workflow
- Pick a guide below:
typst(default calm soft-colored flows and composed cards),charts(Altair or Matplotlib editorial plots),mermaid(GitHub/PR/Zensical fenced blocks),d2(opt-in routed architecture graphs and single-service C4layers:),likec4(opt-in multi-container C4 models),svg(logos and marks),recording(VHS demos),variants(open look or rejected draft). - Render and inspect: keep editable sources and inspect PNG/SVG directly (open whitespace,
>= 12pxtext,>= 8ptchart ticks, fonts,>= 4.5:1contrast, light/dark legibility).
Task guides
- charts: Plot quantitative data charts with Altair/vl-convert and Matplotlib: honest scales, CVD palettes, PNG/SVG.
- d2: Author D2 diagram sources, standalone layouts, theming, and vector/raster exports.
- likec4: Author opt-in LikeC4 C4 architecture models, validate in CI, and build interactive static explorers.
- mermaid: Author portable Mermaid diagrams in Markdown and GitHub: frontmatter config, validation, and rendering.
- recording: Record reproducible, isolated terminal demos with VHS, ttyd, and FFmpeg.
- svg: Author self-contained SVG logos, geometric marks, and live-text visual checks.
- typst: Compose branded illustrations, concept diagrams, and cards in Typst stdlib with 2x PNG/SVG exports.
- variants: Generate numbered logo, cover, or illustration variants with light/dark contact sheets.
What ships with it
12 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.
- references/charts.md 4.5 KB
- references/d2.md 3.2 KB
- references/likec4.md 3.4 KB
- references/mermaid.md 4.4 KB
- references/recording/GUIDE.md 4.6 KB
- references/recording/templates/demo.tape 523 B
- references/svg/GUIDE.md 3.8 KB
- references/svg/scripts/check_svg.py 13 KB runs code
- references/svg/templates/illustration.svg 5.6 KB
- references/typst.md 4.5 KB
- references/variants/GUIDE.md 1.4 KB
- references/variants/scripts/gallery.py 5.8 KB runs code
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.
- 2d ago Changed e7cd2d609c7c
- 4d ago Changed 8a5721fea9aa
- 5d ago Changed · +2 lines b779a2a1e0a4
- 7d ago Changed · +1 lines · +4 tokens per session 45a661d37d32
- 12d ago Changed · -1 tokens per session 52514701d86a
- 15d ago Changed · -2 lines de751a4d7469
- 16d ago Changed 2846685eaf9c
- 20d ago Changed · +2 lines · +3 tokens per session 42b6f53c6c0c
- 21d ago Changed · +4 lines · +9 tokens per session 5c575f155812
- 23d ago First seen · 36 lines · 19 tokens per session scan A 5e83150ece2e
diagrams-as-code is a skill published in the GitHub repository fmind/dot (14 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 916 once invoked, about $0.0001 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-17.
diagrams-as-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diagrams-as-codefmind/dot | Skill | 14 | yesterday | MIT | A | 34 | Claude Code, Codex |
| fmind-visualsfmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 53 | Claude Code, Codex |
| mermaidfmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 33 | Claude Code, Codex |
| d2fmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 35 | Claude Code, Codex |
| product-design-reviewfmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 47 | Claude Code, Codex |
| manage-themeurmzd/dotfiles | Skill | 6 | today | Apache-2.0 | A | 187 | Claude Code |
| python-stackfmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 41 | Claude Code, Codex |