본문으로 건너뛰기
Skillpedia
인터페이스 (UI/UX)5.8k · #14740

drawio

하는 일

이 스킬은 draw.io 형식으로 다이어그램을 그리는 방법을 에이전트에게 가르칩니다. 사용자는 나중에 draw.io에서 결과를 편집할 수 있으며, 플로우차트, 시스템 다이어그램, 간단한 목업에 적합합니다.

사용하는 경우

  • ✓플로우차트, 아키텍처 다이어그램, 시퀀스 다이어그램을 요청할 때.
  • ✓나중에 편집할 수 있는 .drawio 파일로 다이어그램을 저장하고 싶을 때.
  • ✓편집 가능한 원본과 함께 PNG, SVG, PDF로 내보낸 다이어그램이 필요할 때.

스킬 링크

https://github.com/jgraph/drawio-mcp/blob/main/plugins/antigravity/skills/drawio/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/jgraph/drawio-mcp/blob/main/plugins/antigravity/skills/drawio/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 회원가입 절차를 나중에 편집할 수 있는 draw.io 파일로 플로우차트를 그려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 다이어그램을 draw.io가 변환하고 배치하는 Mermaid 텍스트로 쓰거나, 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 .drawio file or a url). 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.

  1. Author → .drawio
    • Mermaid: write the Mermaid to a .mmd file, then convert it with the CLI:
      drawio -x -f xml -o diagram.drawio diagram.mmd
      
      Delete the .mmd afterward — the .drawio is 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.
  2. Deliver (identical for both sources):
    • (no format) → keep diagram.drawio and open it.
    • png / svg / pdf → export from the .drawio with 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 .drawio XML, open it, and keep the .drawio as a local copy (see Browser URL output).
  3. 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를 설치해야 하나요?

일부 방식, 예를 들어 Mermaid 텍스트를 파일로 변환하려면 draw.io 데스크톱 프로그램이 필요합니다.

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
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

비슷한 스킬