uml

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

UML Diagram Generator

UML图生成指南

Quick Start: Choose diagram type → Define classes/objects/actors → Add relationships/edges → Use appropriate shapes and arrow styles → Wrap in
```drawio
fence.
⚠️ IMPORTANT: Always use
```drawio
code fence. NEVER use
```xml
— it will NOT render as a diagram.
快速开始: 选择图类型 → 定义类/对象/参与者 → 添加关系/连线 → 使用合适的形状和箭头样式 → 用
```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=component
    ,
    swimlane;childLayout=stackLayout
  • Use
    fillColor=none;
    for package/component containers to avoid covering child elements
🔗 这是一项基于drawio的技能。所有结构、布局和连线路由规则均继承自drawio SKILL.md。请先阅读基础规则。

UML Diagram Types

UML专属扩展规则:

TypePurposeKey ShapeExample
ClassClass structure and relationships
swimlane;childLayout=stackLayout
class-diagram.md
SequenceMessage interactions over time
shape=umlLifeline
sequence-diagram.md
ActivityWorkflow and process flow
rounded=1;arcSize=50
activity-diagram.md
State MachineObject lifecycle states
rounded=1
with colors
state-machine-diagram.md
ComponentSystem component organization
shape=component
component-diagram.md
Use CaseUser-system interactions
shape=umlActor
,
ellipse
use-case-diagram.md
DeploymentPhysical deployment architecture
shape=cube;direction=south
deployment-diagram.md
ObjectRuntime object snapshot
swimlane;fontStyle=4
object-diagram.md
PackageModule organization
shape=folder
package-diagram.md
CommunicationObject collaboration
whiteSpace=wrap
with numbered messages
communication-diagram.md
Composite StructureInternal class structure
shape=ellipse;container=1;dashed=1
composite-structure-diagram.md
Interaction OverviewActivity + sequence combination
shape=umlFrame
interaction-overview-diagram.md
TimingState changes over time
shape=waypoint
timing-diagram.md
ProfileUML extension mechanisms
<<stereotype>>
labels
profile-diagram.md
  • 使用标准UML形状:
    shape=umlLifeline
    shape=umlActor
    shape=component
    swimlane;childLayout=stackLayout
  • 对于包/组件容器,使用
    fillColor=none;
    以避免覆盖子元素

UML图类型

图类型用途关键形状示例
类图类结构与关系
swimlane;childLayout=stackLayout
class-diagram.md
时序图随时间变化的消息交互
shape=umlLifeline
sequence-diagram.md
活动图工作流与流程流转
rounded=1;arcSize=50
activity-diagram.md
状态机图对象生命周期状态带颜色的
rounded=1
state-machine-diagram.md
组件图系统组件组织
shape=component
component-diagram.md
用例图用户-系统交互
shape=umlActor
ellipse
use-case-diagram.md
部署图物理部署架构
shape=cube;direction=south
deployment-diagram.md
对象图运行时对象快照
swimlane;fontStyle=4
object-diagram.md
包图模块组织
shape=folder
package-diagram.md
通信图对象协作带编号消息的
whiteSpace=wrap
communication-diagram.md
组合结构图类内部结构
shape=ellipse;container=1;dashed=1
composite-structure-diagram.md
交互概览图活动图+时序图组合
shape=umlFrame
interaction-overview-diagram.md
计时图随时间变化的状态变更
shape=waypoint
timing-diagram.md
构造型图UML扩展机制
<<stereotype>>
标签
profile-diagram.md