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.
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-generatorRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/diagram-generator ~/.gemini/antigravity-cli/skills/diagram-generatorAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →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.
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.
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.
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.
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.
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.
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.
