Skip to content
Back to skills

463 Visio Uml Generate

ASecurity

创建了 `visio-uml-generator` Skill,能够根据文案描述生成 Microsoft Visio (.vsdx) 格式的 UML 图。

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
toolspython

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add winlem2024/workbuddy-skills --skill 463-visio-uml-generate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 463 Visio Uml Generate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 463 Visio Uml Generate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/winlem2024-463-visio-uml-generate/badge)](https://www.skillsdirectory.com/skills/winlem2024-463-visio-uml-generate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Visio UML Generator Skill

## 概述
创建了 `visio-uml-generator` Skill,能够根据文案描述生成 Microsoft Visio (.vsdx) 格式的 UML 图。

## 支持的 UML 图类型
| 类型 | 说明 |
|------|------|
| 类图 (Class Diagram) | 类、接口、属性、方法、继承/组合/依赖等关系 |
| 用例图 (Use Case Diagram) | 参与者、用例、关联/包含/扩展关系 |
| 序列图 (Sequence Diagram) | 参与者、生命线、同步/异步/返回消息 |
| 活动图 (Activity Diagram) | 动作节点、决策、开始/结束、控制流 |

## 工作流程
1. 分析用户文案 → 识别 UML 图类型和元素
2. 生成结构化 JSON 定义(遵循 `references/uml-schema.md` 中的 Schema)
3. 运行 `scripts/generate_vsdx.py` 生成 .vsdx 文件
4. 交付文件给用户

## 文件结构
```
~/.workbuddy/skills/visio-uml-generator/
├── SKILL.md                      # Skill 主文档(工作流指引)
├── scripts/
│   └── generate_vsdx.py          # VSDX 生成脚本(纯 Python,无第三方依赖)
└── references/
    └── uml-schema.md             # UML JSON Schema 规范
```

## 技术要点
- .vsdx 是 ZIP + XML 格式,脚本从零构建完整 Visio XML 结构
- 自动布局:类图网格、用例图左右分布、序列图垂直时间线、活动图垂直流程
- 颜色方案:类(蓝色)、接口(绿色)、用例(黄色)、活动(青色)
- 连接器自动根据关系类型设置箭头样式(空心三角=继承、虚线=依赖、菱形=组合等)

## 测试结果
- ✅ 类图生成通过(5 个类、5 个关系)
- ✅ 用例图生成通过(2 个参与者、4 个用例、5 个关系)
- ✅ 序列图生成通过(4 个参与者、6 条消息)
- ✅ 活动图生成通过(7 个节点、7 条流)

## 示例文件
- `visio-uml-test/ecommerce-class-diagram.json` — 示例 JSON 输入
- `visio-uml-test/ecommerce-class-diagram.vsdx` — 示例 Visio 输出

Files in this skill

  • .workbuddy/memory/2026-05-17.md506 B
  • SKILL.md1.9 KB
  • _skillhub_meta.json424 B
  • visio-uml-test/ecommerce-class-diagram.json2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.