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

draw-io-diagram-generator

하는 일

이 도구는 draw.io라는 특별한 형식을 사용해 순서도나 아키텍처 지도 같은 시각적 다이어그램을 만듭니다. VS Code나 draw.io 웹사이트 같은 프로그램에서 열 수 있는 파일을 생성합니다.

사용하는 경우

  • ✓과정을 설명하기 위해 순서도를 그려야 할 때.
  • ✓컴퓨터 시스템이 어떻게 구성되어 있는지 지도를 만들 때.
  • ✓여러 소프트웨어 부분이 서로 상호작용하는 모습을 시각화할 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/draw-io-diagram-generator/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“커피를 만드는 단계를 보여 주는 순서도를 만들어 주세요. 시작, 과정, 끝이 있어야 합니다.”

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

작동 방식

도구는 원하는 것을 파악해 draw.io 프로그램이 이해하는 코드(XML)로 바꿉니다. 미리 정의된 템플릿을 쓰거나 기본 구조를 만들어 다이어그램을 구성합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Draw.io Diagram Generator

This skill enables you to generate, edit, and validate draw.io (.drawio) diagram files with correct mxGraph XML structure. All generated files open immediately in the Draw.io VS Code extension (hediet.vscode-drawio) without any manual fixes required. You can also open the files in the draw.io web app or desktop app if you prefer.


1. When to Use This Skill

Trigger phrases (load this skill when you see these)

  • "create a diagram", "draw a flowchart", "generate an architecture diagram"
  • "design a sequence diagram", "make a UML class diagram", "build an ER diagram"
  • "add a .drawio file", "update the diagram", "visualise the flow"
  • "document the architecture", "show the data model", "diagram the service interactions"
  • Any request to produce or modify a .drawio, .drawio.svg, or .drawio.png file

Supported diagram types

Diagram Type Template Available Description
Flowchart assets/templates/flowchart.drawio Process flows with decisions and branches
System Architecture assets/templates/architecture.drawio Multi-tier / layered service architecture
Sequence Diagram assets/templates/sequence.drawio Actor lifelines and timed message flows
ER Diagram assets/templates/er-diagram.drawio Database tables with relationships
UML Class Diagram assets/templates/uml-class.drawio Classes, interfaces, enums, relationships
Network Topology (use shape library) Routers, servers, firewalls, subnets
BPMN Workflow (use shape library) Business process events, tasks, gateways
Mind Map (manual) Central topic with radiating branches

2. Prerequisites

  • If running with VS Code integration enabled, Install the drawio extension: draw.io VS Code extension — hediet.vscode-drawio (extension id). Install with:
    ext install hediet.vscode-drawio
    
  • Supported file extensions: .drawio, .drawio.svg, .drawio.png
  • Python 3.8+ (optional) — for the validation and shape-insertion scripts in scripts/

3. Step-by-Step Agent Workflow

Follow these steps in order for every diagram generation task.

Step 1 — Understand the Request

Ask or infer:

  1. Diagram type — What kind of diagram? (flowchart, architecture, UML, ER, sequence, network...)
  2. Entities / actors — What are the main components, actors, classes, or tables?
  3. Relationships — How are they connected? What direction? What cardinality?
  4. Output path — Where should the .drawio file be saved?
  5. Existing file — Are we creating new or editing an existing file?

If the request is ambiguous, infer the most sensible diagram type from context (e.g. "show the tables" → ER diagram, "show how the API call flows" → sequence diagram).

Step 2 — Select a Template or Start Fresh

  • Use a template when the diagram type matches one in assets/templates/. Copy the template structure and replace placeholder values.
  • Start fresh for novel layouts. Begin with the minimal valid skeleton:
<!-- Set modified="" to the current ISO 8601 timestamp when generating a new file -->
<mxfile host="Electron" modified="" version="26.0.0">
  <diagram id="page-1" name="Page-1">
    <mxGraphModel dx="1422" dy="762" grid="1" gridSize="10" guides="1"
                  tooltips="1" connect="1" arrows="1" fold="1"
                  page="1" pageScale="1" pageWidth="1169" pageHeight="827"
                  math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <!-- Your cells go here -->
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>

Rule: ids 0 and 1 are ALWAYS required and must be the first two cells. Never reuse them.

Step 3 — Plan the Layout

Before generating XML, sketch the logical placement:

  • Organise into rows or tiers (use swimlanes for layers)
  • Horizontal spacing: 40–60px between same-row shapes
  • Vertical spacing: 80–120px between tier rows
  • Standard shape size: 120x60 px for process boxes, 160x80 px for swimlanes
  • Default canvas: A4 landscape = 1169 x 827 px

Step 4 — Generate the mxGraph XML

Vertex cell (every shape):

<mxCell id="unique-id" value="Label"
        style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;"
        vertex="1" parent="1">

…
자주 묻는 질문

무엇인가 설치해야 하나요?

VS Code를 쓴다면 'draw.io VS Code 확장'을 설치하는 것을 권장합니다. 그렇지 않다면 draw.io 웹사이트에서 파일을 열 수 있습니다.

어떤 종류의 다이어그램을 만들 수 있나요?

순서도, 시스템 아키텍처 다이어그램, 시퀀스 다이어그램, 데이터베이스(ER) 다이어그램, UML 다이어그램, 네트워크 토폴로지를 만들 수 있습니다.

.drawio 파일이란 무엇인가요?

다이어그램의 모든 정보를 담은 파일입니다. 이 파일로 편집하고, draw.io 호환 프로그램에서 열 수 있습니다.

상세 정보

작성자의 원본 설명

Use when creating, editing, or generating draw.io diagram files (.drawio, .drawio.svg, .drawio.png). Covers mxGraph XML authoring, shape libraries, style strings, flowcharts, system architecture, sequence diagrams, ER diagrams, UML class diagrams, network topology, layout strategy, the hediet.vscode-drawio VS Code extension, and the full agent workflow from request to a ready-to-open file.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7183
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬