archimate

archimate

熱門

使用 PlantUML stdlib 巨集建立 ArchiMate 企業架構圖。最適合 TOGAF 觀點、分層 EA 建模(業務/應用/技術)、動機分析與遷移規劃。

3099星標
177分支
更新於 2026/5/26
SKILL.md
readonlyread-only
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" {
  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

圖表類型

類型 用途 關鍵巨集 範例
企業全景 完整的 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