uml
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUML Diagram Generator
UML图生成指南
Quick Start: Choose diagram type → Define classes/objects/actors → Add relationships/edges → Use appropriate shapes and arrow styles → Wrap in fence.
```drawio⚠️ IMPORTANT: Always usecode fence. NEVER use```drawio— it will NOT render as a diagram.```xml
快速开始: 选择图类型 → 定义类/对象/参与者 → 添加关系/连线 → 使用合适的形状和箭头样式 → 用代码块包裹。
```drawio⚠️ 重要提示: 请始终使用代码块。切勿使用```drawio——它无法渲染为图。```xml
Critical Rules
关键规则
🔗 This is a drawio-derived skill. All structure, layout, and edge routing rules inherit from drawio SKILL.md. Read the base rules first.
UML-specific additions:
- Use standard UML shapes: ,
shape=umlLifeline,shape=umlActor,shape=componentswimlane;childLayout=stackLayout - Use for package/component containers to avoid covering child elements
fillColor=none;
🔗 这是一项基于drawio的技能。所有结构、布局和连线路由规则均继承自drawio SKILL.md。请先阅读基础规则。
UML Diagram Types
UML专属扩展规则:
| Type | Purpose | Key Shape | Example |
|---|---|---|---|
| Class | Class structure and relationships | | class-diagram.md |
| Sequence | Message interactions over time | | sequence-diagram.md |
| Activity | Workflow and process flow | | activity-diagram.md |
| State Machine | Object lifecycle states | | state-machine-diagram.md |
| Component | System component organization | | component-diagram.md |
| Use Case | User-system interactions | | use-case-diagram.md |
| Deployment | Physical deployment architecture | | deployment-diagram.md |
| Object | Runtime object snapshot | | object-diagram.md |
| Package | Module organization | | package-diagram.md |
| Communication | Object collaboration | | communication-diagram.md |
| Composite Structure | Internal class structure | | composite-structure-diagram.md |
| Interaction Overview | Activity + sequence combination | | interaction-overview-diagram.md |
| Timing | State changes over time | | timing-diagram.md |
| Profile | UML extension mechanisms | | profile-diagram.md |
- 使用标准UML形状:、
shape=umlLifeline、shape=umlActor、shape=componentswimlane;childLayout=stackLayout - 对于包/组件容器,使用以避免覆盖子元素
fillColor=none;
—
UML图类型
—
| 图类型 | 用途 | 关键形状 | 示例 |
|---|---|---|---|
| 类图 | 类结构与关系 | | class-diagram.md |
| 时序图 | 随时间变化的消息交互 | | sequence-diagram.md |
| 活动图 | 工作流与流程流转 | | activity-diagram.md |
| 状态机图 | 对象生命周期状态 | 带颜色的 | state-machine-diagram.md |
| 组件图 | 系统组件组织 | | component-diagram.md |
| 用例图 | 用户-系统交互 | | use-case-diagram.md |
| 部署图 | 物理部署架构 | | deployment-diagram.md |
| 对象图 | 运行时对象快照 | | object-diagram.md |
| 包图 | 模块组织 | | package-diagram.md |
| 通信图 | 对象协作 | 带编号消息的 | communication-diagram.md |
| 组合结构图 | 类内部结构 | | composite-structure-diagram.md |
| 交互概览图 | 活动图+时序图组合 | | interaction-overview-diagram.md |
| 计时图 | 随时间变化的状态变更 | | timing-diagram.md |
| 构造型图 | UML扩展机制 | | profile-diagram.md |