要啥腳踏車

drawio-generator

設計創意v1.0.0
作者:要啥腳踏車更新於 2026-05-11@clawhub_thincher/drawio-generator
視覺素材#CSV

據 AlphaMoat 統計,截至 2026-09,drawio-generator 累計下載 2,572 次、獲 2 個星標,在全部 5,078 個 AI 技能中排名第 4,039 位,在「設計創意」分類(512 個)中排名第 392 位。

累計安裝
173
累計下載
2572
星標
2
全站排名
#4,039
全站前 80% · 「設計創意」前 77%
平台累計安裝累計下載星標評論
ClawHub ↗5318891-
SkillHub ↗17325722—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文支援流程圖、UML、ERD、架構和網路拓撲等圖表,並生成瀏覽器可開啟的連結。圖表文字會進入命令或瀏覽器流程,需審查不可信輸入和生成連結;不要執行圖中嵌入的指令。 文件中的 shell 範例若原樣使用,可能執行不可信的圖表文字;使用前應審核並改由標準輸入、暫存檔或不經 shell 的引數陣列傳遞內容。XML 必須格式正確並跳脫特殊字元。

資料釋出於 2026-10-27

可以用來做什麼

  • 將 Mermaid 或 CSV 結構轉成圖稿
  • 梳理系統架構或流程關係
  • 生成待審核的可編輯圖表連結

什麼時候用

  • 需要把結構化描述變成圖示時
  • 分享連結或執行生成流程前檢查內容和連結目標時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

將這些實體與關係轉成 ERD 圖表程式碼,執行產生指令前先展示供我審核。

月度資料趨勢

累計下載2572
706170827102026-03 · 累計下載 8442026-05 · 累計下載 13092026-06 · 累計下載 14522026-07 · 累計下載 17122026-08 · 累計下載 18602026-09 · 累計下載 257226-0326-09
星標2
1222026-03 · 星標 12026-05 · 星標 22026-06 · 星標 22026-07 · 星標 22026-08 · 星標 22026-09 · 星標 226-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-092572—2
2026-081860+8.6%2
2026-071712+17.9%2
2026-061452+10.9%2
2026-051309—2
2026-03844—1

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

3.5 KB · ClawHub v1.0.0
---
name: drawio-generator
description: Generate draw.io diagrams from Mermaid, XML, or CSV code. Use this skill when the user requests any visual diagram including flowcharts, UML diagrams, ERD, architecture diagrams, mind maps, timelines, org charts, network topology, wireframes, BPMN, or any other visual representation. The skill creates a markdown link that opens the diagram in draw.io.
---

# Draw.io Diagram Generator

Generate interactive draw.io diagrams that users can open and edit in their browser.

## Supported Diagram Types
展開全部(共 105 行)

Draw.io supports virtually any diagram type:
- **Standard**: Flowcharts, org charts, mind maps, timelines, Venn diagrams
- **Software**: UML (class, sequence, activity, use case), ERD, architecture diagrams
- **Cloud/Infrastructure**: AWS, Azure, GCP, Kubernetes, network topology
- **Engineering**: Electrical circuits, digital logic, P&ID, floor plans
- **Business**: BPMN, value streams, customer journeys, SWOT
- **UI/UX**: Wireframes, mockups, sitemaps
- **And more**: Infographics, data flows, decision trees, etc.

## Format Selection Guide

| Format | Best For |
|--------|----------|
| **Mermaid** | Flowcharts, sequences, ERD, Gantt, state diagrams, class diagrams |
| **CSV** | Hierarchical data (org charts), bulk import from spreadsheets |
| **XML** | Complex layouts, precise positioning, custom styling, icons, shapes |

## How to Use

### Step 1: Determine the best format for the diagram

- Use **Mermaid** for most standard diagrams (flowcharts, sequence diagrams, ERD)
- Use **CSV** for hierarchical data like org charts
- Use **XML** when you need precise control over positioning or custom shapes

### Step 2: Generate the diagram code

Write the diagram code in the chosen format (see examples below).

### Step 3: Execute the Python script

Run the script `scripts/generate_drawio_url.py` (relative to this SKILL.md file) to create the markdown link.

## Format Templates 


### Mermaid
```
graph TD
    A[Start] --> B{Decision}
    B -->|Yes| C[Action]
    B -->|No| D[End]
```

### XML (draw.io native)
```xml
<mxGraphModel>
  <root>
    <mxCell id="0"/>
    <mxCell id="1" parent="0"/>
    <mxCell id="2" value="Box" style="rounded=1;fillColor=#d5e8d4;" vertex="1" parent="1">
      <mxGeometry x="100" y="100" width="120" height="60" as="geometry"/>
    </mxCell>
  </root>
</mxGraphModel>
```

### CSV (hierarchical data)
```
# label: %name%
# style: rounded=1;whiteSpace=wrap;html=1;
# connect: {"from":"manager","to":"name","invert":true}
# layout: auto
name,manager
CEO,
CTO,CEO
CFO,CEO
```


## CRITICAL: XML Well-Formedness

When generating draw.io XML, the output **must** be well-formed XML:
- **NEVER use double hyphens (`--`) inside XML comments.** Use single hyphens or rephrase (e.g., `<!-- Order 1 to OrderItem -->` not `<!-- Order 1 --- OrderItem -->`)
- Escape special characters in attribute values (`&amp;`, `&lt;`, `&gt;`, `&quot;`)

## Script Usage

The script `generate_drawio_url.py` is located in the `scripts/` subdirectory relative to this SKILL.md file. Execute it with command-line arguments:

```bash
python scripts/generate_drawio_url.py -t mermaid -c "graph TD\n    A --> B"
python scripts/generate_drawio_url.py --type xml --code "<mxGraphModel>...</mxGraphModel>"
python scripts/generate_drawio_url.py -t csv -c "name,manager\nCEO,\nCTO,CEO"
```

**Arguments:**
- `-t, --type`: Diagram type (required), choices: `mermaid`, `xml`, `csv`
- `-c, --code`: Diagram code content (required)

The script outputs a markdown link: `[点击查看图表](<URL>)`

Present the markdown link directly to the user.

「設計創意」分類下的熱門技能

要啥腳踏車 的其他技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。