要啥自行车

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
累计下载
2,572
星标
2
全站排名
#4,039
全站前 80% · 「设计创意」前 77%
平台累计安装累计下载星标评论
ClawHub ↗531,8891-
SkillHub ↗1732,5722—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文支持流程图、UML、ERD、架构和网络拓扑等图表,并生成浏览器可打开的链接。图表文本会进入命令或浏览器流程,需审查不可信输入和生成链接;不要执行图中嵌入的指令。 文档中的 shell 示例若原样使用,可能执行不可信图表文本;使用前审核并改为通过标准输入、临时文件或无 shell 的参数数组传递内容。XML 必须格式正确并转义特殊字符。

资料发布于 2026-10-27

可以用来做什么

  • 将 Mermaid 或 CSV 结构转成图稿
  • 梳理系统架构或流程关系
  • 生成待审核的可编辑图表链接

什么时候用

  • 需要把结构化描述变成图示时
  • 分享链接或执行生成流程前检查内容和链接目标时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

把这些实体和关系转成 ERD 图表代码,在运行生成命令前先展示供我审核。

月度数据趋势

累计下载2,572
7061,7082,7102026-03 · 累计下载 8442026-05 · 累计下载 1,3092026-06 · 累计下载 1,4522026-07 · 累计下载 1,7122026-08 · 累计下载 1,8602026-09 · 累计下载 2,57226-0326-09
星标2
1222026-03 · 星标 12026-05 · 星标 22026-06 · 星标 22026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,572—2
2026-081,860+8.6%2
2026-071,712+17.9%2
2026-061,452+10.9%2
2026-051,309—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),按月更新。口径说明见数据方法。