mcpField
A
archimate

archimate

github.com/markdown-viewer开发3.4k3.2k 次安装3 周前更新
代码仓库

关于 archimate

用于通过 PlantUML 生成 ArchiMate 企业架构图的技能,面向架构与规划工作。它借助类型化元素、关系宏和分层分组,覆盖业务、应用及技术视图。

主要功能

  1. 01类型化 ArchiMate 元素
  2. 02关系宏
  3. 03按层组合元素
  4. 04多类架构视图示例

适用场景

  1. 01记录企业全景架构
  2. 02梳理应用集成关系
  3. 03规划技术基础设施或迁移
  4. 04绘制数据架构或 DevOps 流水线

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/markdown-viewer/skills --skill archimate

安装后在 Claude Code 中输入/archimate确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

examples/
application-integration.md
business-capability.md
data-architecture.md
devops-pipeline.md
enterprise-landscape.md
migration-planning.md
security-architecture.md
technology-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