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.
git clone --depth 1 https://github.com/heathdutton/claude-d2-diagramsWrote 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/commands/heathdutton/claude-d2-diagrams/diagram)<a href="https://agentmods.dev/commands/heathdutton/claude-d2-diagrams/diagram"><img src="https://agentmods.dev/badge/commands/heathdutton/claude-d2-diagrams/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.
<a href="https://agentmods.dev/commands/heathdutton/claude-d2-diagrams/diagram"><img src="https://agentmods.dev/badge/commands/heathdutton/claude-d2-diagrams/diagram.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.00009 | $0.11105 |
| Opus 5 | $0.00005 | $0.05553 |
| Sonnet 5 | $0.00002 | $0.02221 |
| Haiku 4.5 | $0.00001 | $0.01111 |
Grade C, and why
diagram scanned grade C with 2 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 10d 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.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -fsSL https://d2lang.com/install.sh | sh -s -- Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -fsSL https://d2lang.com/install.sh | sh -s -- The source is not reproduced here
No licence file
A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.
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.
- 10d ago First seen · 1,317 lines · 9 tokens per session scan C 82a0a0a2bf2d
diagram is a command published in the GitHub repository heathdutton/claude-d2-diagrams (15 stars, last pushed 6mo ago), with no licence file. It adds 9 tokens to every session and 11,105 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
diagram
(Architect) Generate architecture diagram in Mermaid format.
octo-design-ui-ux
Design UI/UX systems with style guides, palettes, typography, and component specs.
verify
Fidelity check — rebuild a page from the extracted tokens, pixel-diff it against the live site, and score how faithfully the tokens capture the design.
design-tutorial
Interactive guided tour of Naksha — learn commands through real exercises, discover workflows, and get oriented in under 10 minutes.
anti-slop-designer
Use when a UI looks machine-made rather than decided. Violet gradients, glassmorphism everywhere, identical cards in a grid, untouched shadcn or Material defaults, emoji bullets, or copy stuffed with seamless and unlock.
theme
Switch between visual theme skins — OLED Black, Matrix, Claude Anthropic, Surprise Me.