creating-docs-diagrams

creating-docs-diagrams is a skill for Claude Code, Codex from rivet-dev/actors. It costs 36 tokens per session (1,994 once invoked), scanned A, original, Apache-2.0.

A workflow for creating accessible, hand-written SVG diagrams in documentation. SVG is a scalable image format that stays sharp at different sizes.

In plain words
What is it for?
Use it when adding or replacing diagrams in documentation pages, especially when converting Mermaid diagrams into inline SVG; cookbook diagrams remain Mermaid.
Why use it?
It makes architecture and sequence diagrams easier to control, reuse, and display consistently while preserving their connections and labels.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/rivet-dev/actors/creating-docs-diagrams
Any agent
npx skills add rivet-dev/actors --skill creating-docs-diagrams
Clone the repo
git clone --depth 1 https://github.com/rivet-dev/actors

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 creating-docs-diagrams

README.md
[![agentmods](https://agentmods.dev/badge/skills/rivet-dev/actors/creating-docs-diagrams.svg)](https://agentmods.dev/skills/rivet-dev/actors/creating-docs-diagrams)
Your own site
<a href="https://agentmods.dev/skills/rivet-dev/actors/creating-docs-diagrams"><img src="https://agentmods.dev/badge/skills/rivet-dev/actors/creating-docs-diagrams.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00036 $0.01994
Opus 5 $0.00018 $0.00997
Sonnet 5 $0.00007 $0.00399
Haiku 4.5 $0.00004 $0.00199

Measured 4d ago against content hash 7c984ed2bf2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

creating-docs-diagrams 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 4d 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.

.claude/skills/creating-docs-diagrams/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Creating Docs Diagrams

Create literal, responsive raw SVG that fits Rivet's self-hosted perimeter aesthetic.

Scope

  • Apply raw SVG conversion only to documentation pages under website/src/content/docs/**/*.mdx.
  • Keep every diagram under website/src/content/cookbook/** as Mermaid. Do not convert cookbook Mermaid to raw SVG, including during a repository-wide diagram cleanup.
  • Treat posts, changelog entries, and other content trees as out of scope unless the user explicitly names them.

Workflow

  1. Inventory Mermaid before editing with rg -n '```mermaid' website/src/content/docs and record every node, boundary, edge direction, edge label, and line break. Do not broaden this search into cookbooks or posts for conversion work.
  2. Choose an architecture pattern for topology and nested deployment boundaries, or a sequence pattern for time-ordered messages between participants.
  3. Replace each block with literal inline <svg>...</svg>. Do not use Mermaid, scripts, imported components, external SVGs, or image assets.
  4. Preserve every semantic detail. Keep <--> bidirectional with markers at both ends, --> directional, nested boundaries intact, and explicit <text> lines for labels that used <br/>.
  5. Give every SVG role="img" and a concise but complete aria-label. Give marker IDs unique, descriptive names per page and SVG.
  6. Start the website preview and screenshot every changed diagram at a desktop viewport and at 390 CSS pixels. In Playwright, pass viewport, not viewportSize, and assert window.innerWidth before trusting a mobile capture. Activate every tab so hidden diagrams are also captured.
  7. Keep sticky site chrome out of element screenshots by scrolling the target below it or hiding the chrome only for the capture. For a horizontally scrollable diagram, capture the full diagram at desktop plus its left and right scroll extents at 390px; record clientWidth and scrollWidth to confirm the screenshots exercise real overflow.
  8. Inspect screenshot pixels, not only DOM bounds. Reject excessive dead space, unnecessarily long arrows, text touching a line, paths crossing unrelated nodes, clipped labels, or inconsistent node styling. Fix and recapture until every diagram passes.
  9. Run rg -n '```mermaid|foreignObject|<style' <changed-pages> as appropriate, then run Astro or the website build validation.

Read the full file on GitHub · 74 lines

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. 4d ago First seen · 74 lines · 36 tokens per session scan A 7c984ed2bf2e

Subscribe to this mod's changes

creating-docs-diagrams is a skill published in the GitHub repository rivet-dev/actors (6,102 stars, last pushed today), licensed Apache-2.0. It adds 36 tokens to every session and 1,994 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.

Related

Other skills, from other repositories