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

diagram-generator

Skill by sickn33

Generates, refines, validates and renders diagrams from natural language, notes, code, schemas or existing diagram sources. It writes Mermaid, Graphviz DOT, PlantUML and SVG source, and suits flowcharts, architecture diagrams, state machines and attack-path graphs.

  • Score 92
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install diagram-generator

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/diagram-generator ~/.claude/skills/diagram-generator

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

Step-by-step: install diagram-generator in Claude Code

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

About

Diagram Generator is an agent skill that turns messy notes, code, schemas or natural language into diagram source. It prefers text-based formats first (Mermaid, Graphviz DOT, PlantUML, and SVG when text languages fall short), so the output can be reviewed, versioned and edited. A decision table picks the diagram family and language for each request, and the skill returns the source with a short list of assumptions.

Files such as PNG, SVG or PDF are created only when the user asks for them or when a downloadable file would clearly help. A bundled Python helper, scripts/render_diagram.py, calls locally installed renderers and reports installation hints when one is missing. The skill is aimed at developers and security or documentation writers who need diagrams for reports, architecture reviews or technical docs.

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

What it can do

  • Mermaid diagramsWrites Mermaid flowcharts, sequence, state, ER, class, gantt, mindmap, journey and gitGraph diagrams.
  • Graphviz DOT diagramsWrites DOT source for large, dense or layout-sensitive dependency and network graphs.
  • PlantUML diagramsWrites PlantUML source when the user asks for UML or formal UML notation.
  • SVG diagramsWrites simple, editable SVG for visuals that text diagram languages cannot express.
  • Language selectionPicks the diagram family and language from a decision table based on the user's goal.
  • File renderingRuns scripts/render_diagram.py to render source to SVG, PNG or PDF when requested.
  • Assumption notesAdds an Assumptions section after the code when the input was incomplete or uncertain.

What you need

  • Python for the render script
  • Mermaid CLI (mmdc) installed with npm, for Mermaid rendering
  • Graphviz (dot), installed manually, for DOT rendering
  • PlantUML with Java and plantuml.jar, for PlantUML rendering

Try asking

  • Draw a Mermaid flowchart of this login and retry process
  • Make a Graphviz dependency graph from these package notes
  • Create a PlantUML sequence diagram for this API call flow

Good to know

  • Rendering needs locally installed renderers; source output works without them.
  • Graphviz and PlantUML must be installed manually; only Mermaid CLI can be installed by npm.
  • Complex auto-layouts may need manual adjustment in the target tool.
  • The render helper is not a sandbox and has a 60-second subprocess deadline.

Security check

A

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

Checked automatically: skills/diagram-generator/SKILL.md, skills/diagram-generator/scripts/render_diagram.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md11 KB
  • UPSTREAM-LICENSE.txt1 KB
  • UPSTREAM-NOTICE.md1 KB
  • references/README.md173 B
  • references/diagram-patterns.md5 KB
Show all 6 files
  • scripts/render_diagram.py6 KB

Alternatives to diagram-generator

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

diagram-generator: common questions

Which diagram formats does Diagram Generator support?

The source describes Mermaid, Graphviz DOT, PlantUML and SVG. A decision table selects the right one for each request.

Does it always create image files?

No. It mainly returns editable diagram source and renders PNG, SVG or PDF files only when the user asks for them or a downloadable file would materially help.

Is it safe to render untrusted diagram code?

The source warns that the helper is a local subprocess wrapper, not a sandbox. It advises inspecting sources for include, file, URL or script directives and using an isolated environment without credentials or network for untrusted input.

How do I install diagram-generator?

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

Is diagram-generator free?

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

Is diagram-generator safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, 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 diagram-generator?

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

diagram-generator Install

Add to stack

Loading.