Kroki Diagrams — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Kroki Diagrams (Plugin) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
Aggregate score unchanged between these scans.
The primary manifest — the file an agent reads to learn what this artifact does.
<p> <img src="banner.png" alt="Kroki Diagrams overview banner" width="1200"> </p>
A distributable agent skill for turning architecture ideas, flows, schemas, and dependency maps into clean, versionable diagrams.
Kroki is a diagram rendering service. Instead of drawing boxes manually in a GUI, you write diagrams as text using engines like PlantUML, Mermaid, Graphviz, and ERD syntax, then Kroki renders them to SVG, PNG, PDF, or text output.
That gives you a few big advantages:
This skill packages that workflow for coding agents so they do not just dump raw diagram syntax or pick a random engine. It helps them choose the right diagram type, style it sanely, render it, and optionally make it interactive.
https://github.com/user-attachments/assets/e22072b9-ae73-4405-b6ad-659f2cefc868
From start to finish, the skill:
interactive.html viewer around the SVGindex.html page for the diagram collectionSo it is not just “render this diagram.” It is a full diagram production workflow.
plantuml, c4plantuml, graphviz, mermaid, and erdindex.html pages with list and card viewsdocs/diagrams/<artifact-name>/When you render an interactive wrapper, the generated HTML viewer can provide:
Support is strongest for:
Best-effort support exists for:
This skill is built for tasks like:
Examples:
The packaged skill payload lives at plugins/kroki-diagrams/.
Important pieces:
The main workflow and decision rules.
Renders diagram source through Kroki, prints a shareable URL, writes metadata, and refreshes index.html.
Wraps rendered SVG output in an interactive HTML viewer.
Builds the collection browser page for a directory of diagram artifacts.
references/Holds the selection matrix, style templates, layout rules, and support notes the agent reads on demand.
The skill usually writes one folder per diagram artifact:
docs/diagrams/my-diagram/
source.puml
rendered.svg
interactive.html
.diagram-meta.jsonAnd at the parent level it can maintain:
docs/diagrams/index.htmlThat index is useful once a repo accumulates a larger diagram library.
Normal SVG render:
python3 plugins/kroki-diagrams/scripts/render_kroki_diagram.py \
--engine plantuml \
--input /path/to/source.puml \
--output /path/to/rendered.svgSVG render plus interactive viewer:
python3 plugins/kroki-diagrams/scripts/render_kroki_diagram.py \
--engine plantuml \
--input /path/to/source.puml \
--output /path/to/rendered.svg \
--interactive-output /path/to/interactive.htmlWhat you get back:
index.html by defaultThis repo includes a ready-to-open sample set under examples/interactive-playground/.
It includes medium-complex examples across the main supported engines:
Start with:
To rebuild the sample outputs from source:
cd examples/interactive-playground
./render_all.shBecause different diagram jobs want different engines.
This skill handles that selection step so the agent does not force one engine onto every problem.
/plugin marketplace add smoldrago/kroki-diagrams
/plugin install kroki-diagrams@kroki-diagrams-marketplacegit clone --depth 1 https://github.com/smoldrago/kroki-diagrams.git /tmp/kroki-diagrams
cp -r /tmp/kroki-diagrams/plugins/kroki-diagrams ~/.agents/skills/kroki-diagrams
rm -rf /tmp/kroki-diagramsInvoke with $kroki-diagrams or let Codex trigger it implicitly.
curl -fsSL https://raw.githubusercontent.com/smoldrago/kroki-diagrams/main/install-pi.sh | bashOr clone and run:
git clone --depth 1 https://github.com/smoldrago/kroki-diagrams.git
cd kroki-diagrams
./install-pi.sh.claude-plugin/
plugin.json
marketplace.json
plugins/
kroki-diagrams/
.claude-plugin/plugin.json
SKILL.md
agents/openai.yaml
references/
scripts/
install-pi.shMIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.