关于 archimate
用于通过 PlantUML 生成 ArchiMate 企业架构图的技能,面向架构与规划工作。它借助类型化元素、关系宏和分层分组,覆盖业务、应用及技术视图。
主要功能
- 01类型化 ArchiMate 元素
- 02关系宏
- 03按层组合元素
- 04多类架构视图示例
适用场景
- 01记录企业全景架构
- 02梳理应用集成关系
- 03规划技术基础设施或迁移
- 04绘制数据架构或 DevOps 流水线
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ markdown-viewer/ skills --skill archimate安装后在 Claude Code 中输入/archimate确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
examples/application-integration.mdbusiness-capability.mddata-architecture.mddevops-pipeline.mdenterprise-landscape.mdmigration-planning.mdsecurity-architecture.mdtechnology-infrastructure.md详细介绍
企业架构图生成器(ArchiMate)
快速入门: 添加 !include <archimate/Archimate> → 声明带类型的元素 → 使用 Rel_* 宏连接 → 使用 rectangle 按层分组 → 放入 ```plantuml 代码围栏中。
⚠️ IMPORTANT: 始终使用
```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" {
Business_Actor(customer, "Customer")
Business_Process(order, "Order Process")
Business_Service(orderSvc, "Order Service")
}
rectangle "Application" {
Application_Component(orderApp, "Order System")
Application_Service(orderAPI, "Order API")
}
rectangle "Technology" {
Technology_Node(server, "App Server")
Technology_Device(db, "Database Server")
}
Rel_Triggering(customer, order, "places order")
Rel_Realization(order, orderSvc, "realizes")
Rel_Serving(orderAPI, orderSvc, "serves")
Rel_Realization(orderApp, orderAPI, "realizes")
Rel_Assignment(server, orderApp, "runs on")
Rel_Serving(db, server, "stores data")
@enduml
图表类型
| 类型 | 用途 | 主要宏 | 示例 |
|---|---|---|---|
| 企业全景 | 完整的业务/应用/技术分层视图 | 所有层 | 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 |
评论
支持 Markdown