Agent skill that turns natural language, code, Terraform/K8s, SQL, OpenAPI, AsyncAPI, Protobuf and GraphQL sources into editable, tested draw.io architecture diagrams: incremental sync, multi-view projection, drift diff, CI architecture tests, whiteboard derasterize, interactive HTML/PPTX/Mermaid exports.
Python agent-skillsarchitecturearchitecture-diagramasyncapibpmnc4-modelclaude-codediagramdiagrams-as-codedrawioflowchartgithub-actionsgraphqlimage-to-diagramkubernetesmcp-serverprotobufsysmlterraformuml
Add topology demo diagrams and update READMEs
Agents365-ai2b11aa6e9aeb
diff --git a/README.md b/README.mdindex 35bf452..dc83878 100644--- a/README.md+++ b/README.md@@ -93,12 +93,36 @@ Claude will generate the `.drawio` XML file and export it to PNG automatically.+## Topology demos++The skill handles various diagram topologies with clean edge routing — no lines crossing through shapes.++### Star topology (7 nodes)++Central message broker with 6 microservices radiating outward. Edges enter Kafka from different sides, zero crossings.++++### Layered flow (10 nodes, 4 tiers)++E-commerce architecture with 2 cross-connections: Order→Product (same-tier horizontal) and Auth→Redis (diagonal via routing corridor). All edges route cleanly.++++### Ring / cycle (8 nodes)++CI/CD pipeline with a closed loop and 2 spur branches. Edges flow along the perimeter without crossing the interior.+++## Files-- `SKILL.md` — skill instructions loaded by Claude Code-- `README.md` — this file (English)+- `SKILL.md` — **the only required file**. This is what Claude Code loads as the skill instructions.+- `README.md` — this file (English documentation)- `README_CN.md` — Chinese documentation-- `assets/` — example diagrams+- `assets/` — example diagrams and workflow images++> **Note:** Only `SKILL.md` is needed for the skill to work. The `assets/`, `README.md`, and `README_CN.md` files are documentation only and can be safely deleted to save space.## Licensediff --git a/README_CN.md b/README_CN.mdindex 2684a15..65982f4 100644--- a/README_CN.md+++ b/README_CN.md@@ -94,12 +94,36 @@ Claude 会自动生成 `.drawio` 文件并导出为 PNG。+## 拓扑示例++本 skill 支持多种图表拓扑,线条路由清晰 —— 不会穿越无关的形状。++### 星形拓扑(7 个节点)++中央消息代理 + 6 个微服务辐射排列。连线从不同方向进入 Kafka,零交叉。++++### 分层流程(10 个节点,4 层)++电商架构,含 2 条交叉连线:订单→商品(同层水平)和 认证→Redis(对角线,经路由走廊绕行)。所有线条路由清晰。++++### 环形 / 循环(8 个节点)++CI/CD 流水线,包含闭合回路和 2 个分支。线条沿矩形外围流动,不穿越内部区域。+++## 文件说明-- `SKILL.md` — Claude Code 加载的 skill 指令文件+- `SKILL.md` — **唯一必需的文件**,Claude Code 加载的 skill 指令。- `README.md` — 英文说明- `README_CN.md` — 本文件(中文)-- `assets/` — 示例图表+- `assets/` — 示例图表和工作流图片++> **提示:** 仅 `SKILL.md` 是 skill 运行所必需的。`assets/`、`README.md` 和 `README_CN.md` 仅为文档用途,可以安全删除以节省空间。## 开源协议diff --git a/assets/demo-layered-cn.drawio b/assets/demo-layered-cn.drawionew file mode 100644index 0000000..f263894--- /dev/null+++ b/assets/demo-layered-cn.drawio@@ -0,0 +1,91 @@+<?xml version="1.0" encoding="UTF-8"?>+<mxfile host="drawio" version="26.0.0">+ <diagram name="Page-1">+ <mxGraphModel>+ <root>+ <mxCell id="0" />+ <mxCell id="1" parent="0" />++ <!-- Tier 1: 客户端 -->+ <mxCell id="2" value="浏览器" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">+ <mxGeometry x="220" y="40" width="140" height="50" as="geometry" />+ </mxCell>+ <mxCell id="3" value="移动端 App" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">+ <mxGeometry x="500" y="40" width="140" height="50" as="geometry" />+ </mxCell>++ <!-- Tier 2: API 网关 -->+ <mxCell id="4" value="API 网关" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontStyle=1;fontSize=14;" vertex="1" parent="1">+ <mxGeometry x="320" y="220" width="180" height="60" as="geometry" />+ </mxCell>++ <!-- Tier 3: 服务层 -->+ <mxCell id="5" value="认证服务" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">+ <mxGeometry x="60" y="430" width="150" height="60" as="geometry" />+ </mxCell>+ <mxCell id="6" value="商品服务" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="340" y="430" width="160" height="60" as="geometry" />+ </mxCell>+ <mxCell id="7" value="订单服务" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="640" y="430" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Tier 4: 数据层 -->+ <mxCell id="8" value="用户 DB" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">+ <mxGeometry x="75" y="650" width="120" height="80" as="geometry" />+ </mxCell>+ <mxCell id="9" value="商品 DB" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">+ <mxGeometry x="300" y="650" width="120" height="80" as="geometry" />+ </mxCell>+ <mxCell id="10" value="Redis 缓存" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">+ <mxGeometry x="490" y="660" width="120" height="60" as="geometry" />+ </mxCell>+ <mxCell id="11" value="订单 DB" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">+ <mxGeometry x="660" y="650" width="120" height="80" as="geometry" />+ </mxCell>++ <!-- Edges -->+ <mxCell id="30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2" target="4">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="31" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="3" target="4">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="32" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.25;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="4" target="5">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="4" target="6">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="34" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.75;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="4" target="7">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="35" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="5" target="8">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="36" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.25;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="6" target="9">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="37" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.75;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="6" target="10">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="38" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="7" target="11">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <!-- CROSS: 订单→商品 (check stock) -->+ <mxCell id="39" value="查库存" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="7" target="6">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <!-- CROSS: 认证→Redis (session) -->+ <mxCell id="40" value="会话缓存" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;exitX=0.75;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="5" target="10">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="173" y="590" />+ <mxPoint x="550" y="590" />+ </Array>+ </mxGeometry>+ </mxCell>+ </root>+ </mxGraphModel>+ </diagram>+</mxfile>diff --git a/assets/demo-layered-cn.png b/assets/demo-layered-cn.pngnew file mode 100644index 0000000..935c0aeBinary files /dev/null and b/assets/demo-layered-cn.png differdiff --git a/assets/demo-layered.drawio b/assets/demo-layered.drawionew file mode 100644index 0000000..d6532ad--- /dev/null+++ b/assets/demo-layered.drawio@@ -0,0 +1,112 @@+<?xml version="1.0" encoding="UTF-8"?>+<mxfile host="drawio" version="26.0.0">+ <diagram name="Page-1">+ <mxGraphModel>+ <root>+ <mxCell id="0" />+ <mxCell id="1" parent="0" />++ <!-- Tier 1 (y=40): Clients -->+ <mxCell id="2" value="Browser" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">+ <mxGeometry x="220" y="40" width="140" height="50" as="geometry" />+ </mxCell>+ <mxCell id="3" value="Mobile App" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">+ <mxGeometry x="500" y="40" width="140" height="50" as="geometry" />+ </mxCell>++ <!-- Tier 2 (y=240): API Gateway -->+ <mxCell id="4" value="API Gateway" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontStyle=1;fontSize=14;" vertex="1" parent="1">+ <mxGeometry x="320" y="220" width="180" height="60" as="geometry" />+ </mxCell>++ <!-- Tier 3 (y=440): Services -->+ <mxCell id="5" value="Auth Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">+ <mxGeometry x="60" y="430" width="150" height="60" as="geometry" />+ </mxCell>+ <mxCell id="6" value="Product Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="340" y="430" width="160" height="60" as="geometry" />+ </mxCell>+ <mxCell id="7" value="Order Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="640" y="430" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Tier 4 (y=650): Data stores -->+ <mxCell id="8" value="User DB" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">+ <mxGeometry x="75" y="650" width="120" height="80" as="geometry" />+ </mxCell>+ <mxCell id="9" value="Product DB" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">+ <mxGeometry x="300" y="650" width="120" height="80" as="geometry" />+ </mxCell>+ <mxCell id="10" value="Redis Cache" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">+ <mxGeometry x="490" y="660" width="120" height="60" as="geometry" />+ </mxCell>+ <mxCell id="11" value="Order DB" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">+ <mxGeometry x="660" y="650" width="120" height="80" as="geometry" />+ </mxCell>++ <!-- === EDGES === -->++ <!-- Browser → API Gateway -->+ <mxCell id="30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2" target="4">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Mobile → API Gateway -->+ <mxCell id="31" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="3" target="4">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- API Gateway → Auth -->+ <mxCell id="32" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.25;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="4" target="5">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- API Gateway → Product Svc -->+ <mxCell id="33" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="4" target="6">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- API Gateway → Order Svc -->+ <mxCell id="34" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.75;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="4" target="7">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Auth → User DB (straight down) -->+ <mxCell id="35" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="5" target="8">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Product Svc → Product DB -->+ <mxCell id="36" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.25;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="6" target="9">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Product Svc → Redis Cache -->+ <mxCell id="37" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.75;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="6" target="10">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Order Svc → Order DB (straight down) -->+ <mxCell id="38" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="7" target="11">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- CROSS: Order Svc → Product Svc (same tier, horizontal) -->+ <mxCell id="39" value="check stock" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="7" target="6">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- CROSS: Auth → Redis (diagonal, waypoint through corridor) -->+ <mxCell id="40" value="session" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;exitX=0.75;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="5" target="10">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="173" y="590" />+ <mxPoint x="550" y="590" />+ </Array>+ </mxGeometry>+ </mxCell>++ </root>+ </mxGraphModel>+ </diagram>+</mxfile>diff --git a/assets/demo-layered.png b/assets/demo-layered.pngnew file mode 100644index 0000000..bbc804cBinary files /dev/null and b/assets/demo-layered.png differdiff --git a/assets/demo-ring-cn.drawio b/assets/demo-ring-cn.drawionew file mode 100644index 0000000..6b00676--- /dev/null+++ b/assets/demo-ring-cn.drawio@@ -0,0 +1,68 @@+<?xml version="1.0" encoding="UTF-8"?>+<mxfile host="drawio" version="26.0.0">+ <diagram name="Page-1">+ <mxGraphModel>+ <root>+ <mxCell id="0" />+ <mxCell id="1" parent="0" />++ <!-- Ring top row -->+ <mxCell id="2" value="规划" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="100" y="80" width="140" height="60" as="geometry" />+ </mxCell>+ <mxCell id="3" value="编码" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="380" y="80" width="140" height="60" as="geometry" />+ </mxCell>+ <mxCell id="4" value="构建" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="660" y="80" width="140" height="60" as="geometry" />+ </mxCell>++ <!-- Ring bottom row -->+ <mxCell id="5" value="测试" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">+ <mxGeometry x="660" y="360" width="140" height="60" as="geometry" />+ </mxCell>+ <mxCell id="6" value="部署" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="380" y="360" width="140" height="60" as="geometry" />+ </mxCell>+ <mxCell id="7" value="监控" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">+ <mxGeometry x="100" y="360" width="140" height="60" as="geometry" />+ </mxCell>++ <!-- Spurs -->+ <mxCell id="8" value="制品仓库" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">+ <mxGeometry x="910" y="190" width="120" height="80" as="geometry" />+ </mxCell>+ <mxCell id="9" value="告警 & 仪表盘" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">+ <mxGeometry x="80" y="540" width="180" height="60" as="geometry" />+ </mxCell>++ <!-- Ring edges -->+ <mxCell id="20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="2" target="3">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="21" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="3" target="4">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="4" target="5">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="5" target="6">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="6" target="7">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="25" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="7" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <!-- Spur edges -->+ <mxCell id="26" value="发布" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="5" target="8">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="27" value="触发" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="7" target="9">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ </root>+ </mxGraphModel>+ </diagram>+</mxfile>diff --git a/assets/demo-ring-cn.png b/assets/demo-ring-cn.pngnew file mode 100644index 0000000..18dd89cBinary files /dev/null and b/assets/demo-ring-cn.png differdiff --git a/assets/demo-ring.drawio b/assets/demo-ring.drawionew file mode 100644index 0000000..2463dca--- /dev/null+++ b/assets/demo-ring.drawio@@ -0,0 +1,86 @@+<?xml version="1.0" encoding="UTF-8"?>+<mxfile host="drawio" version="26.0.0">+ <diagram name="Page-1">+ <mxGraphModel>+ <root>+ <mxCell id="0" />+ <mxCell id="1" parent="0" />++ <!-- Ring top row (y=80): Plan → Code → Build -->+ <mxCell id="2" value="Plan" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="100" y="80" width="140" height="60" as="geometry" />+ </mxCell>+ <mxCell id="3" value="Code" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="380" y="80" width="140" height="60" as="geometry" />+ </mxCell>+ <mxCell id="4" value="Build" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="660" y="80" width="140" height="60" as="geometry" />+ </mxCell>++ <!-- Ring bottom row (y=360): Monitor ← Deploy ← Test -->+ <mxCell id="5" value="Test" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">+ <mxGeometry x="660" y="360" width="140" height="60" as="geometry" />+ </mxCell>+ <mxCell id="6" value="Deploy" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="380" y="360" width="140" height="60" as="geometry" />+ </mxCell>+ <mxCell id="7" value="Monitor" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">+ <mxGeometry x="100" y="360" width="140" height="60" as="geometry" />+ </mxCell>++ <!-- Spurs -->+ <mxCell id="8" value="Artifacts" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">+ <mxGeometry x="910" y="190" width="120" height="80" as="geometry" />+ </mxCell>+ <mxCell id="9" value="Alerts & Dashboard" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">+ <mxGeometry x="80" y="540" width="180" height="60" as="geometry" />+ </mxCell>++ <!-- === RING EDGES (clockwise) === -->++ <!-- Plan → Code (right) -->+ <mxCell id="20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="2" target="3">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Code → Build (right) -->+ <mxCell id="21" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="3" target="4">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Build → Test (down) -->+ <mxCell id="22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="4" target="5">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Test → Deploy (left) -->+ <mxCell id="23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="5" target="6">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Deploy → Monitor (left) -->+ <mxCell id="24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="6" target="7">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Monitor → Plan (up) -->+ <mxCell id="25" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="7" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- === SPUR EDGES === -->++ <!-- Test → Artifacts (right-up) -->+ <mxCell id="26" value="publish" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="5" target="8">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Monitor → Alerts (down) -->+ <mxCell id="27" value="trigger" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="7" target="9">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ </root>+ </mxGraphModel>+ </diagram>+</mxfile>diff --git a/assets/demo-ring.png b/assets/demo-ring.pngnew file mode 100644index 0000000..5a53792Binary files /dev/null and b/assets/demo-ring.png differdiff --git a/assets/demo-star-cn.drawio b/assets/demo-star-cn.drawionew file mode 100644index 0000000..bdef159--- /dev/null+++ b/assets/demo-star-cn.drawio@@ -0,0 +1,66 @@+<?xml version="1.0" encoding="UTF-8"?>+<mxfile host="drawio" version="26.0.0">+ <diagram name="Page-1">+ <mxGraphModel>+ <root>+ <mxCell id="0" />+ <mxCell id="1" parent="0" />++ <!-- Hub: Kafka -->+ <mxCell id="2" value="Kafka 消息队列" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontStyle=1;fontSize=14;" vertex="1" parent="1">+ <mxGeometry x="300" y="270" width="200" height="60" as="geometry" />+ </mxCell>++ <!-- Satellite: 用户服务 (top) -->+ <mxCell id="3" value="用户服务" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="320" y="40" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Satellite: 订单服务 (top-right) -->+ <mxCell id="4" value="订单服务" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="600" y="150" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Satellite: 支付服务 (bottom-right) -->+ <mxCell id="5" value="支付服务" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="600" y="390" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Satellite: 库存服务 (bottom) -->+ <mxCell id="6" value="库存服务" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="320" y="500" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Satellite: 通知服务 (bottom-left) -->+ <mxCell id="7" value="通知服务" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">+ <mxGeometry x="40" y="390" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Satellite: 分析服务 (top-left) -->+ <mxCell id="8" value="分析服务" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">+ <mxGeometry x="40" y="150" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Edges -->+ <mxCell id="20" value="事件" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="3" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="21" value="订单" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.25;entryDx=0;entryDy=0;" edge="1" parent="1" source="4" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="22" value="支付" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.75;entryDx=0;entryDy=0;" edge="1" parent="1" source="5" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="23" value="库存" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="6" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="24" value="告警" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.75;entryDx=0;entryDy=0;" edge="1" parent="1" source="7" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="25" value="指标" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;" edge="1" parent="1" source="8" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ </root>+ </mxGraphModel>+ </diagram>+</mxfile>diff --git a/assets/demo-star-cn.png b/assets/demo-star-cn.pngnew file mode 100644index 0000000..9c345ccBinary files /dev/null and b/assets/demo-star-cn.png differdiff --git a/assets/demo-star.drawio b/assets/demo-star.drawionew file mode 100644index 0000000..5ec134a--- /dev/null+++ b/assets/demo-star.drawio@@ -0,0 +1,79 @@+<?xml version="1.0" encoding="UTF-8"?>+<mxfile host="drawio" version="26.0.0">+ <diagram name="Page-1">+ <mxGraphModel>+ <root>+ <mxCell id="0" />+ <mxCell id="1" parent="0" />++ <!-- Hub: Kafka -->+ <mxCell id="2" value="Kafka" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontStyle=1;fontSize=14;" vertex="1" parent="1">+ <mxGeometry x="320" y="270" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Satellite: User Service (top) -->+ <mxCell id="3" value="User Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="320" y="40" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Satellite: Order Service (top-right) -->+ <mxCell id="4" value="Order Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="600" y="150" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Satellite: Payment Service (bottom-right) -->+ <mxCell id="5" value="Payment Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="600" y="390" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Satellite: Inventory Service (bottom) -->+ <mxCell id="6" value="Inventory Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="320" y="500" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Satellite: Notification Service (bottom-left) -->+ <mxCell id="7" value="Notification Svc" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">+ <mxGeometry x="40" y="390" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Satellite: Analytics Service (top-left) -->+ <mxCell id="8" value="Analytics Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">+ <mxGeometry x="40" y="150" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Edges: each satellite ↔ Kafka hub -->++ <!-- User Service → Kafka (top down) -->+ <mxCell id="20" value="events" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="3" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Order Service → Kafka (right to left) -->+ <mxCell id="21" value="orders" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.25;entryDx=0;entryDy=0;" edge="1" parent="1" source="4" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Payment Service → Kafka (right to left) -->+ <mxCell id="22" value="payments" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.75;entryDx=0;entryDy=0;" edge="1" parent="1" source="5" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Inventory Service → Kafka (bottom up) -->+ <mxCell id="23" value="stock" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="6" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Notification Service → Kafka (left to right) -->+ <mxCell id="24" value="alerts" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.75;entryDx=0;entryDy=0;" edge="1" parent="1" source="7" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Analytics Service → Kafka (left to right) -->+ <mxCell id="25" value="metrics" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.25;entryDx=0;entryDy=0;" edge="1" parent="1" source="8" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ </root>+ </mxGraphModel>+ </diagram>+</mxfile>diff --git a/assets/demo-star.png b/assets/demo-star.pngnew file mode 100644index 0000000..994c9a2Binary files /dev/null and b/assets/demo-star.png differ