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
feat: add preset examples, microservices source, and docs accessibility/SEO
Agents365-aia8a46836c50c
diff --git a/assets/demo-erd.drawio b/assets/demo-erd.drawionew file mode 100644index 0000000..3499dbd--- /dev/null+++ b/assets/demo-erd.drawio@@ -0,0 +1,84 @@+<?xml version="1.0" encoding="UTF-8"?>+<mxfile host="drawio" version="26.0.0">+ <diagram name="Page-1">+ <mxGraphModel dx="1200" dy="800" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0">+ <root>+ <mxCell id="0" />+ <mxCell id="1" parent="0" />++ <!-- Users Table -->+ <mxCell id="2" value="Users" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;strokeColor=#6c8ebf;fillColor=#dae8fc;html=1;" vertex="1" parent="1">+ <mxGeometry x="40" y="40" width="220" height="150" as="geometry" />+ </mxCell>+ <mxCell id="3" value="id PK" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;fontStyle=1;html=1;" vertex="1" parent="2">+ <mxGeometry y="30" width="220" height="30" as="geometry" />+ </mxCell>+ <mxCell id="4" value="username" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;html=1;" vertex="1" parent="2">+ <mxGeometry y="60" width="220" height="30" as="geometry" />+ </mxCell>+ <mxCell id="5" value="email" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;html=1;" vertex="1" parent="2">+ <mxGeometry y="90" width="220" height="30" as="geometry" />+ </mxCell>+ <mxCell id="6" value="created_at" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;html=1;" vertex="1" parent="2">+ <mxGeometry y="120" width="220" height="30" as="geometry" />+ </mxCell>++ <!-- Posts Table -->+ <mxCell id="7" value="Posts" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;strokeColor=#6c8ebf;fillColor=#dae8fc;html=1;" vertex="1" parent="1">+ <mxGeometry x="340" y="40" width="220" height="180" as="geometry" />+ </mxCell>+ <mxCell id="8" value="id PK" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;fontStyle=1;html=1;" vertex="1" parent="7">+ <mxGeometry y="30" width="220" height="30" as="geometry" />+ </mxCell>+ <mxCell id="9" value="title" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;html=1;" vertex="1" parent="7">+ <mxGeometry y="60" width="220" height="30" as="geometry" />+ </mxCell>+ <mxCell id="10" value="content" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;html=1;" vertex="1" parent="7">+ <mxGeometry y="90" width="220" height="30" as="geometry" />+ </mxCell>+ <mxCell id="11" value="user_id FK" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;html=1;" vertex="1" parent="7">+ <mxGeometry y="120" width="220" height="30" as="geometry" />+ </mxCell>+ <mxCell id="12" value="created_at" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;html=1;" vertex="1" parent="7">+ <mxGeometry y="150" width="220" height="30" as="geometry" />+ </mxCell>++ <!-- Comments Table -->+ <mxCell id="13" value="Comments" style="shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;strokeColor=#6c8ebf;fillColor=#dae8fc;html=1;" vertex="1" parent="1">+ <mxGeometry x="640" y="40" width="220" height="180" as="geometry" />+ </mxCell>+ <mxCell id="14" value="id PK" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;fontStyle=1;html=1;" vertex="1" parent="13">+ <mxGeometry y="30" width="220" height="30" as="geometry" />+ </mxCell>+ <mxCell id="15" value="body" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;html=1;" vertex="1" parent="13">+ <mxGeometry y="60" width="220" height="30" as="geometry" />+ </mxCell>+ <mxCell id="16" value="post_id FK" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;html=1;" vertex="1" parent="13">+ <mxGeometry y="90" width="220" height="30" as="geometry" />+ </mxCell>+ <mxCell id="17" value="user_id FK" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;html=1;" vertex="1" parent="13">+ <mxGeometry y="120" width="220" height="30" as="geometry" />+ </mxCell>+ <mxCell id="18" value="created_at" style="shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fontSize=12;html=1;" vertex="1" parent="13">+ <mxGeometry y="150" width="220" height="30" as="geometry" />+ </mxCell>++ <!-- FK: Posts.user_id -> Users.id -->+ <mxCell id="19" value="" style="dashed=1;endArrow=ERmandOne;startArrow=ERmandOne;edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="11" target="3">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- FK: Comments.post_id -> Posts.id -->+ <mxCell id="20" value="" style="dashed=1;endArrow=ERmandOne;startArrow=ERmandOne;edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="16" target="8">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- FK: Comments.user_id -> Users.id -->+ <mxCell id="21" value="" style="dashed=1;endArrow=ERmandOne;startArrow=ERmandOne;edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="17" target="3">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ </root>+ </mxGraphModel>+ </diagram>+</mxfile>diff --git a/assets/demo-ml.drawio b/assets/demo-ml.drawionew file mode 100644index 0000000..c6dd216--- /dev/null+++ b/assets/demo-ml.drawio@@ -0,0 +1,90 @@+<?xml version="1.0" encoding="UTF-8"?>+<mxfile host="draw.io" type="device">+ <diagram name="CNN Architecture" id="cnn-arch">+ <mxGraphModel dx="1200" dy="1400" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="800" pageHeight="1600" math="0" shadow="0">+ <root>+ <mxCell id="0" />+ <mxCell id="1" parent="0" />++ <!-- Input Image -->+ <mxCell id="10" value="Input Image
(B, 3, 224, 224)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="320" y="40" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Conv2D + ReLU (1) -->+ <mxCell id="20" value="Conv2D + ReLU
(B, 64, 112, 112)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="320" y="190" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- MaxPool (1) -->+ <mxCell id="30" value="MaxPool 2x2
(B, 64, 56, 56)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="320" y="340" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Conv2D + ReLU (2) -->+ <mxCell id="40" value="Conv2D + ReLU
(B, 128, 56, 56)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="320" y="490" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- MaxPool (2) -->+ <mxCell id="50" value="MaxPool 2x2
(B, 128, 28, 28)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="320" y="640" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Flatten -->+ <mxCell id="60" value="Flatten
(B, 100352)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">+ <mxGeometry x="320" y="790" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- FC (512) -->+ <mxCell id="70" value="FC + ReLU
(B, 512)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="320" y="940" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- FC (10) -->+ <mxCell id="80" value="FC
(B, 10)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="320" y="1090" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Softmax Output -->+ <mxCell id="90" value="Softmax Output
(B, 10)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="320" y="1240" width="160" height="60" as="geometry" />+ </mxCell>++ <!-- Arrows -->+ <mxCell id="101" style="endArrow=block;endFill=1;html=1;" edge="1" parent="1" source="10" target="20">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <mxCell id="102" style="endArrow=block;endFill=1;html=1;" edge="1" parent="1" source="20" target="30">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <mxCell id="103" style="endArrow=block;endFill=1;html=1;" edge="1" parent="1" source="30" target="40">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <mxCell id="104" style="endArrow=block;endFill=1;html=1;" edge="1" parent="1" source="40" target="50">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <mxCell id="105" style="endArrow=block;endFill=1;html=1;" edge="1" parent="1" source="50" target="60">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <mxCell id="106" style="endArrow=block;endFill=1;html=1;" edge="1" parent="1" source="60" target="70">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <mxCell id="107" style="endArrow=block;endFill=1;html=1;" edge="1" parent="1" source="70" target="80">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <mxCell id="108" style="endArrow=block;endFill=1;html=1;" edge="1" parent="1" source="80" target="90">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ </root>+ </mxGraphModel>+ </diagram>+</mxfile>diff --git a/assets/demo-sequence.drawio b/assets/demo-sequence.drawionew file mode 100644index 0000000..4e16035--- /dev/null+++ b/assets/demo-sequence.drawio@@ -0,0 +1,116 @@+<?xml version="1.0" encoding="UTF-8"?>+<mxfile host="draw.io" type="device">+ <diagram name="Login Sequence" id="seq-login">+ <mxGraphModel dx="1200" dy="800" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1200" pageHeight="600" math="0" shadow="0">+ <root>+ <mxCell id="0" />+ <mxCell id="1" parent="0" />++ <!-- Lifeline: Client -->+ <mxCell id="10" value="Client" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=1;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="100" y="40" width="100" height="400" as="geometry" />+ </mxCell>++ <!-- Lifeline: API Gateway -->+ <mxCell id="20" value="API Gateway" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=1;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="300" y="40" width="100" height="400" as="geometry" />+ </mxCell>++ <!-- Lifeline: Auth Service -->+ <mxCell id="30" value="Auth Service" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=1;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="500" y="40" width="100" height="400" as="geometry" />+ </mxCell>++ <!-- Lifeline: User DB -->+ <mxCell id="40" value="User DB" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=1;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="700" y="40" width="100" height="400" as="geometry" />+ </mxCell>++ <!-- Message 1: Client -> API Gateway: login request (sync) -->+ <mxCell id="51" value="login(user, pass)" style="html=1;verticalAlign=bottom;endArrow=block;edgeStyle=orthogonalEdgeStyle;rounded=1;" edge="1" parent="1" source="10" target="20">+ <mxGeometry relative="1" as="geometry">+ <mxPoint x="150" y="120" as="sourcePoint" />+ <mxPoint x="350" y="120" as="targetPoint" />+ <Array as="points">+ <mxPoint x="150" y="120" />+ <mxPoint x="350" y="120" />+ </Array>+ </mxGeometry>+ </mxCell>++ <!-- Message 2: API Gateway -> Auth Service: forward auth (sync) -->+ <mxCell id="52" value="authenticate(user, pass)" style="html=1;verticalAlign=bottom;endArrow=block;edgeStyle=orthogonalEdgeStyle;rounded=1;" edge="1" parent="1" source="20" target="30">+ <mxGeometry relative="1" as="geometry">+ <mxPoint x="350" y="160" as="sourcePoint" />+ <mxPoint x="550" y="160" as="targetPoint" />+ <Array as="points">+ <mxPoint x="350" y="160" />+ <mxPoint x="550" y="160" />+ </Array>+ </mxGeometry>+ </mxCell>++ <!-- Message 3: Auth Service -> User DB: query user (sync) -->+ <mxCell id="53" value="SELECT * FROM users" style="html=1;verticalAlign=bottom;endArrow=block;edgeStyle=orthogonalEdgeStyle;rounded=1;" edge="1" parent="1" source="30" target="40">+ <mxGeometry relative="1" as="geometry">+ <mxPoint x="550" y="200" as="sourcePoint" />+ <mxPoint x="750" y="200" as="targetPoint" />+ <Array as="points">+ <mxPoint x="550" y="200" />+ <mxPoint x="750" y="200" />+ </Array>+ </mxGeometry>+ </mxCell>++ <!-- Message 4: User DB -> Auth Service: return user data (dashed return) -->+ <mxCell id="54" value="userData" style="html=1;verticalAlign=bottom;endArrow=open;dashed=1;strokeColor=#999999;edgeStyle=orthogonalEdgeStyle;rounded=1;" edge="1" parent="1" source="40" target="30">+ <mxGeometry relative="1" as="geometry">+ <mxPoint x="750" y="240" as="sourcePoint" />+ <mxPoint x="550" y="240" as="targetPoint" />+ <Array as="points">+ <mxPoint x="750" y="240" />+ <mxPoint x="550" y="240" />+ </Array>+ </mxGeometry>+ </mxCell>++ <!-- Message 5: Auth Service generates JWT (self-call note) -->+ <mxCell id="55" value="generateJWT(userData)" style="html=1;verticalAlign=bottom;endArrow=block;edgeStyle=orthogonalEdgeStyle;rounded=1;" edge="1" parent="1" source="30" target="30">+ <mxGeometry relative="1" as="geometry">+ <mxPoint x="550" y="280" as="sourcePoint" />+ <mxPoint x="600" y="280" as="targetPoint" />+ <Array as="points">+ <mxPoint x="600" y="270" />+ <mxPoint x="600" y="290" />+ </Array>+ </mxGeometry>+ </mxCell>++ <!-- Message 6: Auth Service -> API Gateway: return token (dashed return) -->+ <mxCell id="56" value="JWT token" style="html=1;verticalAlign=bottom;endArrow=open;dashed=1;strokeColor=#999999;edgeStyle=orthogonalEdgeStyle;rounded=1;" edge="1" parent="1" source="30" target="20">+ <mxGeometry relative="1" as="geometry">+ <mxPoint x="550" y="320" as="sourcePoint" />+ <mxPoint x="350" y="320" as="targetPoint" />+ <Array as="points">+ <mxPoint x="550" y="320" />+ <mxPoint x="350" y="320" />+ </Array>+ </mxGeometry>+ </mxCell>++ <!-- Message 7: API Gateway -> Client: return token (dashed return) -->+ <mxCell id="57" value="{ token: JWT }" style="html=1;verticalAlign=bottom;endArrow=open;dashed=1;strokeColor=#999999;edgeStyle=orthogonalEdgeStyle;rounded=1;" edge="1" parent="1" source="20" target="10">+ <mxGeometry relative="1" as="geometry">+ <mxPoint x="350" y="360" as="sourcePoint" />+ <mxPoint x="150" y="360" as="targetPoint" />+ <Array as="points">+ <mxPoint x="350" y="360" />+ <mxPoint x="150" y="360" />+ </Array>+ </mxGeometry>+ </mxCell>++ </root>+ </mxGraphModel>+ </diagram>+</mxfile>diff --git a/assets/demo-uml-class.drawio b/assets/demo-uml-class.drawionew file mode 100644index 0000000..e7d68df--- /dev/null+++ b/assets/demo-uml-class.drawio@@ -0,0 +1,64 @@+<?xml version="1.0" encoding="UTF-8"?>+<mxfile host="drawio" version="26.0.0">+ <diagram name="Page-1">+ <mxGraphModel dx="1200" dy="800" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" math="0" shadow="0">+ <root>+ <mxCell id="0" />+ <mxCell id="1" parent="0" />++ <!-- Shape (abstract class) -->+ <mxCell id="2" value="<<abstract>>
Shape" style="swimlane;fontStyle=1;align=center;startSize=40;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="280" y="40" width="200" height="130" as="geometry" />+ </mxCell>+ <mxCell id="3" value="- color: String" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;" vertex="1" parent="2">+ <mxGeometry y="40" width="200" height="30" as="geometry" />+ </mxCell>+ <mxCell id="4" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=10;rotatable=0;labelPosition=left;points=[];portConstraint=eastwest;html=1;" vertex="1" parent="2">+ <mxGeometry y="70" width="200" height="10" as="geometry" />+ </mxCell>+ <mxCell id="5" value="+ area(): double
+ perimeter(): double" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;" vertex="1" parent="2">+ <mxGeometry y="80" width="200" height="50" as="geometry" />+ </mxCell>++ <!-- Circle class -->+ <mxCell id="6" value="Circle" style="swimlane;fontStyle=1;align=center;startSize=26;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="80" y="280" width="200" height="130" as="geometry" />+ </mxCell>+ <mxCell id="7" value="- radius: double" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;" vertex="1" parent="6">+ <mxGeometry y="26" width="200" height="30" as="geometry" />+ </mxCell>+ <mxCell id="8" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=10;rotatable=0;labelPosition=left;points=[];portConstraint=eastwest;html=1;" vertex="1" parent="6">+ <mxGeometry y="56" width="200" height="10" as="geometry" />+ </mxCell>+ <mxCell id="9" value="+ area(): double
+ perimeter(): double" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;" vertex="1" parent="6">+ <mxGeometry y="66" width="200" height="64" as="geometry" />+ </mxCell>++ <!-- Rectangle class -->+ <mxCell id="10" value="Rectangle" style="swimlane;fontStyle=1;align=center;startSize=26;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="480" y="280" width="200" height="130" as="geometry" />+ </mxCell>+ <mxCell id="11" value="- width: double
- height: double" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;" vertex="1" parent="10">+ <mxGeometry y="26" width="200" height="40" as="geometry" />+ </mxCell>+ <mxCell id="12" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=10;rotatable=0;labelPosition=left;points=[];portConstraint=eastwest;html=1;" vertex="1" parent="10">+ <mxGeometry y="66" width="200" height="10" as="geometry" />+ </mxCell>+ <mxCell id="13" value="+ area(): double
+ perimeter(): double" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;" vertex="1" parent="10">+ <mxGeometry y="76" width="200" height="54" as="geometry" />+ </mxCell>++ <!-- Inheritance: Circle extends Shape -->+ <mxCell id="14" value="" style="endArrow=block;endFill=0;edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.25;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="6" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Inheritance: Rectangle extends Shape -->+ <mxCell id="15" value="" style="endArrow=block;endFill=0;edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.75;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="10" target="2">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ </root>+ </mxGraphModel>+ </diagram>+</mxfile>diff --git a/assets/microservices-example.drawio b/assets/microservices-example.drawionew file mode 100644index 0000000..00f068e--- /dev/null+++ b/assets/microservices-example.drawio@@ -0,0 +1,173 @@+<?xml version="1.0" encoding="UTF-8"?>+<mxfile host="drawio" version="26.0.0">+ <diagram name="Microservices E-Commerce Architecture">+ <mxGraphModel dx="1200" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1200" pageHeight="900" math="0" shadow="0">+ <root>+ <mxCell id="0" />+ <mxCell id="1" parent="0" />++ <!-- Client Tier -->+ <mxCell id="10" value="Client Tier" style="swimlane;startSize=30;fillColor=#dae8fc;strokeColor=#6c8ebf;rounded=1;html=1;fontSize=14;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="100" y="20" width="1000" height="100" as="geometry" />+ </mxCell>+ <mxCell id="11" value="Mobile App" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="10">+ <mxGeometry x="80" y="40" width="140" height="50" as="geometry" />+ </mxCell>+ <mxCell id="12" value="Web App" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="10">+ <mxGeometry x="430" y="40" width="140" height="50" as="geometry" />+ </mxCell>+ <mxCell id="13" value="Admin Panel" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="10">+ <mxGeometry x="780" y="40" width="140" height="50" as="geometry" />+ </mxCell>++ <!-- API Gateway Tier -->+ <mxCell id="20" value="API Gateway Tier" style="swimlane;startSize=30;fillColor=#ffe6cc;strokeColor=#d79b00;rounded=1;html=1;fontSize=14;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="100" y="200" width="1000" height="100" as="geometry" />+ </mxCell>+ <mxCell id="21" value="API Gateway
Auth + Rate Limit + Routing" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;fontSize=12;" vertex="1" parent="20">+ <mxGeometry x="350" y="35" width="300" height="55" as="geometry" />+ </mxCell>++ <!-- Services Tier -->+ <mxCell id="30" value="Services Tier" style="swimlane;startSize=30;fillColor=#dae8fc;strokeColor=#6c8ebf;rounded=1;html=1;fontSize=14;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="100" y="380" width="1000" height="100" as="geometry" />+ </mxCell>+ <mxCell id="31" value="Auth Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="30">+ <mxGeometry x="20" y="40" width="140" height="50" as="geometry" />+ </mxCell>+ <mxCell id="32" value="User Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="30">+ <mxGeometry x="210" y="40" width="140" height="50" as="geometry" />+ </mxCell>+ <mxCell id="33" value="Order Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="30">+ <mxGeometry x="430" y="40" width="140" height="50" as="geometry" />+ </mxCell>+ <mxCell id="34" value="Product Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="30">+ <mxGeometry x="620" y="40" width="160" height="50" as="geometry" />+ </mxCell>+ <mxCell id="35" value="Payment Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="30">+ <mxGeometry x="830" y="40" width="150" height="50" as="geometry" />+ </mxCell>++ <!-- Kafka Message Queue (centered between Services and Data) -->+ <mxCell id="40" value="Kafka Message Queue" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=12;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="420" y="560" width="200" height="50" as="geometry" />+ </mxCell>++ <!-- Notification Service -->+ <mxCell id="41" value="Notification Service" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">+ <mxGeometry x="760" y="560" width="160" height="50" as="geometry" />+ </mxCell>++ <!-- Data Tier -->+ <mxCell id="50" value="Data Tier" style="swimlane;startSize=30;fillColor=#d5e8d4;strokeColor=#82b366;rounded=1;html=1;fontSize=14;fontStyle=1;" vertex="1" parent="1">+ <mxGeometry x="100" y="690" width="1000" height="120" as="geometry" />+ </mxCell>+ <mxCell id="51" value="User DB" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="50">+ <mxGeometry x="50" y="35" width="120" height="70" as="geometry" />+ </mxCell>+ <mxCell id="52" value="Order DB" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="50">+ <mxGeometry x="250" y="35" width="120" height="70" as="geometry" />+ </mxCell>+ <mxCell id="53" value="Product DB" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="50">+ <mxGeometry x="450" y="35" width="120" height="70" as="geometry" />+ </mxCell>+ <mxCell id="54" value="Redis Cache" style="shape=cylinder3;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="50">+ <mxGeometry x="680" y="35" width="120" height="70" as="geometry" />+ </mxCell>+ <mxCell id="55" value="Stripe API" style="rounded=1;whiteSpace=wrap;html=1;dashed=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;" vertex="1" parent="50">+ <mxGeometry x="860" y="45" width="120" height="50" as="geometry" />+ </mxCell>++ <!-- Edges: Clients to API Gateway -->+ <mxCell id="60" 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="11" target="21">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="61" 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="12" target="21">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="62" 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="13" target="21">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Edges: API Gateway to Services (distributed exit points) -->+ <mxCell id="63" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.1;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="21" target="31">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="64" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.3;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="21" target="32">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="65" 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="21" target="33">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="66" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.7;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="21" target="34">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="67" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.9;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="21" target="35">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Edges: Order Service and Payment Service to Kafka -->+ <mxCell id="70" 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="33" target="40">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>+ <mxCell id="71" 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="35" target="40">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Edge: Kafka to Notification Service -->+ <mxCell id="72" 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="40" target="41">+ <mxGeometry relative="1" as="geometry" />+ </mxCell>++ <!-- Edges: Services to Databases -->+ <!-- User Service to User DB -->+ <mxCell id="80" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="32" target="51">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="310" y="510" />+ <mxPoint x="210" y="510" />+ </Array>+ </mxGeometry>+ </mxCell>+ <!-- Order Service to Order DB -->+ <mxCell id="81" 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="33" target="52">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="565" y="640" />+ <mxPoint x="410" y="640" />+ </Array>+ </mxGeometry>+ </mxCell>+ <!-- Product Service to Product DB -->+ <mxCell id="82" 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="34" target="53">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="800" y="640" />+ <mxPoint x="610" y="640" />+ </Array>+ </mxGeometry>+ </mxCell>+ <!-- Auth Service to Redis Cache -->+ <mxCell id="83" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="31" target="54">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="120" y="510" />+ <mxPoint x="120" y="650" />+ <mxPoint x="840" y="650" />+ </Array>+ </mxGeometry>+ </mxCell>+ <!-- Payment Service to Stripe API -->+ <mxCell id="84" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;dashed=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="35" target="55">+ <mxGeometry relative="1" as="geometry">+ <Array as="points">+ <mxPoint x="1080" y="640" />+ <mxPoint x="1020" y="640" />+ </Array>+ </mxGeometry>+ </mxCell>++ </root>+ </mxGraphModel>+ </diagram>+</mxfile>diff --git a/docs/index.html b/docs/index.htmlindex b50d43c..e3d871d 100644--- a/docs/index.html+++ b/docs/index.html@@ -5,6 +5,16 @@<meta name="viewport" content="width=device-width, initial-scale=1.0"><title>drawio-skill — From Text to Professional Diagrams</title><meta name="description" content="Claude Code skill for generating professional draw.io diagrams from natural language. 6 diagram presets, ML/DL support, self-check loop, animated connectors.">+ <meta name="theme-color" content="#0d1117">+ <link rel="canonical" href="https://agents365-ai.github.io/drawio-skill/">+ <link rel="alternate" hreflang="zh" href="https://agents365-ai.github.io/drawio-skill/zh.html">+ <link rel="alternate" hreflang="en" href="https://agents365-ai.github.io/drawio-skill/">+ <meta property="og:title" content="drawio-skill — From Text to Professional Diagrams">+ <meta property="og:description" content="Claude Code skill for generating professional draw.io diagrams from natural language. 6 diagram presets, ML/DL support, self-check loop.">+ <meta property="og:type" content="website">+ <meta property="og:url" content="https://agents365-ai.github.io/drawio-skill/">+ <meta property="og:image" content="https://raw.githubusercontent.com/Agents365-ai/drawio-skill/main/assets/demo-star.png">+ <meta name="twitter:card" content="summary_large_image"><style>*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }@@ -129,6 +139,7 @@}.tab:first-child { border-radius: 8px 0 0 0; }.tab:last-child { border-radius: 0 8px 0 0; }+ button.tab { font-family: inherit; }.tab.active { background: var(--bg-code); color: var(--text); border-bottom-color: var(--bg-code); }.tab-content {display: none; background: var(--bg-code); border: 1px solid var(--border);@@ -156,18 +167,26 @@.features-grid { grid-template-columns: 1fr; }.hero-install { flex-direction: column; font-size: 13px; }}+ .skip-link {+ position: absolute; top: -40px; left: 0; background: var(--accent); color: #fff;+ padding: 8px 16px; z-index: 200; font-size: 14px; transition: top 0.2s;+ }+ .skip-link:focus { top: 0; }+ .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }</style></head><body>+ <a href="#main-content" class="skip-link">Skip to main content</a>- <nav>+ <nav role="navigation" aria-label="Main"><div class="logo">drawio-<span>skill</span></div><div class="nav-right"><a href="zh.html" class="lang-switch">中文</a>- <button class="theme-btn" onclick="toggleTheme()" title="Toggle theme">🌙</button>+ <button class="theme-btn" onclick="toggleTheme()" title="Toggle theme" aria-label="Toggle dark/light theme">🌙</button></div></nav>+ <main id="main-content"><!-- Hero --><div class="hero"><div class="container">@@ -256,6 +275,7 @@<div class="container"><h2 class="section-title">vs Native Agent</h2><p class="section-sub">What you get with the skill vs prompting an LLM directly.</p>+ <div class="table-wrapper"><table class="compare-table"><thead><tr><th>Feature</th><th>Native Agent</th><th>This Skill</th></tr>@@ -276,6 +296,7 @@<tr><td>Auto-launch desktop app</td><td class="cross">✗</td><td class="check">✓ Opens .drawio for fine-tuning</td></tr></tbody></table>+ </div></div></section>@@ -284,36 +305,36 @@<div class="container"><h2 class="section-title">Install</h2><p class="section-sub">Pick your platform. Takes 10 seconds.</p>- <div class="tabs">- <div class="tab active" onclick="switchTab(event, 'tab-claude')">Claude Code</div>- <div class="tab" onclick="switchTab(event, 'tab-openclaw')">OpenClaw</div>- <div class="tab" onclick="switchTab(event, 'tab-skillsmp')">SkillsMP</div>- <div class="tab" onclick="switchTab(event, 'tab-clawhub')">ClawHub</div>- <div class="tab" onclick="switchTab(event, 'tab-codex')">Codex</div>+ <div class="tabs" role="tablist" aria-label="Installation platforms">+ <button class="tab active" role="tab" aria-selected="true" aria-controls="tab-claude" onclick="switchTab(event, 'tab-claude')">Claude Code</button>+ <button class="tab" role="tab" aria-selected="false" aria-controls="tab-openclaw" onclick="switchTab(event, 'tab-openclaw')">OpenClaw</button>+ <button class="tab" role="tab" aria-selected="false" aria-controls="tab-skillsmp" onclick="switchTab(event, 'tab-skillsmp')">SkillsMP</button>+ <button class="tab" role="tab" aria-selected="false" aria-controls="tab-clawhub" onclick="switchTab(event, 'tab-clawhub')">ClawHub</button>+ <button class="tab" role="tab" aria-selected="false" aria-controls="tab-codex" onclick="switchTab(event, 'tab-codex')">Codex</button></div>- <div id="tab-claude" class="tab-content active">+ <div id="tab-claude" class="tab-content active" role="tabpanel"><pre># Global install (available in all projects)git clone https://github.com/Agents365-ai/drawio-skill.git ~/.claude/skills/drawio-skill# Project-level installgit clone https://github.com/Agents365-ai/drawio-skill.git .claude/skills/drawio-skill</pre></div>- <div id="tab-openclaw" class="tab-content">+ <div id="tab-openclaw" class="tab-content" role="tabpanel"><pre># Via ClawHub registryclawhub install drawio-pro-skill# Manual installgit clone https://github.com/Agents365-ai/drawio-skill.git ~/.openclaw/skills/drawio-skill</pre></div>- <div id="tab-skillsmp" class="tab-content">+ <div id="tab-skillsmp" class="tab-content" role="tabpanel"><pre># Via SkillsMP CLIskills install drawio-skill</pre></div>- <div id="tab-clawhub" class="tab-content">+ <div id="tab-clawhub" class="tab-content" role="tabpanel"><pre># Via ClawHub CLIclawhub install drawio-pro-skill</pre></div>- <div id="tab-codex" class="tab-content">+ <div id="tab-codex" class="tab-content" role="tabpanel"><pre># User-level installgit clone https://github.com/Agents365-ai/drawio-skill.git ~/.agents/skills/drawio-skill@@ -323,6 +344,8 @@ git clone https://github.com/Agents365-ai/drawio-skill.git .agents/skills/drawio</div></section>+ </main>+<!-- Footer --><footer><div class="container">@@ -344,9 +367,10 @@ git clone https://github.com/Agents365-ai/drawio-skill.git .agents/skills/drawio});}function switchTab(e, id) {- document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));+ document.querySelectorAll('.tab').forEach(t => { t.classList.remove('active'); t.setAttribute('aria-selected', 'false'); });document.querySelectorAll('.tab-content').forEach(t => t.classList.remove('active'));e.target.classList.add('active');+ e.target.setAttribute('aria-selected', 'true');document.getElementById(id).classList.add('active');}function toggleTheme() {diff --git a/docs/zh.html b/docs/zh.htmlindex a11dcc4..81c25a8 100644--- a/docs/zh.html+++ b/docs/zh.html@@ -5,6 +5,16 @@<meta name="viewport" content="width=device-width, initial-scale=1.0"><title>drawio-skill — 从文本到专业图表</title><meta name="description" content="Claude Code skill,通过自然语言生成专业 draw.io 图表。6 种图表预设、ML/DL 支持、自检循环、动画连接线。">+ <meta name="theme-color" content="#0d1117">+ <link rel="canonical" href="https://agents365-ai.github.io/drawio-skill/zh.html">+ <link rel="alternate" hreflang="zh" href="https://agents365-ai.github.io/drawio-skill/zh.html">+ <link rel="alternate" hreflang="en" href="https://agents365-ai.github.io/drawio-skill/">+ <meta property="og:title" content="drawio-skill — 从文本到专业图表">+ <meta property="og:description" content="Claude Code skill,通过自然语言生成专业 draw.io 图表。6 种图表预设、ML/DL 支持、自检循环。">+ <meta property="og:type" content="website">+ <meta property="og:url" content="https://agents365-ai.github.io/drawio-skill/zh.html">+ <meta property="og:image" content="https://raw.githubusercontent.com/Agents365-ai/drawio-skill/main/assets/demo-star-cn.png">+ <meta name="twitter:card" content="summary_large_image"><style>*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }@@ -120,6 +130,7 @@}.tab:first-child { border-radius: 8px 0 0 0; }.tab:last-child { border-radius: 0 8px 0 0; }+ button.tab { font-family: inherit; }.tab.active { background: var(--bg-code); color: var(--text); border-bottom-color: var(--bg-code); }.tab-content {display: none; background: var(--bg-code); border: 1px solid var(--border);@@ -145,18 +156,26 @@.features-grid { grid-template-columns: 1fr; }.hero-install { flex-direction: column; font-size: 13px; }}+ .skip-link {+ position: absolute; top: -40px; left: 0; background: var(--accent); color: #fff;+ padding: 8px 16px; z-index: 200; font-size: 14px; transition: top 0.2s;+ }+ .skip-link:focus { top: 0; }+ .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }</style></head><body>+ <a href="#main-content" class="skip-link">跳转到主要内容</a>- <nav>+ <nav role="navigation" aria-label="主导航"><div class="logo">drawio-<span>skill</span></div><div class="nav-right"><a href="index.html" class="lang-switch">English</a>- <button class="theme-btn" onclick="toggleTheme()" title="切换主题">🌙</button>+ <button class="theme-btn" onclick="toggleTheme()" title="切换主题" aria-label="切换深色/浅色主题">🌙</button></div></nav>+ <main id="main-content"><!-- Hero --><div class="hero"><div class="container">@@ -245,6 +264,7 @@<div class="container"><h2 class="section-title">对比原生智能体</h2><p class="section-sub">使用本 skill 与直接提示 LLM 的区别。</p>+ <div class="table-wrapper"><table class="compare-table"><thead><tr><th>功能</th><th>原生智能体</th><th>本 Skill</th></tr>@@ -265,6 +285,7 @@<tr><td>自动启动桌面版</td><td class="cross">✗</td><td class="check">✓ 导出后打开 .drawio</td></tr></tbody></table>+ </div></div></section>@@ -273,36 +294,36 @@<div class="container"><h2 class="section-title">安装</h2><p class="section-sub">选择你的平台,10 秒搞定。</p>- <div class="tabs">- <div class="tab active" onclick="switchTab(event, 'tab-claude')">Claude Code</div>- <div class="tab" onclick="switchTab(event, 'tab-openclaw')">OpenClaw</div>- <div class="tab" onclick="switchTab(event, 'tab-skillsmp')">SkillsMP</div>- <div class="tab" onclick="switchTab(event, 'tab-clawhub')">ClawHub</div>- <div class="tab" onclick="switchTab(event, 'tab-codex')">Codex</div>+ <div class="tabs" role="tablist" aria-label="安装平台">+ <button class="tab active" role="tab" aria-selected="true" aria-controls="tab-claude" onclick="switchTab(event, 'tab-claude')">Claude Code</button>+ <button class="tab" role="tab" aria-selected="false" aria-controls="tab-openclaw" onclick="switchTab(event, 'tab-openclaw')">OpenClaw</button>+ <button class="tab" role="tab" aria-selected="false" aria-controls="tab-skillsmp" onclick="switchTab(event, 'tab-skillsmp')">SkillsMP</button>+ <button class="tab" role="tab" aria-selected="false" aria-controls="tab-clawhub" onclick="switchTab(event, 'tab-clawhub')">ClawHub</button>+ <button class="tab" role="tab" aria-selected="false" aria-controls="tab-codex" onclick="switchTab(event, 'tab-codex')">Codex</button></div>- <div id="tab-claude" class="tab-content active">+ <div id="tab-claude" class="tab-content active" role="tabpanel"><pre># 全局安装(所有项目可用)git clone https://github.com/Agents365-ai/drawio-skill.git ~/.claude/skills/drawio-skill# 项目级安装git clone https://github.com/Agents365-ai/drawio-skill.git .claude/skills/drawio-skill</pre></div>- <div id="tab-openclaw" class="tab-content">+ <div id="tab-openclaw" class="tab-content" role="tabpanel"><pre># 通过 ClawHub 安装clawhub install drawio-pro-skill# 手动安装git clone https://github.com/Agents365-ai/drawio-skill.git ~/.openclaw/skills/drawio-skill</pre></div>- <div id="tab-skillsmp" class="tab-content">+ <div id="tab-skillsmp" class="tab-content" role="tabpanel"><pre># 通过 SkillsMP CLIskills install drawio-skill</pre></div>- <div id="tab-clawhub" class="tab-content">+ <div id="tab-clawhub" class="tab-content" role="tabpanel"><pre># 通过 ClawHub CLIclawhub install drawio-pro-skill</pre></div>- <div id="tab-codex" class="tab-content">+ <div id="tab-codex" class="tab-content" role="tabpanel"><pre># 用户级安装git clone https://github.com/Agents365-ai/drawio-skill.git ~/.agents/skills/drawio-skill@@ -312,6 +333,8 @@ git clone https://github.com/Agents365-ai/drawio-skill.git .agents/skills/drawio</div></section>+ </main>+<!-- Footer --><footer><div class="container">@@ -333,9 +356,10 @@ git clone https://github.com/Agents365-ai/drawio-skill.git .agents/skills/drawio});}function switchTab(e, id) {- document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));+ document.querySelectorAll('.tab').forEach(t => { t.classList.remove('active'); t.setAttribute('aria-selected', 'false'); });document.querySelectorAll('.tab-content').forEach(t => t.classList.remove('active'));e.target.classList.add('active');+ e.target.setAttribute('aria-selected', 'true');document.getElementById(id).classList.add('active');}function toggleTheme() {