drawio
यह क्या करती है
यह स्किल एजेंट को draw.io फ़ॉर्मैट में आरेख बनाना सिखाती है। उपयोगकर्ता परिणाम बाद में draw.io में संपादित कर सकते हैं, और यह फ़्लोचार्ट, सिस्टम आरेख और सरल मॉकअप के लिए उपयुक्त है।
कब इस्तेमाल करें
- ✓जब उपयोगकर्ता फ़्लोचार्ट, आर्किटेक्चर आरेख या सीक्वेंस आरेख माँगता है।
- ✓जब उपयोगकर्ता को आरेख .drawio फ़ाइल के रूप में चाहिए जिसे वह बाद में संपादित कर सके।
- ✓जब उपयोगकर्ता चाहता है कि आरेख PNG, SVG या PDF में निर्यात हो और उसका संपादन योग्य स्रोत भी शामिल हो।
Skill का लिंक
https://github.com/jgraph/drawio-mcp/blob/main/plugins/antigravity/skills/drawio/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारे साइन-अप प्रक्रिया का एक फ़्लोचार्ट draw.io फ़ाइल के रूप में बनाइए, जिसे मैं बाद में संपादित कर सकूँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट आरेख या तो Mermaid टेक्स्ट के रूप में लिखता है, जिसे draw.io बदलकर लेआउट करता है, या draw.io XML के रूप में। फिर वह फ़ाइल सहेजता या निर्यात करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Draw.io Diagram Skill
Generate draw.io diagrams as native .drawio files. Author each diagram either as Mermaid (concise text that the draw.io desktop CLI converts and lays out for you) or as draw.io XML directly. Optionally auto-layout XML-authored diagrams with ELK, export to PNG/SVG/PDF with the diagram XML embedded (so the exported file stays editable in draw.io), or generate a browser URL that opens the diagram directly in the draw.io editor.
Inline viewer first. This skill writes files and opens them with a shell command. If the draw.io MCP server's create_diagram tool is available in a chat that shows diagrams inline (VS Code's or Cursor's own chat, Claude.ai, ChatGPT), and the user hasn't asked for a .drawio file, an export or a URL, call create_diagram instead: the diagram appears in the conversation, with no file and no shell command. Claude Code, Codex and Copilot CLI don't show diagrams inline, not even in their VS Code or JetBrains extensions: there create_diagram only returns a link, so use this skill.
Authoring: Mermaid or XML?
The desktop CLI converts Mermaid to a native .drawio file and lays it out automatically, which is far more reliable than hand-positioning cells in XML.
| Author as | Best for | Needs desktop CLI? |
|---|---|---|
| Mermaid | Flowcharts, sequence, class, state, ER, gantt, mindmap, timeline, user journey, quadrant, C4, git graph, pie, and other standard types | Yes — to convert to .drawio |
| XML | Custom styling, precise/hand positioning, specific shape libraries (AWS, Azure, network, UML detail…), or when the desktop CLI is not installed | No (optional ELK --layout needs the CLI) |
- Prefer Mermaid when the desktop CLI is available and the request is one of the standard types above.
- Use XML for precise control, or as the universal fallback: XML needs no CLI, so it's the only option when the desktop app isn't installed (deliver a
.drawiofile or aurl). For XML you can let the CLI apply an ELK auto-layout instead of computing coordinates yourself.
If you're unsure whether the desktop CLI is present, detect it first (see Locating the CLI).
The pipeline
Every diagram becomes a native .drawio file first, then is delivered in the requested output format, whether you authored Mermaid or XML.
- Author →
.drawio- Mermaid: write the Mermaid to a
.mmdfile, then convert it with the CLI:
Delete thedrawio -x -f xml -o diagram.drawio diagram.mmd.mmdafterward — the.drawiois the artifact. - XML: write the mxGraphModel XML to
diagram.drawio(see XML format), then run the repair pass on it. Optionally apply an ELK layout.
- Mermaid: write the Mermaid to a
- Deliver (identical for both sources):
- (no format) → keep
diagram.drawioand open it. - png / svg / pdf → export from the
.drawiowith embedded XML, then delete the source.drawio:drawio -x -f png -e -b 10 -o diagram.drawio.png diagram.drawio - url → build a browser URL from the
.drawioXML, open it, and keep the.drawioas a local copy (see Browser URL output).
- (no format) → keep
- Open the result — the exported file, the URL, or the
.drawio(see Opening the result). If the open command fails, print the absolute path (or URL) so the user can open it manually.
Always convert Mermaid to .drawio first, then export — direct Mermaid → PNG export with -e is broken in current draw.io Desktop (the embedded-XML step crashes); the two-step path is reliable and produces an editable embed.
If Mermaid was requested but no desktop CLI is available, author the same diagram as XML.
ELK layout for XML
The CLI's --layout step auto-positions XML-authored diagrams with the same ELK layouts as the editor's Arrange ▸ Layout menu and the draw.io MCP app server. Generate the cells with approximate (or even 0,0) positions and get the graph structure — nodes and edges — right. Use verticalFlow / horizontalFlow for flow-style diagrams and organic for networks. Mermaid-authored diagrams are already laid out — don't add --layout.
Lay out in place after you write the file (reading and overwriting the same path is supported), or combine layout with export in one call:
drawio -x -f xml --layout verticalFlow
अक्सर पूछे जाने वाले सवाल
क्या draw.io इंस्टॉल होना चाहिए?
कुछ विकल्पों के लिए draw.io डेस्कटॉप प्रोग्राम चाहिए, जैसे Mermaid टेक्स्ट को फ़ाइल में बदलना।
Mermaid क्या है?
Mermaid सरल टेक्स्ट है जो आरेख का वर्णन करता है, और draw.io उसे चित्र में बदल देता है।
क्या निर्यात की गई PNG को मैं अब भी संपादित कर सकता हूँ?
हाँ। स्किल कहती है कि आरेख का XML एम्बेड किया जा सकता है, ताकि निर्यात की गई फ़ाइल draw.io में संपादन योग्य रहे।
जानकारी
लेखक का मूल विवरण
Always use when user asks to create, generate, draw, or design a diagram, flowchart, architecture diagram, ER diagram, sequence diagram, class diagram, network diagram, mockup, wireframe, or UI sketch, or mentions draw.io, drawio, drawoi, .drawio files, or diagram export to PNG/SVG/PDF. Exception: in a chat that shows diagrams inline (VS Code's or Cursor's own chat, Claude.ai, ChatGPT) where the draw.io MCP server's create_diagram tool is available, call that tool instead, unless the user asks for a file or an export. Claude Code, Codex and Copilot CLI, also in their VS Code and JetBrains exte
repo: jgraph/drawio-mcp
लोकप्रियता
- GitHub स्टार
- 5.8k
- रैंकिंग में स्थान
- #14740
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
मिलती-जुलती skills
canvas
394kयह आपके एजेंट को जुड़े Mac पैनल पर होस्टेड विज़ुअल विजेट दिखाने, पैनल छिपाने या उसे दूसरे पेज पर ले जाने देती है।
control-ui
394kयह आपके एजेंट को OpenClaw Control UI को व्यवस्थित करने और उसमें आने वाली दिक्कतें सुलझाने में मदद करती है, जिसमें सेशन, डैशबोर्ड और जुड़े Gateway शामिल हैं।
diagram-maker
394kयह आपके एजेंट को प्रक्रियाओं, सिस्टम आर्किटेक्चर और व्हाइटबोर्ड स्केच के लिए SVG, HTML या संपादन योग्य Excalidraw फ़ाइलों में साफ़ डायग्राम बनाने में मदद करती है।