Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

kroki-diagram-api

Skill by brycewang-stanford

Renders text-based diagrams to SVG, PNG, PDF or JPEG using Kroki's HTTP API. Useful for researchers and developers who need flowcharts, architecture diagrams or research figures generated from code.

  • Score 76
  • 5.2k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install kroki-diagram-api

Built from the published package, never by AI.

git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills /tmp/Auto-Empirical-Research-Skills && mkdir -p ~/.claude/skills && cp -r /tmp/Auto-Empirical-Research-Skills/skills/43-wentorai-research-plugins/skills/tools/diagram/kroki-diagram-api ~/.claude/skills/kroki-diagram-api

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install kroki-diagram-api in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Kroki Diagram API is a skill that teaches an AI assistant to render text-based diagrams through Kroki's HTTP API. According to the source, Kroki covers 20+ diagram formats, including Mermaid, PlantUML, Graphviz, D2 and BPMN, through a single endpoint. Output can be SVG, PNG, PDF or JPEG.

Requests can be sent as GET with a URL-encoded or base64-encoded source, or as POST with the diagram text in the body. The source includes curl and Python examples, including helper functions that save a rendered diagram to a file. Users can use the free public instance at kroki.io, which needs no authentication, or self-host Kroki with Docker. It suits researchers and developers who want figures, architecture diagrams or flowcharts generated from text.

Written from the project's SKILL.md and checked against it.

What it can do

  • Render text diagramsSends diagram source to Kroki and returns an SVG, PNG, PDF or JPEG file.
  • Multiple diagram typesSupports Mermaid, PlantUML, Graphviz, D2, BPMN and more than 15 other formats.
  • GET and POST requestsAccepts URL-encoded or base64 source via GET, or diagram text in a POST body.
  • Python helpersIncludes render_diagram, save_diagram and a research pipeline flowchart helper.
  • Self-hostingShows how to run Kroki locally with Docker on port 8000.

What you need

  • curl or Python with the requests library
  • Internet access to kroki.io, or a self-hosted Kroki instance
  • Docker (only for self-hosting)

Try asking

  • Draw a Mermaid flowchart of my research workflow and save it as SVG
  • Render this Graphviz DOT graph of citations to a PNG file
  • Make a PlantUML sequence diagram of this API call as SVG

Good to know

  • Depends on the public kroki.io instance or a self-hosted Kroki server.
  • The source does not state rate limits.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/43-wentorai-research-plugins/skills/tools/diagram/kroki-diagram-api/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB

Alternatives to kroki-diagram-api

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

kroki-diagram-api: common questions

Does Kroki Diagram API need an API key?

The source says Kroki requires no authentication. It also describes the public instance as free to use.

Which output formats can it produce?

The source lists SVG, PNG, PDF and JPEG as output formats.

Can I run Kroki on my own machine?

Yes. The source gives a Docker command using the yuzutech/kroki image on port 8000, then points users to localhost instead of kroki.io.

How do I install kroki-diagram-api?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is kroki-diagram-api free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is kroki-diagram-api safe to use?

It scores 76 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to kroki-diagram-api?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

kroki-diagram-api Install

Add to stack

Loading.