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/MichelKerkmeester/skilled-agent-harness_spec-driven-loopsWrote 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/michelkerkmeester/skilled-agent-harness_spec-driven-loops/export-diagram)<a href="https://agentmods.dev/commands/michelkerkmeester/skilled-agent-harness_spec-driven-loops/export-diagram"><img src="https://agentmods.dev/badge/commands/michelkerkmeester/skilled-agent-harness_spec-driven-loops/export-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/michelkerkmeester/skilled-agent-harness_spec-driven-loops/export-diagram"><img src="https://agentmods.dev/badge/commands/michelkerkmeester/skilled-agent-harness_spec-driven-loops/export-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.00016 | $0.00458 |
| Opus 5 | $0.00008 | $0.00229 |
| Sonnet 5 | $0.00003 | $0.00092 |
| Haiku 4.5 | $0.00002 | $0.00046 |
Grade A, and why
export-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 6d 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.
This is a copy
100% identical to export-diagram — 11 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
Export the diagram HTML at $1 to .svg and/or .png, following the procedure documented in skills/diagram-design/references/export.md. Treat that reference as the source of truth — don't reimplement the logic here.
Full argument string: $ARGUMENTS
Defaults
- Produce both
.svgand.pngnext to the source (e.g.diagram.html→diagram.svg+diagram.png). - PNG renders at
device_scale_factor=2.
Flags
--svg-only— emit only the SVG. Skip Playwright entirely.--png-only— emit only the PNG.--scale=1/--scale=2/--scale=3— override the PNG device scale factor. Default2.--output=<path>— override the output base path; the format extension is appended. Applies to both formats when both are produced.
Required behaviour
- No source path provided → ask the user which
.htmlfile to export. Don't guess. - Source is
assets/index.html(the gallery, multiple SVGs in one file) → refuse and ask which specific diagram file. Per the reference's edge-case section. - Source has no
<svg>block → refuse and tell the user; don't write anything. - PNG requested but Playwright not installed → surface the install instruction from the reference verbatim and stop. Do not auto-install.
- PNG requested with
--scaleoutside {1,2,3} → reject; valid values are 1, 2, 3.
After producing the outputs, report the file paths and sizes back to the user.
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.
- 6d ago Changed · +1 lines fac208d4efc6
- 8d ago First seen · 37 lines · 16 tokens per session scan A 729584e6a347
export-diagram is a command published in the GitHub repository MichelKerkmeester/skilled-agent-harness_spec-driven-loops (35 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 458 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to export-diagram, differing in 11 lines, and is treated as a copy.
Other commands, from other repositories
profile
Save, load, inspect, update, reset, or delete diagram-design client profiles.
ui-flow-review
Review menus, HUD, navigation, and player flow from a UX perspective.
responsive-design-specialist
Use when a layout breaks between sizes. Arbitrary breakpoints, type that does not scale, images that blow out the grid, or a desktop design retrofitted onto mobile.
ppt-image2-editable-rebuild
Rebuild image2 or imagegen reference slides as editable PowerPoint decks.
p3-ux-wireframes
Creates wireframes (ASCII art) for the most important screens with interaction descriptions.
team-ui
Orchestrate UI/UX design team.