diagram-generator
by openclawdiagram-generator helps create and edit draw.io, Mermaid, and Excalidraw diagrams from structured input. It supports flowcharts, sequence diagrams, class diagrams, ER diagrams, mind maps, architecture diagrams, and network topologies, and can read existing .drawio, .mmd, and Excalidraw files for easier updates.
This skill scores 78/100, which means it is a solid but not top-tier listing for directory users. It has enough concrete workflow and schema guidance to justify installation if you want an agent-friendly diagram generator, but users should expect to depend on an external MCP server and some referenced patterns rather than a fully self-contained one-shot skill.
- Clear triggerability: explicitly supports drawio, Mermaid, and Excalidraw, with a prerequisite check for the mcp-diagram-generator server.
- Strong operational guidance: provides a JSON schema guide and format-selection reference, which reduces guesswork for agents.
- Good workflow leverage: covers natural-language creation plus reading and modifying existing .drawio, .mmd, and Excalidraw files.
- Requires the mcp-diagram-generator MCP server to be installed and configured, so it is not self-contained.
- No install command, scripts, or bundled assets, so setup and execution depend on external tooling and the documented references.
Overview of diagram-generator skill
What diagram-generator does
The diagram-generator skill helps you create and edit diagrams in drawio, Mermaid, and Excalidraw from structured input instead of hand-building them node by node. It is best for people who want the diagram-generator skill to turn a rough architecture, workflow, or topology idea into a usable diagram file with less trial and error.
Best fit and real job-to-be-done
Use diagram-generator if your goal is to produce documentation-ready diagrams for systems, processes, or networks and you care about both generation speed and later editability. The strongest fit is technical users who need clean outputs they can keep in source control, refine in a GUI, or regenerate from updated requirements.
Key differentiators to know
The main value of diagram-generator is that it supports multiple formats and can read existing .drawio, .mmd, and Excalidraw files. That matters if you need to update legacy diagrams instead of starting from scratch. It also relies on an MCP server, which reduces token-heavy manual formatting and makes output more consistent than a generic prompt.
When it is not the right tool
If you only need a quick one-off sketch with no intent to save or edit the file later, a plain prompt may be enough. diagram-generator is more useful when format correctness, repeatability, and downstream editing matter more than a rough visual draft.
How to Use diagram-generator skill
Install and verify the MCP dependency
For diagram-generator install, add the skill and confirm the companion server is available before you ask for output. The skill requires mcp-diagram-generator; if the server is missing, generation will fail or produce incomplete results. Verify the tools exposed by the server and use the skill only after the environment is ready.
Start from the right input shape
The best diagram-generator usage starts with a compact brief that names the diagram type, target format, audience, and any must-include entities. For example: “Create a Mermaid sequence diagram for login flow: browser, auth service, database, include success and failure paths.” That is better than “make a login diagram” because it gives the skill enough structure to choose layout, labels, and scope.
Read these files first
For a practical diagram-generator guide, read SKILL.md first, then inspect references/json-schema-guide.md for the input structure and references/format-selection-guide.md to pick between draw.io, Mermaid, and Excalidraw. If you are building network diagrams, references/network-topology-examples.md is the fastest way to learn the expected nesting and naming patterns.
Workflow that produces better results
Use this sequence: pick a format, write a short spec, generate once, then refine only the parts that are wrong. Keep node names stable, describe hierarchy explicitly, and say whether the diagram should favor readability, compactness, or manual editability. For example, ask for “draw.io for a layered infrastructure diagram with environment > datacenter > zone > device, optimized for later GUI edits” instead of leaving the layout decision implicit.
diagram-generator skill FAQ
Is diagram-generator better than a normal prompt?
Yes, when you need structured files, repeatable formatting, or edits to an existing diagram. A normal prompt can describe a diagram, but diagram-generator is stronger when you want a real output artifact in a supported format rather than an image-like approximation.
Which format should I choose?
Choose Mermaid for fast, markdown-friendly diagrams and version control. Choose draw.io for complex architecture or topology work that needs manual refinement. Choose Excalidraw when you want a looser visual style or a lightweight sketch. The diagram-generator skill is most valuable when format choice matches the task instead of being guessed later.
Can beginners use diagram-generator?
Yes, but beginners get better results when they provide a small amount of structure: diagram purpose, entities, relationships, and preferred format. The skill is not hard to use, but vague inputs usually produce diagrams that need a second pass.
When should I avoid using it?
Avoid diagram-generator if your diagram is highly artistic, needs brand illustration work, or depends on highly customized visual design beyond technical diagramming. Also avoid it if you cannot install or access the required MCP server in your environment.
How to Improve diagram-generator skill
Give the skill the decisions it cannot infer
The biggest quality boost comes from specifying format, audience, and depth of detail. Say what should be emphasized: dependencies, flow direction, ownership boundaries, environment layers, or failure paths. For diagram-generator, these choices are often more important than the raw list of components.
Reduce ambiguity in entities and relationships
Common failure modes are fuzzy names, missing arrows, and diagrams that mix levels of abstraction. Instead of “show the system,” provide a bounded inventory like “API gateway, auth service, billing service, Postgres, Redis” and state how they connect. If you want a network diagram, define the hierarchy explicitly so the skill does not guess container levels.
Iterate with one correction at a time
After the first output, ask for one focused revision: rename nodes, simplify layout, switch formats, or add one missing relationship. That keeps the diagram-generator skill from drifting while still improving the final file. If the structure is wrong, fix the structure first; if labels are wrong, fix labels next.
Use repository references to sharpen future prompts
If your first result is close but not ideal, map the issue back to references/json-schema-guide.md or references/format-selection-guide.md and adjust your input to match the expected model. The fastest way to improve diagram-generator usage is to learn which constraints belong in the prompt and which belong in the diagram schema.
