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 Rune-kit/rune --skill diagramgit clone --depth 1 https://github.com/Rune-kit/runeWrote 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/rune-kit/rune/diagram)<a href="https://agentmods.dev/skills/rune-kit/rune/diagram"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/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/skills/rune-kit/rune/diagram"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/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.00074 | $0.02427 |
| Opus 5.5 | $0.00030 | $0.00971 |
| Sonnet 5.5 | $0.00015 | $0.00485 |
| Haiku 4.5 | $0.00007 | $0.00243 |
Grade A, and why
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 8d 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 — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.
diagram
Purpose
Draws editorial system, flow, sequence, state, ER, swimlane, loop, layer-stack, data-flow, and process diagrams as self-contained HTML files (inline CSS + inline SVG) — no Mermaid renderer, no external images. Ten visual types plus seven semantic patterns, a 9-node complexity budget, orthogonal connectors, and a machine-checked geometry gate. Complements asset-creator (icons/OG) and slides (Marp + Mermaid).
Triggers
- "draw the system", "architecture diagram", "how do the pieces connect"
- "sequence of calls", "request flow", "state machine", "what states does X have"
- "data model", "entity relationship", "swimlane", "who does what in this process"
.mmd/.mermaid/ fencedmermaidblock — "redraw this Mermaid", "make this presentable"- Called by other skills needing a visual for a reader
Not for logos, OG images, social banners (→ asset-creator), or Marp decks (→ slides).
Called By (inbound)
docs(L2): architecture and flow diagrams in generated docsdesign(L2): system and data-model visuals during designba(L2): requirement flows and state machinesscout(L2): topology maps of scanned codebasesslides(L3): diagram slidesmarketing(L2): editorial visuals for posts- User: direct invocation
(Callers point here via suggested_next; no inbound listen signal is required.)
Calls (outbound)
None — pure L3 utility.
Data Flow
request ("architecture of X")
→ resolve tokens (design-system → conventions → style-guide roles)
→ pick ONE pattern (if behavior is load-bearing) → ONE of 10 types
→ write .rune/diagrams/<slug>.html [+ -dark]
→ python scripts/self_check.py && verify_geometry.py
→ emit media.diagram.composed
Workflow
Step 1: Resolve tokens
Read .rune/design-system.md, then .rune/conventions.md, then references/style-guide.md. Map whatever names colors/fonts onto the semantic roles (paper, ink, muted, accent, link). If neither file names fonts, use the shipped defaults. Do not force a specific serif/sans/mono family over a project that names its own.
What ships with it
25 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.
- assets/template-dark.html 2.7 KB
- assets/template.html 2.7 KB
- evals.md 5.8 KB
- examples/architecture.html 11 KB
- examples/flowchart.html 7.2 KB
- examples/README.md 826 B
- references/connectors.md 8.3 KB
- references/import-mermaid.md 7.5 KB
- references/output-spec.md 8.6 KB
- references/semantic-patterns.md 8.4 KB
- references/style-guide.md 4.9 KB
- references/type-architecture.md 2.5 KB
- references/type-data-flow.md 3.3 KB
- references/type-er.md 1.3 KB
- references/type-flowchart.md 1.2 KB
- references/type-layers.md 1.7 KB
- references/type-loop.md 3.5 KB
- references/type-process.md 3.2 KB
- references/type-sequence.md 4.7 KB
- references/type-state.md 1.3 KB
- references/type-swimlane.md 1.2 KB
- scripts/fixtures/sample-flowchart.mmd 290 B
- scripts/mermaid_extract.py 39 KB runs code
- scripts/self_check.py 13 KB runs code
- scripts/verify_geometry.py 4.9 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.
- 8d ago First seen · 185 lines · 74 tokens per session scan A d92a4f646b3e
diagram is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed 2d ago), licensed MIT. It adds 74 tokens to every session and 2,427 once invoked, about $0.0003 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-11-22.
diagram compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diagramRune-kit/rune | Skill | 96 | 2d ago | MIT | A | 74 | Claude Code |
| design-itsmallnest/goal-workflow | Skill | 303 | 2mo ago | MIT | A | 95 | Claude Code |
| create-diagramdiagrid-labs/dapr-skills | Skill | 13 | 5d ago | MIT | A | 50 | Claude Code |
| tddsentimony/skills | Skill | 8 | today | MIT | A | 43 | Claude Code |
| frontend-craftsentimony/skills | Skill | 8 | today | MIT | A | 99 | Claude Code |
| design-reviewerHarshvardhan86/claude-wave-plugin | Skill | 14 | 1mo ago | MIT | A | 46 | Claude Code |
| using-agent-skillsvanja-emichi/a0_agent_skills | Skill | 6 | 3mo ago | MIT | A | 95 | Claude Code, Codex |