SKILL.md
readonly只读
name
archimate
description
使用 PlantUML stdlib 宏创建 ArchiMate 企业架构图。最适合 TOGAF 视角、分层 EA 建模(业务/应用/技术)、动机分析和迁移规划。
企业架构图生成器 (ArchiMate)
快速开始: 添加 !include <archimate/Archimate> → 声明类型化元素 → 使用 Rel_* 宏连接 → 使用 rectangle 分组到层 → 包裹在 ```plantuml 代码块中。
⚠️ 重要: 始终使用
```plantuml或```puml代码块。切勿使用```text——它不会渲染为图表。
关键规则
- 每个图表以
@startuml开始,以@enduml结束 - 必须在使用任何宏之前包含
!include <archimate/Archimate> - 元素语法:
Layer_Type(alias, "Label") - 关系语法:
Rel_Type(fromAlias, toAlias, "label") - 使用
rectangle "Layer" { ... }将元素分组到 ArchiMate 层中 - 方向后缀
_Up、_Down、_Left、_Right控制关系方向
元素宏
业务层
| 宏 | ArchiMate 元素 |
|---|---|
Business_Actor(id, "Label") |
业务参与者 |
Business_Role(id, "Label") |
业务角色 |
Business_Process(id, "Label") |
业务流程 |
Business_Function(id, "Label") |
业务功能 |
Business_Service(id, "Label") |
业务服务 |
Business_Event(id, "Label") |
业务事件 |
Business_Interface(id, "Label") |
业务接口 |
Business_Collaboration(id, "Label") |
业务协作 |
Business_Object(id, "Label") |
业务对象 |
Business_Product(id, "Label") |
业务产品 |
Business_Contract(id, "Label") |
业务合同 |
Business_Representation(id, "Label") |
业务表示 |
应用层
| 宏 | ArchiMate 元素 |
|---|---|
Application_Component(id, "Label") |
应用组件 |
Application_Service(id, "Label") |
应用服务 |
Application_Function(id, "Label") |
应用功能 |
Application_Interface(id, "Label") |
应用接口 |
Application_Process(id, "Label") |
应用流程 |
Application_Interaction(id, "Label") |
应用交互 |
Application_Event(id, "Label") |
应用事件 |
Application_Collaboration(id, "Label") |
应用协作 |
Application_DataObject(id, "Label") |
应用数据对象 |
技术层
| 宏 | ArchiMate 元素 |
|---|---|
Technology_Device(id, "Label") |
技术设备 |
Technology_Node(id, "Label") |
技术节点 |
Technology_SystemSoftware(id, "Label") |
系统软件 |
Technology_Artifact(id, "Label") |
技术工件 |
Technology_CommunicationNetwork(id, "Label") |
通信网络 |
Technology_Path(id, "Label") |
技术路径 |
Technology_Service(id, "Label") |
技术服务 |
Technology_Process(id, "Label") |
技术流程 |
Technology_Function(id, "Label") |
技术功能 |
Technology_Interface(id, "Label") |
技术接口 |
动机层
| 宏 | ArchiMate 元素 |
|---|---|
Motivation_Stakeholder(id, "Label") |
利益相关者 |
Motivation_Driver(id, "Label") |
驱动因素 |
Motivation_Assessment(id, "Label") |
评估 |
Motivation_Goal(id, "Label") |
目标 |
Motivation_Outcome(id, "Label") |
结果 |
Motivation_Principle(id, "Label") |
原则 |
Motivation_Requirement(id, "Label") |
需求 |
Motivation_Constraint(id, "Label") |
约束 |
Motivation_Value(id, "Label") |
价值 |
战略层
| 宏 | ArchiMate 元素 |
|---|---|
Strategy_Capability(id, "Label") |
能力 |
Strategy_Resource(id, "Label") |
资源 |
Strategy_CourseOfAction(id, "Label") |
行动方针 |
Strategy_ValueStream(id, "Label") |
价值流 |
实施层
| 宏 | ArchiMate 元素 |
|---|---|
Implementation_WorkPackage(id, "Label") |
工作包 |
Implementation_Deliverable(id, "Label") |
可交付成果 |
Implementation_Plateau(id, "Label") |
阶段 |
Implementation_Gap(id, "Label") |
差距 |
Implementation_Event(id, "Label") |
实施事件 |
关系宏
所有关系都支持方向后缀:_Up、_Down、_Left、_Right。
| 宏 | ArchiMate 关系 | 线条样式 |
|---|---|---|
Rel_Composition(from, to, "label") |
组合 | 实线 + 实心菱形 |
Rel_Aggregation(from, to, "label") |
聚合 | 实线 + 空心菱形 |
Rel_Assignment(from, to, "label") |
分配 | 实线 + 圆形→三角形 |
Rel_Realization(from, to, "label") |
实现 | 虚线 + 空心三角形 |
Rel_Serving(from, to, "label") |
服务 | 实线 + 箭头 |
Rel_Triggering(from, to, "label") |
触发 | 实线 + 实心三角形 |
Rel_Flow(from, to, "label") |
流 | 虚线 + 实心三角形 |
Rel_Access(from, to, "label") |
访问 | 点线 |
Rel_Access_r(from, to, "label") |
访问(读) | 点线 + 箭头 |
Rel_Access_w(from, to, "label") |
访问(写) | 点线 + 反向箭头 |
Rel_Influence(from, to, "label") |
影响 | 虚线 + 箭头 |
Rel_Association(from, to, "label") |
关联 | 实线 |
Rel_Specialization(from, to, "label") |
特化 | 实线 + 空心三角形 |
快速示例
@startuml
!include <archimate/Archimate>
rectangle "业务" {
Business_Actor(customer, "客户")
Business_Process(order, "订单流程")
Business_Service(orderSvc, "订单服务")
}
rectangle "应用" {
Application_Component(orderApp, "订单系统")
Application_Service(orderAPI, "订单 API")
}
rectangle "技术" {
Technology_Node(server, "应用服务器")
Technology_Device(db, "数据库服务器")
}
Rel_Triggering(customer, order, "下订单")
Rel_Realization(order, orderSvc, "实现")
Rel_Serving(orderAPI, orderSvc, "服务")
Rel_Realization(orderApp, orderAPI, "实现")
Rel_Assignment(server, orderApp, "运行于")
Rel_Serving(db, server, "存储数据")
@enduml
图表类型
| 类型 | 目的 | 关键宏 | 示例 |
|---|---|---|---|
| 企业全景 | 完整的 B/A/T 分层视图 | 所有层 | enterprise-landscape.md |
| 应用集成 | 应用到应用的数据流 | Application_* |
application-integration.md |
| 技术基础设施 | 基础设施栈 | Technology_* |
technology-infrastructure.md |
| 业务能力 | 能力地图 | Strategy_*、Business_* |
business-capability.md |
| 迁移规划 | 基于阶段的路线图 | Implementation_* |
migration-planning.md |
| 安全架构 | 安全控制 | Technology_*、Motivation_* |
security-architecture.md |
| 数据架构 | 数据流与所有权 | Application_DataObject、Rel_Access_* |
data-architecture.md |
| DevOps 流水线 | CI/CD 交付链 | Technology_*、Application_* |
devops-pipeline.md |






