AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He
feat(charts): add architecture diagram family with enforced title+description slots
hugohe3cd27502a17f3
diff --git a/skills/ppt-master/references/executor-base.md b/skills/ppt-master/references/executor-base.mdindex cfef5fe9..6b8721c0 100644--- a/skills/ppt-master/references/executor-base.md+++ b/skills/ppt-master/references/executor-base.md@@ -184,7 +184,7 @@ When the Design Spec includes a **VII. Visualization Reference List**, read the- **May adjust freely**: Visual composition, axis ranges, grid lines, legend position, spacing, decorative elements — creative freedom is encouraged as long as the chart remains accurate and readable- **Must NOT**: Change visualization type without Design Spec justification, or omit data points / structural elements specified in the outline-> Visualization templates: `templates/charts/` (52 types). Index: `templates/charts/charts_index.json`+> Visualization templates: `templates/charts/` (57 types). Index: `templates/charts/charts_index.json`---diff --git a/skills/ppt-master/references/strategist.md b/skills/ppt-master/references/strategist.mdindex e388040d..94332289 100644--- a/skills/ppt-master/references/strategist.md+++ b/skills/ppt-master/references/strategist.md@@ -284,12 +284,12 @@ Core logic (side-by-side only): the container's aspect ratio must closely matchWhen content outline pages involve **data visualization or infographic-style structured information design** (comparisons, trends, proportions, KPIs, flows, timelines, org structures, strategic frameworks, etc.), Strategist should select appropriate visualization types from the built-in template library.-> **Mandatory first step**: At the beginning of content planning, **read the full `templates/charts/charts_index.json`** file. This index contains all available visualization templates (52 types across 8 categories), including each template's `summary`, `bestFor`, `avoidFor`, and `keywords`. Strategist must internalize the full catalog before making selections — do NOT rely on memory or partial lists.+> **Mandatory first step**: At the beginning of content planning, **read the full `templates/charts/charts_index.json`** file. This index contains all available visualization templates (57 types across 9 categories), including each template's `summary`, `bestFor`, `avoidFor`, and `keywords`. Strategist must internalize the full catalog before making selections — do NOT rely on memory or partial lists.> **Selection workflow**:> 1. Read and internalize the complete `templates/charts/charts_index.json`> 2. For each page in the content outline, determine whether it needs visualization based on its information structure-> 3. Match page content against the `bestFor` / `avoidFor` / `keywords` fields across all 52 templates to find the best fit+> 3. Match page content against the `bestFor` / `avoidFor` / `keywords` fields across all 57 templates to find the best fit> 4. Use `quickLookup` as a secondary cross-reference when multiple candidates seem suitable> 5. List all selected visualizations in Design Spec **section VII (Visualization Reference List)** as a centralized reference; in section IX Content Outline, each page only needs to note the visualization type name>diff --git a/skills/ppt-master/templates/README.md b/skills/ppt-master/templates/README.mdindex d9961eb8..491f7137 100644--- a/skills/ppt-master/templates/README.md+++ b/skills/ppt-master/templates/README.md@@ -23,7 +23,7 @@ The `layouts/` directory contains pre-built page layout templates organized by d## Visualization Templates-The `charts/` directory contains 52 standardized visualization templates. For backward compatibility, the directory name remains `charts/`, but its scope includes charts, infographics, process diagrams, relationship diagrams, and strategic frameworks:+The `charts/` directory contains 57 standardized visualization templates. For backward compatibility, the directory name remains `charts/`, but its scope includes charts, infographics, process diagrams, relationship diagrams, strategic frameworks, and system architecture diagrams:- KPI Cards- Bar Chart / Stacked Bar Chart@@ -36,6 +36,7 @@ The `charts/` directory contains 52 standardized visualization templates. For ba- Gantt Chart- Process Flow- Org Chart+- Layered Architecture / Module Composition / Hub with Described Spokes / Pipeline with Stages / Client-Server Flow- **Human browsing**: [charts/README.md](./charts/README.md)- **AI / Programmatic lookup**: [charts/charts_index.json](./charts/charts_index.json)diff --git a/skills/ppt-master/templates/charts/README.md b/skills/ppt-master/templates/charts/README.mdindex 4cf5b2d6..99382cf1 100644--- a/skills/ppt-master/templates/charts/README.md+++ b/skills/ppt-master/templates/charts/README.md@@ -1,6 +1,6 @@-# SVG Visualization Template Library (52 Types)+# SVG Visualization Template Library (57 Types)-This directory provides **52 standardized SVG visualization templates** for use as structured visualization selection references in PPT Master.+This directory provides **57 standardized SVG visualization templates** for use as structured visualization selection references in PPT Master.> For backward compatibility, the directory remains `templates/charts/`, but the library scope includes charts, infographics, process diagrams, relationship diagrams, and strategic frameworks.@@ -102,3 +102,15 @@ Before generating chart pages, review the corresponding template file to underst|----------|---------|-----------|| `swot_analysis.svg` | SWOT four-quadrant analysis | Strategic planning, competitive analysis || `porter_five_forces.svg` | Porter's Five Forces model | Industry analysis, market entry assessment |++### System Architecture++Use this family when source content describes a system with named modules **and** per-module descriptions — not just labels. Each template forces "title + description" pairs per node, which is what the plain `org_chart` / `hub_spoke` / `process_flow` templates do not enforce.++| Filename | Purpose | Use Cases |+|----------|---------|-----------|+| `layered_architecture.svg` | 3-4 horizontal layers × 2-4 module cards per layer, each card with title + 1-line description | Technical stack overview, application/service/data layering |+| `module_composition.svg` | Parent container + 3-N child cards, each child with title + 2-3 bullet descriptions | "Feature X contains 3 parts, each has its own description" — the canonical composition case |+| `hub_with_described_spokes.svg` | Central core + 4-6 radiating cards, each spoke with capability name + 1-2 line description | Data platform capability matrix, core engine + peripheral services |+| `pipeline_with_stages.svg` | 3-5 horizontal stages, each stage with title + description + output artifact, arrows between | Data pipeline, ETL flow, build pipeline with named outputs |+| `client_server_flow.svg` | Left client group + right server group + labeled bidirectional arrows between | Request-response architecture, front/back-end interaction, C/S protocol stack |diff --git a/skills/ppt-master/templates/charts/charts_index.json b/skills/ppt-master/templates/charts/charts_index.jsonindex 9b84a042..f9de1641 100644--- a/skills/ppt-master/templates/charts/charts_index.json+++ b/skills/ppt-master/templates/charts/charts_index.json@@ -1,11 +1,11 @@{"meta": {- "total": 52,+ "total": 57,"defaultViewBox": "0 0 1280 720","formats": ["ppt169"],"filePattern": "{key}.svg","libraryPositioning": "Visualization template library covering charts, infographics, diagrams, and strategic frameworks. The `charts/` path is retained for backward compatibility.",- "updated": "2026-04-11"+ "updated": "2026-04-24"},"categories": {"comparison": {@@ -36,6 +36,10 @@"label": "Strategic Frameworks","charts": ["swot_analysis", "porter_five_forces"]},+ "architecture": {+ "label": "System Architecture",+ "charts": ["layered_architecture", "module_composition", "hub_with_described_spokes", "pipeline_with_stages", "client_server_flow"]+ },"infographic": {"label": "Infographics","charts": ["pyramid_chart", "venn_diagram", "pros_cons_chart", "cycle_diagram", "numbered_steps", "icon_grid", "isometric_stairs", "mind_map", "comparison_table", "snake_flow", "roadmap_vertical", "sector_diagram", "word_cloud", "concentric_circles", "chevron_process", "comparison_columns", "fishbone_diagram", "hub_spoke", "vertical_list"]@@ -60,7 +64,8 @@"cause_effect": ["fishbone_diagram", "process_flow"],"journey": ["snake_flow", "timeline", "roadmap_vertical", "chevron_process"],"pricing": ["comparison_columns", "comparison_table"],- "brainstorm": ["mind_map", "word_cloud", "hub_spoke"]+ "brainstorm": ["mind_map", "word_cloud", "hub_spoke"],+ "architecture": ["layered_architecture", "module_composition", "hub_with_described_spokes", "pipeline_with_stages", "client_server_flow"]},"charts": {"area_chart": {@@ -322,6 +327,31 @@"label": "Vertical List","summary": "Numbered vertical list with detail cards (3-6 key points/advantages)","keywords": ["vertical list", "numbered list", "advantages", "features", "key points", "strengths"]+ },+ "layered_architecture": {+ "label": "Layered Architecture",+ "summary": "Technical/system architecture in 3-4 horizontal layers (e.g. presentation / service / data), each layer holding 2-4 module cards. Each module card carries BOTH a title AND a 1-line capability description — do not omit the description even when source text is brief.",+ "keywords": ["architecture", "架构图", "系统架构", "分层架构", "layered", "tech stack", "分层", "模块", "technical architecture", "system design"]+ },+ "module_composition": {+ "label": "Module Composition",+ "summary": "One parent container wrapping 3-N child module cards; each child card carries title + 2-3 bullet descriptions. Direct fit for 'Feature X contains 3 parts, each part has its own description'. If source provides only labels without descriptions, fall back to numbered_steps or icon_grid instead.",+ "keywords": ["architecture", "架构图", "module composition", "模块组合", "子模块", "组成", "composition", "包含", "sub-modules", "父子结构", "engine components"]+ },+ "hub_with_described_spokes": {+ "label": "Hub with Described Spokes",+ "summary": "Central core module + 4-6 radiating sub-modules, each spoke card carries capability name + 1-2 line description. Use when source has both the central concept AND descriptions for each peripheral capability; if spokes have labels only, use the simpler hub_spoke template instead.",+ "keywords": ["architecture", "架构图", "中台", "核心能力", "capability matrix", "能力矩阵", "platform architecture", "hub with descriptions", "核心引擎", "surrounding capabilities"]+ },+ "pipeline_with_stages": {+ "label": "Pipeline with Stages",+ "summary": "Horizontal 3-5 stage pipeline where each stage carries title + 1-line description + output artifact, connected by directional arrows. For data pipelines / ETL / build pipelines where each stage consumes the previous stage's output. Each stage must have title, description, and artifact — omitting any field means falling back to process_flow or numbered_steps.",+ "keywords": ["architecture", "架构图", "pipeline", "管道", "ETL", "数据处理流水线", "data pipeline", "build pipeline", "stages with output", "流水线", "处理流程"]+ },+ "client_server_flow": {+ "label": "Client-Server Flow",+ "summary": "Left-side client modules + right-side server modules, with labeled bidirectional arrows in between showing key interactions (request / response / push). Each module card = name + 1-line description; each arrow = action label. Never draw an arrow without an action label.",+ "keywords": ["architecture", "架构图", "client server", "客户端-服务端", "request response", "API 调用", "前后端交互", "C/S architecture", "interaction diagram", "通信架构"]}}}diff --git a/skills/ppt-master/templates/charts/client_server_flow.svg b/skills/ppt-master/templates/charts/client_server_flow.svgnew file mode 100644index 00000000..a93cc8d1--- /dev/null+++ b/skills/ppt-master/templates/charts/client_server_flow.svg@@ -0,0 +1,172 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720">+ <!--+ 客户端-服务端交互图模板 (Client-Server Flow)+ 用途: 左侧客户端群 + 右侧服务端群,中间用双向箭头标注关键交互动作+ 适用场景: 请求-响应架构、前后端交互图、C/S 协议栈、API 调用关系+ 支持: 左侧 2-3 个客户端模块 + 右侧 2-4 个服务端模块 + 中间 3-5 条关键交互+ 关键约定: 每个模块卡 = 模块名 + 1 行描述;每条交互箭头 = 动作标签 (例如 "Login" / "Return JWT");切勿只画箭头不写动作+ -->++ <defs>+ <marker id="csArrowRight" markerWidth="10" markerHeight="10" refX="9" refY="5"+ orient="auto" markerUnits="strokeWidth">+ <path d="M0,0 L10,5 L0,10 Z" fill="#4A6FDC"/>+ </marker>+ <marker id="csArrowLeft" markerWidth="10" markerHeight="10" refX="9" refY="5"+ orient="auto" markerUnits="strokeWidth">+ <path d="M0,0 L10,5 L0,10 Z" fill="#2E9E4A"/>+ </marker>+ <filter id="csShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feGaussianBlur in="SourceAlpha" stdDeviation="4"/>+ <feOffset dx="0" dy="3"/>+ <feComponentTransfer><feFuncA type="linear" slope="0.12"/></feComponentTransfer>+ <feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>+ </filter>+ </defs>++ <rect width="1280" height="720" fill="#FFFFFF"/>++ <!-- 标题 -->+ <text x="60" y="58" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="28" font-weight="700" fill="#1A252F">客户端-服务端交互</text>+ <text x="60" y="84" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="14" fill="#7F8C8D">Client-Server Flow · 左侧终端发起请求,右侧服务端分层响应</text>++ <!-- 左侧: Client 分组 -->+ <rect x="60" y="130" width="320" height="520" rx="16" fill="#EEF3FF" stroke="#BBD0FF" stroke-width="1.5"/>+ <rect x="60" y="130" width="320" height="44" rx="16" fill="#4A6FDC"/>+ <rect x="60" y="158" width="320" height="16" fill="#4A6FDC"/>+ <text x="220" y="160" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="16" font-weight="700" fill="#FFFFFF">CLIENT · 客户端</text>++ <!-- 客户端模块 1: Web -->+ <g filter="url(#csShadow)">+ <rect x="90" y="200" width="260" height="100" rx="10" fill="#FFFFFF" stroke="#D4DFF7" stroke-width="1"/>+ </g>+ <rect x="90" y="200" width="6" height="100" fill="#4A6FDC"/>+ <text x="112" y="228" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="15" font-weight="700" fill="#1A252F">Web 浏览器</text>+ <text x="112" y="252" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">React SPA,负责 UI 渲染与用户交互</text>+ <text x="112" y="272" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">通过 HTTPS + JWT 与后端通信</text>+ <text x="112" y="290" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="11" fill="#7F8C8D">协议: HTTPS / WebSocket</text>++ <!-- 客户端模块 2: Mobile -->+ <g filter="url(#csShadow)">+ <rect x="90" y="320" width="260" height="100" rx="10" fill="#FFFFFF" stroke="#D4DFF7" stroke-width="1"/>+ </g>+ <rect x="90" y="320" width="6" height="100" fill="#4A6FDC"/>+ <text x="112" y="348" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="15" font-weight="700" fill="#1A252F">移动端 App</text>+ <text x="112" y="372" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">iOS / Android 双端,支持离线缓存</text>+ <text x="112" y="392" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">关键接口通过 HTTP/2 多路复用</text>+ <text x="112" y="410" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="11" fill="#7F8C8D">协议: HTTP/2 / Push</text>++ <!-- 客户端模块 3: Third-party -->+ <g filter="url(#csShadow)">+ <rect x="90" y="440" width="260" height="100" rx="10" fill="#FFFFFF" stroke="#D4DFF7" stroke-width="1"/>+ </g>+ <rect x="90" y="440" width="6" height="100" fill="#4A6FDC"/>+ <text x="112" y="468" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="15" font-weight="700" fill="#1A252F">第三方集成</text>+ <text x="112" y="492" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">合作方服务器通过开放 API 接入</text>+ <text x="112" y="512" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">使用 API Key 或 OAuth2 客户端凭证</text>+ <text x="112" y="530" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="11" fill="#7F8C8D">协议: HTTPS / Webhook</text>++ <!-- 右侧: Server 分组 -->+ <rect x="900" y="130" width="320" height="520" rx="16" fill="#EFF9F1" stroke="#BEE6C6" stroke-width="1.5"/>+ <rect x="900" y="130" width="320" height="44" rx="16" fill="#2E9E4A"/>+ <rect x="900" y="158" width="320" height="16" fill="#2E9E4A"/>+ <text x="1060" y="160" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="16" font-weight="700" fill="#FFFFFF">SERVER · 服务端</text>++ <!-- 服务端模块 1: Gateway -->+ <g filter="url(#csShadow)">+ <rect x="930" y="200" width="260" height="100" rx="10" fill="#FFFFFF" stroke="#CDEAD3" stroke-width="1"/>+ </g>+ <rect x="930" y="200" width="6" height="100" fill="#2E9E4A"/>+ <text x="952" y="228" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="15" font-weight="700" fill="#1A252F">API 网关</text>+ <text x="952" y="252" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">统一入口,负责鉴权、限流、路由</text>+ <text x="952" y="272" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">日志采集与链路追踪注入</text>+ <text x="952" y="290" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="11" fill="#7F8C8D">Kong / Envoy</text>++ <!-- 服务端模块 2: Services -->+ <g filter="url(#csShadow)">+ <rect x="930" y="320" width="260" height="100" rx="10" fill="#FFFFFF" stroke="#CDEAD3" stroke-width="1"/>+ </g>+ <rect x="930" y="320" width="6" height="100" fill="#2E9E4A"/>+ <text x="952" y="348" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="15" font-weight="700" fill="#1A252F">业务微服务</text>+ <text x="952" y="372" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">按领域拆分的服务集群</text>+ <text x="952" y="392" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">内部通过 gRPC 互相调用</text>+ <text x="952" y="410" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="11" fill="#7F8C8D">Go / Java / Node</text>++ <!-- 服务端模块 3: Data -->+ <g filter="url(#csShadow)">+ <rect x="930" y="440" width="260" height="100" rx="10" fill="#FFFFFF" stroke="#CDEAD3" stroke-width="1"/>+ </g>+ <rect x="930" y="440" width="6" height="100" fill="#2E9E4A"/>+ <text x="952" y="468" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="15" font-weight="700" fill="#1A252F">数据存储</text>+ <text x="952" y="492" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">主库 + 只读副本 + 缓存三级结构</text>+ <text x="952" y="512" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">冷热分层,归档到对象存储</text>+ <text x="952" y="530" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="11" fill="#7F8C8D">PostgreSQL / Redis / S3</text>++ <!-- 中间通信通道标签 -->+ <text x="640" y="160" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="14" font-weight="700" fill="#2C3E50">关键交互</text>+ <text x="640" y="180" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="11" fill="#7F8C8D">Key Interactions</text>++ <!-- 交互 1: 登录请求 -->+ <line x1="380" y1="250" x2="926" y2="250" stroke="#4A6FDC" stroke-width="2.5" marker-end="url(#csArrowRight)"/>+ <rect x="500" y="226" width="280" height="22" rx="11" fill="#FFFFFF" stroke="#4A6FDC" stroke-width="1"/>+ <text x="640" y="242" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" font-weight="700" fill="#4A6FDC">① 登录请求 · POST /auth/login</text>++ <!-- 交互 2: 返回 Token -->+ <line x1="926" y1="290" x2="384" y2="290" stroke="#2E9E4A" stroke-width="2.5" marker-end="url(#csArrowLeft)"/>+ <rect x="500" y="302" width="280" height="22" rx="11" fill="#FFFFFF" stroke="#2E9E4A" stroke-width="1"/>+ <text x="640" y="318" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" font-weight="700" fill="#2E9E4A">② 返回 JWT Token · 2xx Response</text>++ <!-- 交互 3: 业务调用 -->+ <line x1="380" y1="370" x2="926" y2="370" stroke="#4A6FDC" stroke-width="2.5" marker-end="url(#csArrowRight)"/>+ <rect x="500" y="346" width="280" height="22" rx="11" fill="#FFFFFF" stroke="#4A6FDC" stroke-width="1"/>+ <text x="640" y="362" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" font-weight="700" fill="#4A6FDC">③ 业务调用 · GET /api/resources</text>++ <!-- 交互 4: 数据返回 -->+ <line x1="926" y1="410" x2="384" y2="410" stroke="#2E9E4A" stroke-width="2.5" marker-end="url(#csArrowLeft)"/>+ <rect x="500" y="422" width="280" height="22" rx="11" fill="#FFFFFF" stroke="#2E9E4A" stroke-width="1"/>+ <text x="640" y="438" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" font-weight="700" fill="#2E9E4A">④ 数据返回 · JSON Payload</text>++ <!-- 交互 5: 推送 -->+ <line x1="926" y1="490" x2="384" y2="490" stroke="#2E9E4A" stroke-width="2.5" marker-end="url(#csArrowLeft)"/>+ <rect x="500" y="502" width="280" height="22" rx="11" fill="#FFFFFF" stroke="#2E9E4A" stroke-width="1"/>+ <text x="640" y="518" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" font-weight="700" fill="#2E9E4A">⑤ 实时推送 · WebSocket / SSE</text>++ <!-- 底部注释 -->+ <text x="60" y="685" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#7F8C8D">蓝色箭头 = 客户端发起;绿色箭头 = 服务端响应;每条交互箭头必须带动作标签,不要只画线</text>+</svg>diff --git a/skills/ppt-master/templates/charts/hub_with_described_spokes.svg b/skills/ppt-master/templates/charts/hub_with_described_spokes.svgnew file mode 100644index 00000000..9ade6bd0--- /dev/null+++ b/skills/ppt-master/templates/charts/hub_with_described_spokes.svg@@ -0,0 +1,123 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720">+ <!--+ 中心辐射带描述图模板 (Hub with Described Spokes)+ 用途: 核心模块 + 外围能力,且每个外围能力需要承载 1-2 行描述+ 适用场景: 中台能力、核心引擎 + 衍生服务、平台与生态关系+ 支持: 1 中心 + 4-6 辐射子模块 (推荐 6)+ 关键约定: 每个辐射卡 = 能力名 + 1 行能力描述;若只有能力名没有描述,应使用更简洁的 hub_spoke 模板而不是本模板+ 区别于 hub_spoke: 辐射卡更宽,强制承载描述段+ -->++ <defs>+ <filter id="hdsShadow" x="-20%" y="-20%" width="140%" height="140%">+ <feGaussianBlur in="SourceAlpha" stdDeviation="4"/>+ <feOffset dx="0" dy="2"/>+ <feComponentTransfer><feFuncA type="linear" slope="0.12"/></feComponentTransfer>+ <feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>+ </filter>+ <linearGradient id="hdsHubGrad" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#4A6FDC;stop-opacity:1"/>+ <stop offset="100%" style="stop-color:#2C4FB0;stop-opacity:1"/>+ </linearGradient>+ </defs>++ <rect width="1280" height="720" fill="#FFFFFF"/>++ <!-- 标题 -->+ <text x="640" y="52" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="28" font-weight="700" fill="#1A252F">数据中台能力矩阵</text>+ <text x="640" y="78" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="14" fill="#7F8C8D">Hub with Described Spokes · 核心引擎驱动六大能力域,每项能力附简要说明</text>++ <!-- 辐射线:从中心(640,400)到各子卡边缘 -->+ <line x1="640" y1="320" x2="640" y2="170" stroke="#B0B8C4" stroke-width="1.5" stroke-dasharray="4,3"/>+ <line x1="700" y1="360" x2="960" y2="210" stroke="#B0B8C4" stroke-width="1.5" stroke-dasharray="4,3"/>+ <line x1="700" y1="440" x2="960" y2="590" stroke="#B0B8C4" stroke-width="1.5" stroke-dasharray="4,3"/>+ <line x1="640" y1="480" x2="640" y2="630" stroke="#B0B8C4" stroke-width="1.5" stroke-dasharray="4,3"/>+ <line x1="580" y1="440" x2="320" y2="590" stroke="#B0B8C4" stroke-width="1.5" stroke-dasharray="4,3"/>+ <line x1="580" y1="360" x2="320" y2="210" stroke="#B0B8C4" stroke-width="1.5" stroke-dasharray="4,3"/>++ <!-- 中心 Hub -->+ <circle cx="640" cy="400" r="90" fill="url(#hdsHubGrad)" filter="url(#hdsShadow)"/>+ <circle cx="640" cy="400" r="72" fill="none" stroke="#FFFFFF" stroke-width="1.5" stroke-opacity="0.35"/>+ <text x="640" y="390" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="20" font-weight="800" fill="#FFFFFF">数据中台</text>+ <text x="640" y="416" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#FFFFFF" fill-opacity="0.85">Data Platform Core</text>++ <!-- 子卡 1: 正上 (数据采集) -->+ <g filter="url(#hdsShadow)">+ <rect x="490" y="110" width="300" height="90" rx="10" fill="#FFFFFF" stroke="#D4DFF7" stroke-width="1.5"/>+ <rect x="490" y="110" width="6" height="90" fill="#4A6FDC"/>+ </g>+ <text x="516" y="138" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="15" font-weight="700" fill="#1A252F">数据采集</text>+ <text x="516" y="162" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">统一埋点 SDK + 批流一体接入管道</text>+ <text x="516" y="182" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">覆盖 Web / App / IoT / 业务库</text>++ <!-- 子卡 2: 右上 (数据治理) -->+ <g filter="url(#hdsShadow)">+ <rect x="900" y="150" width="300" height="90" rx="10" fill="#FFFFFF" stroke="#CDEAD3" stroke-width="1.5"/>+ <rect x="900" y="150" width="6" height="90" fill="#2E9E4A"/>+ </g>+ <text x="926" y="178" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="15" font-weight="700" fill="#1A252F">数据治理</text>+ <text x="926" y="202" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">元数据、血缘与质量规则集中管理</text>+ <text x="926" y="222" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">保障准确性、一致性、可追溯性</text>++ <!-- 子卡 3: 右下 (智能分析) -->+ <g filter="url(#hdsShadow)">+ <rect x="900" y="560" width="300" height="90" rx="10" fill="#FFFFFF" stroke="#F3DFB9" stroke-width="1.5"/>+ <rect x="900" y="560" width="6" height="90" fill="#D48A1F"/>+ </g>+ <text x="926" y="588" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="15" font-weight="700" fill="#1A252F">智能分析</text>+ <text x="926" y="612" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">BI 看板 + AI 归因 + 指标解释</text>+ <text x="926" y="632" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">业务方可自助探索与下钻</text>++ <!-- 子卡 4: 正下 (数据服务) -->+ <g filter="url(#hdsShadow)">+ <rect x="490" y="600" width="300" height="90" rx="10" fill="#FFFFFF" stroke="#E9C8D3" stroke-width="1.5"/>+ <rect x="490" y="600" width="6" height="90" fill="#C24A6A"/>+ </g>+ <text x="516" y="628" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="15" font-weight="700" fill="#1A252F">数据服务</text>+ <text x="516" y="652" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">统一 API 网关封装数据消费入口</text>+ <text x="516" y="672" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">限流、鉴权、审计开箱即用</text>++ <!-- 子卡 5: 左下 (指标管理) -->+ <g filter="url(#hdsShadow)">+ <rect x="80" y="560" width="300" height="90" rx="10" fill="#FFFFFF" stroke="#D5D2F1" stroke-width="1.5"/>+ <rect x="80" y="560" width="6" height="90" fill="#6C5CE7"/>+ </g>+ <text x="106" y="588" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="15" font-weight="700" fill="#1A252F">指标管理</text>+ <text x="106" y="612" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">统一指标定义与口径审核流程</text>+ <text x="106" y="632" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">消除跨团队口径分歧</text>++ <!-- 子卡 6: 左上 (数据安全) -->+ <g filter="url(#hdsShadow)">+ <rect x="80" y="150" width="300" height="90" rx="10" fill="#FFFFFF" stroke="#BBE3F1" stroke-width="1.5"/>+ <rect x="80" y="150" width="6" height="90" fill="#1E88A8"/>+ </g>+ <text x="106" y="178" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="15" font-weight="700" fill="#1A252F">数据安全</text>+ <text x="106" y="202" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">分级分类、脱敏、访问审计一体化</text>+ <text x="106" y="222" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"+ font-size="12" fill="#566573">合规对齐 GDPR / 等保 / 个保法</text>++ <!-- 装饰性背景环 -->+ <circle cx="640" cy="400" r="180" fill="none" stroke="#E8E8E8" stroke-width="1" stroke-dasharray="5,4"/>+ <circle cx="640" cy="400" r="125" fill="none" stroke="#E8E8E8" stroke-width="1" stroke-dasharray="3,3"/>+</svg>diff --git a/skills/ppt-master/templates/charts/layered_architecture.svg b/skills/ppt-master/templates/charts/layered_architecture.svgnew file mode 100644index 00000000..b5710e5d--- /dev/null+++ b/skills/ppt-master/templates/charts/layered_architecture.svg@@ -0,0 +1,224 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720">+ <!--+ 分层架构图模板 (Layered Architecture)+ 用途: 系统/软件分层架构展示 (应用-服务-数据 / 前端-业务-基础设施)+ 适用场景: 技术架构概览、分层职责划分、纵向依赖关系、中台总体视图+ 支持: 3 层主干 + 左侧行标签 + 右侧能力出口列 + 底部基础支撑带+ 关键约定:+ - 每个模块卡 = 模块标题 + 1 行能力描述;两段文本必须同时填写+ - 左侧行标签给每一层起名(应用层/服务层/数据层)+ - 红色编号徽章标注每一层的序号+ - 右侧"能力输出"列承载跨层对外输出或开放能力+ - 底部"基础支撑"带承载底层共用能力 (日志/监控/权限等)+ -->++ <!-- 背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="#FFFFFF"/>++ <!-- 标题 -->+ <rect x="30" y="22" width="10" height="40" fill="#C00000"/>+ <text x="52" y="55" font-family="Microsoft YaHei, sans-serif" font-size="30" font-weight="700" fill="#C00000">系统分层总体架构视图</text>++ <!-- 副标题带 -->+ <rect x="30" y="78" width="1220" height="46" fill="#F2F2F2"/>+ <text x="640" y="99" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" font-weight="700" fill="#1A252F">+ <tspan x="640" dy="0">自上而下三层能力栈 + 右侧统一能力出口 + 底部共用支撑,上层依赖下层,跨层通过标准契约通信</tspan>+ <tspan x="640" dy="22" fill="#7F8C8D" font-weight="400">每个模块卡 = 模块标题 + 1 行能力描述;缺任一段即退回 icon_grid 或 numbered_steps</tspan>+ </text>++ <!-- ==================== 层 1: 应用层 ==================== -->+ <!-- 左侧行标签 + 编号 -->+ <rect x="30" y="150" width="30" height="30" fill="#C00000"/>+ <text x="45" y="172" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF">1</text>+ <text x="32" y="218" font-family="Microsoft YaHei, sans-serif" font-size="20" font-weight="700" fill="#1A252F">应用</text>+ <text x="32" y="244" font-family="Microsoft YaHei, sans-serif" font-size="20" font-weight="700" fill="#1A252F">层</text>++ <!-- 主内容区 (左 x=100, 右 x=1050) -->+ <rect x="100" y="150" width="950" height="140" fill="none" stroke="#2E75B6" stroke-width="1.5" stroke-dasharray="5 5"/>+ <rect x="100" y="150" width="950" height="28" fill="#EAF1F8"/>+ <text x="575" y="169" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#2E75B6">面向终端用户与第三方的访问入口 · Presentation</text>++ <!-- 模块卡 1.1 -->+ <rect x="118" y="192" width="220" height="82" fill="#FFFFFF" stroke="#C9D8E9" stroke-width="1"/>+ <rect x="118" y="192" width="220" height="4" fill="#2E75B6"/>+ <rect x="128" y="204" width="26" height="26" fill="#5B9BD5"/>+ <text x="141" y="222" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#FFFFFF">W</text>+ <text x="162" y="222" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#1A252F">Web 控制台</text>+ <line x1="128" y1="238" x2="328" y2="238" stroke="#E7E6E6" stroke-width="1"/>+ <text x="128" y="256" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">React SPA · 管理与可视化界面</text>+ <text x="128" y="270" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">HTTPS / WebSocket</text>++ <!-- 模块卡 1.2 -->+ <rect x="352" y="192" width="220" height="82" fill="#FFFFFF" stroke="#C9D8E9" stroke-width="1"/>+ <rect x="352" y="192" width="220" height="4" fill="#2E75B6"/>+ <rect x="362" y="204" width="26" height="26" fill="#5B9BD5"/>+ <text x="375" y="222" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#FFFFFF">M</text>+ <text x="396" y="222" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#1A252F">移动端 App</text>+ <line x1="362" y1="238" x2="562" y2="238" stroke="#E7E6E6" stroke-width="1"/>+ <text x="362" y="256" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">iOS / Android 原生客户端</text>+ <text x="362" y="270" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">HTTP/2 · 支持离线缓存</text>++ <!-- 模块卡 1.3 -->+ <rect x="586" y="192" width="220" height="82" fill="#FFFFFF" stroke="#C9D8E9" stroke-width="1"/>+ <rect x="586" y="192" width="220" height="4" fill="#2E75B6"/>+ <rect x="596" y="204" width="26" height="26" fill="#5B9BD5"/>+ <text x="609" y="222" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#FFFFFF">A</text>+ <text x="630" y="222" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#1A252F">开放 API</text>+ <line x1="596" y1="238" x2="796" y2="238" stroke="#E7E6E6" stroke-width="1"/>+ <text x="596" y="256" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">REST / GraphQL · 对外集成</text>+ <text x="596" y="270" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">OAuth2 · API Key</text>++ <!-- 模块卡 1.4 -->+ <rect x="820" y="192" width="220" height="82" fill="#FFFFFF" stroke="#C9D8E9" stroke-width="1"/>+ <rect x="820" y="192" width="220" height="4" fill="#2E75B6"/>+ <rect x="830" y="204" width="26" height="26" fill="#5B9BD5"/>+ <text x="843" y="222" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#FFFFFF">C</text>+ <text x="864" y="222" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#1A252F">CLI 工具</text>+ <line x1="830" y1="238" x2="1030" y2="238" stroke="#E7E6E6" stroke-width="1"/>+ <text x="830" y="256" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">命令行与自动化脚本入口</text>+ <text x="830" y="270" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">面向 DevOps 与 CI/CD</text>++ <!-- ==================== 层 2: 服务层 ==================== -->+ <rect x="30" y="300" width="30" height="30" fill="#C00000"/>+ <text x="45" y="322" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF">2</text>+ <text x="32" y="368" font-family="Microsoft YaHei, sans-serif" font-size="20" font-weight="700" fill="#1A252F">服务</text>+ <text x="32" y="394" font-family="Microsoft YaHei, sans-serif" font-size="20" font-weight="700" fill="#1A252F">层</text>++ <rect x="100" y="300" width="950" height="140" fill="none" stroke="#2E75B6" stroke-width="1.5" stroke-dasharray="5 5"/>+ <rect x="100" y="300" width="950" height="28" fill="#EAF1F8"/>+ <text x="575" y="319" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#2E75B6">核心业务逻辑与能力编排 · Service</text>++ <rect x="118" y="342" width="220" height="82" fill="#FFFFFF" stroke="#C9D8E9" stroke-width="1"/>+ <rect x="118" y="342" width="220" height="4" fill="#2E75B6"/>+ <rect x="128" y="354" width="26" height="26" fill="#5B9BD5"/>+ <text x="141" y="372" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#FFFFFF">G</text>+ <text x="162" y="372" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#1A252F">API 网关</text>+ <line x1="128" y1="388" x2="328" y2="388" stroke="#E7E6E6" stroke-width="1"/>+ <text x="128" y="406" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">统一路由 · 鉴权 · 限流</text>+ <text x="128" y="420" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">协议转换 · 日志注入</text>++ <rect x="352" y="342" width="220" height="82" fill="#FFFFFF" stroke="#C9D8E9" stroke-width="1"/>+ <rect x="352" y="342" width="220" height="4" fill="#2E75B6"/>+ <rect x="362" y="354" width="26" height="26" fill="#5B9BD5"/>+ <text x="375" y="372" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#FFFFFF">B</text>+ <text x="396" y="372" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#1A252F">业务微服务</text>+ <line x1="362" y1="388" x2="562" y2="388" stroke="#E7E6E6" stroke-width="1"/>+ <text x="362" y="406" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">领域驱动 · 独立伸缩</text>+ <text x="362" y="420" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">gRPC 内部互调</text>++ <rect x="586" y="342" width="220" height="82" fill="#FFFFFF" stroke="#C9D8E9" stroke-width="1"/>+ <rect x="586" y="342" width="220" height="4" fill="#2E75B6"/>+ <rect x="596" y="354" width="26" height="26" fill="#5B9BD5"/>+ <text x="609" y="372" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#FFFFFF">I</text>+ <text x="630" y="372" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#1A252F">身份认证</text>+ <line x1="596" y1="388" x2="796" y2="388" stroke="#E7E6E6" stroke-width="1"/>+ <text x="596" y="406" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">OAuth2 / SSO · 集中式 IAM</text>+ <text x="596" y="420" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">RBAC + ABAC</text>++ <rect x="820" y="342" width="220" height="82" fill="#FFFFFF" stroke="#C9D8E9" stroke-width="1"/>+ <rect x="820" y="342" width="220" height="4" fill="#2E75B6"/>+ <rect x="830" y="354" width="26" height="26" fill="#5B9BD5"/>+ <text x="843" y="372" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#FFFFFF">Q</text>+ <text x="864" y="372" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#1A252F">消息队列</text>+ <line x1="830" y1="388" x2="1030" y2="388" stroke="#E7E6E6" stroke-width="1"/>+ <text x="830" y="406" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">异步解耦 · 事件驱动</text>+ <text x="830" y="420" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">Kafka · RocketMQ</text>++ <!-- ==================== 层 3: 数据层 ==================== -->+ <rect x="30" y="450" width="30" height="30" fill="#C00000"/>+ <text x="45" y="472" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF">3</text>+ <text x="32" y="518" font-family="Microsoft YaHei, sans-serif" font-size="20" font-weight="700" fill="#1A252F">数据</text>+ <text x="32" y="544" font-family="Microsoft YaHei, sans-serif" font-size="20" font-weight="700" fill="#1A252F">层</text>++ <rect x="100" y="450" width="950" height="140" fill="none" stroke="#2E75B6" stroke-width="1.5" stroke-dasharray="5 5"/>+ <rect x="100" y="450" width="950" height="28" fill="#EAF1F8"/>+ <text x="575" y="469" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#2E75B6">持久化存储与底层数据能力 · Data</text>++ <rect x="118" y="492" width="300" height="82" fill="#FFFFFF" stroke="#C9D8E9" stroke-width="1"/>+ <rect x="118" y="492" width="300" height="4" fill="#2E75B6"/>+ <rect x="128" y="504" width="26" height="26" fill="#5B9BD5"/>+ <text x="141" y="522" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#FFFFFF">R</text>+ <text x="162" y="522" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#1A252F">关系型数据库</text>+ <line x1="128" y1="538" x2="408" y2="538" stroke="#E7E6E6" stroke-width="1"/>+ <text x="128" y="556" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">PostgreSQL 主从 · 核心交易数据</text>+ <text x="128" y="570" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">ACID · 强一致 · 同城灾备</text>++ <rect x="432" y="492" width="300" height="82" fill="#FFFFFF" stroke="#C9D8E9" stroke-width="1"/>+ <rect x="432" y="492" width="300" height="4" fill="#2E75B6"/>+ <rect x="442" y="504" width="26" height="26" fill="#5B9BD5"/>+ <text x="455" y="522" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#FFFFFF">K</text>+ <text x="476" y="522" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#1A252F">缓存 & 会话</text>+ <line x1="442" y1="538" x2="722" y2="538" stroke="#E7E6E6" stroke-width="1"/>+ <text x="442" y="556" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">Redis 集群 · 热点数据 / 临时状态</text>+ <text x="442" y="570" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">毫秒级响应 · LRU 淘汰</text>++ <rect x="746" y="492" width="294" height="82" fill="#FFFFFF" stroke="#C9D8E9" stroke-width="1"/>+ <rect x="746" y="492" width="294" height="4" fill="#2E75B6"/>+ <rect x="756" y="504" width="26" height="26" fill="#5B9BD5"/>+ <text x="769" y="522" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#FFFFFF">O</text>+ <text x="790" y="522" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#1A252F">对象存储</text>+ <line x1="756" y1="538" x2="1030" y2="538" stroke="#E7E6E6" stroke-width="1"/>+ <text x="756" y="556" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">S3 兼容 · 非结构化大文件</text>+ <text x="756" y="570" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">冷热分层 · 归档压缩</text>++ <!-- ==================== 右侧能力出口列 ==================== -->+ <rect x="1070" y="150" width="180" height="440" fill="#FDF3EB" stroke="#F8CBAD" stroke-width="2"/>+ <rect x="1160" y="158" width="30" height="26" fill="#C00000"/>+ <text x="1175" y="178" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="16" font-weight="700" fill="#FFFFFF">4</text>+ <text x="1082" y="180" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#1A252F">能力输出</text>+ <line x1="1082" y1="194" x2="1238" y2="194" stroke="#F8CBAD" stroke-width="1"/>++ <rect x="1090" y="210" width="140" height="40" fill="#FFFFFF" stroke="#F8CBAD" stroke-width="1"/>+ <text x="1160" y="235" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">统一门户</text>++ <rect x="1090" y="260" width="140" height="40" fill="#FFFFFF" stroke="#F8CBAD" stroke-width="1"/>+ <text x="1160" y="285" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">开放 SDK</text>++ <rect x="1090" y="310" width="140" height="40" fill="#FFFFFF" stroke="#F8CBAD" stroke-width="1"/>+ <text x="1160" y="335" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">运维控制台</text>++ <rect x="1090" y="360" width="140" height="40" fill="#FFFFFF" stroke="#F8CBAD" stroke-width="1"/>+ <text x="1160" y="385" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">数据服务市场</text>++ <rect x="1090" y="410" width="140" height="40" fill="#FFFFFF" stroke="#F8CBAD" stroke-width="1"/>+ <text x="1160" y="435" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">Webhook 通知</text>++ <rect x="1090" y="460" width="140" height="40" fill="#FFFFFF" stroke="#F8CBAD" stroke-width="1"/>+ <text x="1160" y="485" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">合作伙伴门户</text>++ <rect x="1090" y="510" width="140" height="40" fill="#FFFFFF" stroke="#F8CBAD" stroke-width="1"/>+ <text x="1160" y="535" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">数据大屏</text>++ <text x="1160" y="570" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#C00000">对外统一收口</text>++ <!-- ==================== 底部基础支撑带 ==================== -->+ <rect x="30" y="610" width="30" height="30" fill="#C00000"/>+ <text x="45" y="632" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF">5</text>+ <text x="32" y="674" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#1A252F">基础</text>+ <text x="32" y="696" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#1A252F">支撑</text>++ <rect x="100" y="610" width="1150" height="90" fill="none" stroke="#E7E6E6" stroke-width="2"/>+ <text x="675" y="628" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">三层共用的横切能力 · 不随业务变更,独立演进</text>+ <line x1="120" y1="638" x2="1230" y2="638" stroke="#000000" stroke-width="1" stroke-dasharray="2 2"/>++ <rect x="120" y="650" width="150" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="195" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">日志采集</text>++ <rect x="280" y="650" width="150" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="355" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">监控告警</text>++ <rect x="440" y="650" width="150" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="515" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">链路追踪</text>++ <rect x="600" y="650" width="150" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="675" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">配置中心</text>++ <rect x="760" y="650" width="150" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="835" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">CI / CD</text>++ <rect x="920" y="650" width="150" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="995" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">安全合规</text>++ <rect x="1080" y="650" width="150" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="1155" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">资源调度</text>+</svg>diff --git a/skills/ppt-master/templates/charts/module_composition.svg b/skills/ppt-master/templates/charts/module_composition.svgnew file mode 100644index 00000000..1e8a4e99--- /dev/null+++ b/skills/ppt-master/templates/charts/module_composition.svg@@ -0,0 +1,166 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720">+ <!--+ 模块组合图模板 (Module Composition)+ 用途: "一个大模块包含 N 个子模块,每个子模块有自己的描述" 的展示+ 适用场景: 功能拆解、子系统组成、引擎内部架构、核心产品三段式+ 支持: 父容器 1 个 + 子模块 3 个 (推荐) 或 4 个 (宽度均分)+ 关键约定:+ - 每个子卡 = 编号徽章 + 子模块标题 + 职责定位副标题 + 2-3 条 bullet 描述 + 底部指标+ - 左侧行标签明确父容器的角色 (如"推荐引擎")+ - 红色编号徽章 01/02/03 按执行顺序标注+ - 子卡之间的灰色箭头表示数据流向+ - 若源内容仅有标题没有描述,应退回使用 numbered_steps 或 icon_grid+ -->++ <defs>+ <marker id="mcArrow" markerWidth="10" markerHeight="10" refX="9" refY="5" orient="auto" markerUnits="strokeWidth">+ <path d="M0,0 L10,5 L0,10 Z" fill="#B0B8C4"/>+ </marker>+ </defs>++ <!-- 背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="#FFFFFF"/>++ <!-- 标题 -->+ <rect x="30" y="22" width="10" height="40" fill="#C00000"/>+ <text x="52" y="55" font-family="Microsoft YaHei, sans-serif" font-size="30" font-weight="700" fill="#C00000">推荐引擎的三段式组成</text>++ <!-- 副标题带 -->+ <rect x="30" y="78" width="1220" height="46" fill="#F2F2F2"/>+ <text x="640" y="99" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" font-weight="700" fill="#1A252F">+ <tspan x="640" dy="0">父容器声明"做什么",每个子卡回答"如何做"—— 召回 → 排序 → 重排,三段协同缺一不可</tspan>+ <tspan x="640" dy="22" fill="#7F8C8D" font-weight="400">每子卡 = 编号 + 标题 + 职责定位 + 描述要点 + 关键指标;仅有标题时请改用 numbered_steps</tspan>+ </text>++ <!-- ==================== 左侧行标签 ==================== -->+ <rect x="30" y="150" width="30" height="30" fill="#C00000"/>+ <text x="45" y="172" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF">★</text>+ <text x="32" y="220" font-family="Microsoft YaHei, sans-serif" font-size="20" font-weight="700" fill="#1A252F">推荐</text>+ <text x="32" y="246" font-family="Microsoft YaHei, sans-serif" font-size="20" font-weight="700" fill="#1A252F">引擎</text>+ <text x="32" y="274" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#7F8C8D">Recommendation</text>+ <text x="32" y="290" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#7F8C8D">Engine</text>++ <!-- ==================== 父容器 ==================== -->+ <rect x="100" y="150" width="1150" height="430" fill="none" stroke="#C00000" stroke-width="2" stroke-dasharray="6 4"/>+ <rect x="100" y="150" width="1150" height="38" fill="#FDF3EB"/>+ <text x="675" y="175" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" font-weight="700" fill="#1A252F">父容器 · Recommendation Engine Pipeline · 输入用户与物品 → 输出最终曝光序列</text>++ <!-- ==================== 子卡 1: 召回 ==================== -->+ <rect x="120" y="208" width="360" height="352" fill="#FFFFFF" stroke="#2E75B6" stroke-width="1"/>+ <rect x="120" y="208" width="360" height="48" fill="#2E75B6"/>+ <rect x="132" y="218" width="28" height="28" fill="#FFFFFF"/>+ <text x="146" y="238" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" font-weight="700" fill="#2E75B6">01</text>+ <text x="172" y="238" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF">召回 · Recall</text>++ <!-- 职责定位带 -->+ <rect x="120" y="256" width="360" height="34" fill="#EAF1F8"/>+ <text x="300" y="278" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#2E75B6">从海量物品中圈出候选集</text>++ <!-- 描述要点 -->+ <rect x="136" y="306" width="6" height="6" fill="#2E75B6"/>+ <text x="150" y="314" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">多路并行触发</text>+ <text x="150" y="334" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">覆盖协同过滤、热门、兴趣、地域</text>++ <rect x="136" y="356" width="6" height="6" fill="#2E75B6"/>+ <text x="150" y="364" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">双通道索引</text>+ <text x="150" y="384" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">向量检索 + 倒排索引融合</text>++ <rect x="136" y="406" width="6" height="6" fill="#2E75B6"/>+ <text x="150" y="414" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">候选集规模</text>+ <text x="150" y="434" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">单用户输出数百到数千候选</text>++ <!-- 底部指标 -->+ <rect x="136" y="474" width="328" height="72" fill="#F7F9FC"/>+ <line x1="300" y1="486" x2="300" y2="534" stroke="#D9D9D9" stroke-width="1"/>+ <text x="218" y="498" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">典型耗时</text>+ <text x="218" y="522" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#2E75B6">< 50 ms</text>+ <text x="382" y="498" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">候选规模</text>+ <text x="382" y="522" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#2E75B6">~2,000</text>++ <!-- ==================== 子卡 2: 排序 ==================== -->+ <rect x="500" y="208" width="360" height="352" fill="#FFFFFF" stroke="#C00000" stroke-width="1"/>+ <rect x="500" y="208" width="360" height="48" fill="#C00000"/>+ <rect x="512" y="218" width="28" height="28" fill="#FFFFFF"/>+ <text x="526" y="238" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" font-weight="700" fill="#C00000">02</text>+ <text x="552" y="238" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF">排序 · Ranking</text>++ <rect x="500" y="256" width="360" height="34" fill="#FDF3EB"/>+ <text x="680" y="278" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#C00000">对候选精打分、择优输出</text>++ <rect x="516" y="306" width="6" height="6" fill="#C00000"/>+ <text x="530" y="314" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">深度模型预估</text>+ <text x="530" y="334" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">多塔 DNN 预估 CTR / CVR / 时长</text>++ <rect x="516" y="356" width="6" height="6" fill="#C00000"/>+ <text x="530" y="364" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">多目标融合</text>+ <text x="530" y="384" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">加权公式或 Pareto 前沿择优</text>++ <rect x="516" y="406" width="6" height="6" fill="#C00000"/>+ <text x="530" y="414" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">Top-K 精排</text>+ <text x="530" y="434" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">输出 Top-K 的候选进入下一阶段</text>++ <rect x="516" y="474" width="328" height="72" fill="#F7F9FC"/>+ <line x1="680" y1="486" x2="680" y2="534" stroke="#D9D9D9" stroke-width="1"/>+ <text x="598" y="498" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">典型耗时</text>+ <text x="598" y="522" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#C00000">< 100 ms</text>+ <text x="762" y="498" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">Top-K 规模</text>+ <text x="762" y="522" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#C00000">~200</text>++ <!-- ==================== 子卡 3: 重排 ==================== -->+ <rect x="880" y="208" width="350" height="352" fill="#FFFFFF" stroke="#5B9BD5" stroke-width="1"/>+ <rect x="880" y="208" width="350" height="48" fill="#5B9BD5"/>+ <rect x="892" y="218" width="28" height="28" fill="#FFFFFF"/>+ <text x="906" y="238" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" font-weight="700" fill="#5B9BD5">03</text>+ <text x="932" y="238" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF">重排 · Rerank</text>++ <rect x="880" y="256" width="350" height="34" fill="#E9F2FA"/>+ <text x="1055" y="278" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#5B9BD5">策略干预与多样性调优</text>++ <rect x="896" y="306" width="6" height="6" fill="#5B9BD5"/>+ <text x="910" y="314" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">多样性打散</text>+ <text x="910" y="334" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">避免同质化堆叠,拉开类别与作者</text>++ <rect x="896" y="356" width="6" height="6" fill="#5B9BD5"/>+ <text x="910" y="364" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">业务规则注入</text>+ <text x="910" y="384" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">扶持 / 过滤 / 定向置顶</text>++ <rect x="896" y="406" width="6" height="6" fill="#5B9BD5"/>+ <text x="910" y="414" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">最终曝光序列</text>+ <text x="910" y="434" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#566573">生成用户可见的最终排列顺序</text>++ <rect x="896" y="474" width="318" height="72" fill="#F7F9FC"/>+ <line x1="1055" y1="486" x2="1055" y2="534" stroke="#D9D9D9" stroke-width="1"/>+ <text x="975" y="498" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">典型耗时</text>+ <text x="975" y="522" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#5B9BD5">< 30 ms</text>+ <text x="1135" y="498" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">最终曝光</text>+ <text x="1135" y="522" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#5B9BD5">~20</text>++ <!-- 子模块之间的流向箭头 -->+ <line x1="482" y1="384" x2="496" y2="384" stroke="#B0B8C4" stroke-width="2.5" marker-end="url(#mcArrow)"/>+ <line x1="862" y1="384" x2="876" y2="384" stroke="#B0B8C4" stroke-width="2.5" marker-end="url(#mcArrow)"/>++ <!-- ==================== 底部输入输出摘要 ==================== -->+ <rect x="30" y="610" width="30" height="30" fill="#C00000"/>+ <text x="45" y="632" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF">▸</text>+ <text x="32" y="674" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#1A252F">输入</text>+ <text x="32" y="696" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#1A252F">输出</text>++ <rect x="100" y="610" width="1150" height="90" fill="none" stroke="#E7E6E6" stroke-width="2"/>+ <text x="675" y="628" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">端到端数据流向 · 上游行为日志 → 引擎内部三段处理 → 下游曝光与点击回流</text>+ <line x1="120" y1="638" x2="1230" y2="638" stroke="#000000" stroke-width="1" stroke-dasharray="2 2"/>++ <rect x="120" y="650" width="200" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="220" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">用户行为日志</text>++ <rect x="340" y="650" width="200" height="40" fill="#FDF3EB" stroke="#F8CBAD" stroke-width="1"/>+ <text x="440" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#C00000">用户画像 + 物品特征</text>++ <rect x="560" y="650" width="200" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="660" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">Feed 曝光流</text>++ <rect x="780" y="650" width="200" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="880" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">点击 / 停留回流</text>++ <rect x="1000" y="650" width="230" height="40" fill="#FDF3EB" stroke="#F8CBAD" stroke-width="1"/>+ <text x="1115" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#C00000">实验平台 A/B 指标</text>+</svg>diff --git a/skills/ppt-master/templates/charts/pipeline_with_stages.svg b/skills/ppt-master/templates/charts/pipeline_with_stages.svgnew file mode 100644index 00000000..ace92b58--- /dev/null+++ b/skills/ppt-master/templates/charts/pipeline_with_stages.svg@@ -0,0 +1,236 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720">+ <!--+ 数据/处理管道图模板 (Pipeline with Stages)+ 用途: 水平依次经过的多个阶段,每个阶段承载标题 + 描述 + 输入输出+ 适用场景: 数据管道、ETL 流程、编译/构建流水线、审批流+ 支持: 3-5 阶段 (推荐 4-5)+ 关键约定:+ - 每个阶段卡 = 编号徽章 + 阶段标题 + 职责定位 + 2 条要点描述 + 产物 / Output+ - 阶段间用手绘三角箭头 (非 marker) 展示单向流动+ - 左侧行标签 "流水阶段" 统一框住全部阶段+ - 底部"产物流向"带用两个强调色块标出起点与终点+ - 若阶段缺少"产物"或缺少描述,应退回 process_flow 或 numbered_steps+ 注意: 中文字符实际渲染宽度约 1em,卡片内文本按每卡 ≤ 12 个字符估算,超过请精简表达+ -->++ <!-- 背景 -->+ <rect x="0" y="0" width="1280" height="720" fill="#FFFFFF"/>++ <!-- 标题 -->+ <rect x="30" y="22" width="10" height="40" fill="#C00000"/>+ <text x="52" y="55" font-family="Microsoft YaHei, sans-serif" font-size="30" font-weight="700" fill="#C00000">数据处理管道全流程</text>++ <!-- 副标题带 -->+ <rect x="30" y="78" width="1220" height="46" fill="#F2F2F2"/>+ <text x="640" y="99" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" font-weight="700" fill="#1A252F">+ <tspan x="640" dy="0">从原始数据到业务产出的五阶段流水 · 每阶段的产物即下一阶段的输入</tspan>+ <tspan x="640" dy="22" fill="#7F8C8D" font-weight="400">阶段卡 = 编号 + 标题 + 职责定位 + 要点描述 + 产物;缺产物或缺描述请改用 process_flow 或 numbered_steps</tspan>+ </text>++ <!-- ==================== 左侧行标签 ==================== -->+ <rect x="30" y="150" width="30" height="30" fill="#C00000"/>+ <text x="45" y="172" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF">⟶</text>+ <text x="32" y="220" font-family="Microsoft YaHei, sans-serif" font-size="20" font-weight="700" fill="#1A252F">流水</text>+ <text x="32" y="246" font-family="Microsoft YaHei, sans-serif" font-size="20" font-weight="700" fill="#1A252F">阶段</text>+ <text x="32" y="272" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#7F8C8D">Pipeline</text>+ <text x="32" y="288" font-family="Microsoft YaHei, sans-serif" font-size="12" fill="#7F8C8D">Stages</text>++ <!-- ==================== 流水线整体外框 ==================== -->+ <rect x="100" y="150" width="1150" height="430" fill="none" stroke="#C00000" stroke-width="2" stroke-dasharray="6 4"/>+ <rect x="100" y="150" width="1150" height="32" fill="#FDF3EB"/>+ <text x="675" y="172" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">五阶段串行流水 · Raw → Clean → Wide → Enriched → Products</text>++ <!--+ 阶段卡布局计算:+ 可用宽: 1150 - 2*20 (内边距) = 1110+ 5 卡 + 4 箭头区, 每箭头区 40, 每卡 (1110 - 4*40) / 5 = 190+ 卡 x: 120, 350, 580, 810, 1040 (间距 230 = 卡 190 + 箭头区 40)+ 卡 y: 200 - 560, 高 360+ -->++ <!-- ==================== 阶段 1: 采集 ==================== -->+ <rect x="120" y="200" width="190" height="360" fill="#FFFFFF" stroke="#2E75B6" stroke-width="1"/>+ <rect x="120" y="200" width="190" height="48" fill="#2E75B6"/>+ <rect x="132" y="210" width="28" height="28" fill="#FFFFFF"/>+ <text x="146" y="230" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" font-weight="700" fill="#2E75B6">01</text>+ <text x="172" y="230" font-family="Microsoft YaHei, sans-serif" font-size="17" font-weight="700" fill="#FFFFFF">采集</text>+ <text x="172" y="244" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#FFFFFF" fill-opacity="0.85">Ingest</text>++ <rect x="120" y="248" width="190" height="30" fill="#EAF1F8"/>+ <text x="215" y="268" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#2E75B6">多源接入与实时抓取</text>++ <rect x="134" y="296" width="6" height="6" fill="#2E75B6"/>+ <text x="148" y="304" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">多通道接入</text>+ <text x="148" y="322" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">埋点 · CDC · 文件同步</text>++ <rect x="134" y="344" width="6" height="6" fill="#2E75B6"/>+ <text x="148" y="352" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">统一协议</text>+ <text x="148" y="370" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">队列缓冲 · 背压控制</text>++ <rect x="134" y="392" width="6" height="6" fill="#2E75B6"/>+ <text x="148" y="400" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">弹性吞吐</text>+ <text x="148" y="418" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">分片并行 · 自动扩缩</text>++ <rect x="134" y="460" width="162" height="82" fill="#F7F9FC"/>+ <text x="215" y="478" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="10" fill="#7F8C8D">产物 · Output</text>+ <line x1="148" y1="486" x2="282" y2="486" stroke="#E7E6E6" stroke-width="1"/>+ <text x="215" y="510" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#2E75B6">Raw Events</text>+ <text x="215" y="530" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">原始事件流</text>++ <!-- ==================== 阶段 2: 校验 ==================== -->+ <rect x="350" y="200" width="190" height="360" fill="#FFFFFF" stroke="#2E75B6" stroke-width="1"/>+ <rect x="350" y="200" width="190" height="48" fill="#2E75B6"/>+ <rect x="362" y="210" width="28" height="28" fill="#FFFFFF"/>+ <text x="376" y="230" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" font-weight="700" fill="#2E75B6">02</text>+ <text x="402" y="230" font-family="Microsoft YaHei, sans-serif" font-size="17" font-weight="700" fill="#FFFFFF">校验</text>+ <text x="402" y="244" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#FFFFFF" fill-opacity="0.85">Validate</text>++ <rect x="350" y="248" width="190" height="30" fill="#EAF1F8"/>+ <text x="445" y="268" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#2E75B6">规则校验与脏数据隔离</text>++ <rect x="364" y="296" width="6" height="6" fill="#2E75B6"/>+ <text x="378" y="304" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">格式与范围校验</text>+ <text x="378" y="322" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">字段类型 · 取值域</text>++ <rect x="364" y="344" width="6" height="6" fill="#2E75B6"/>+ <text x="378" y="352" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">业务规则校验</text>+ <text x="378" y="370" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">唯一性 · 引用完整性</text>++ <rect x="364" y="392" width="6" height="6" fill="#2E75B6"/>+ <text x="378" y="400" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">异常隔离告警</text>+ <text x="378" y="418" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">死信队列 · 触发重试</text>++ <rect x="364" y="460" width="162" height="82" fill="#F7F9FC"/>+ <text x="445" y="478" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="10" fill="#7F8C8D">产物 · Output</text>+ <line x1="378" y1="486" x2="512" y2="486" stroke="#E7E6E6" stroke-width="1"/>+ <text x="445" y="510" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#2E75B6">Clean Events</text>+ <text x="445" y="530" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">合规事件流</text>++ <!-- ==================== 阶段 3: 转换 ==================== -->+ <rect x="580" y="200" width="190" height="360" fill="#FFFFFF" stroke="#C00000" stroke-width="1"/>+ <rect x="580" y="200" width="190" height="48" fill="#C00000"/>+ <rect x="592" y="210" width="28" height="28" fill="#FFFFFF"/>+ <text x="606" y="230" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" font-weight="700" fill="#C00000">03</text>+ <text x="632" y="230" font-family="Microsoft YaHei, sans-serif" font-size="17" font-weight="700" fill="#FFFFFF">转换</text>+ <text x="632" y="244" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#FFFFFF" fill-opacity="0.85">Transform</text>++ <rect x="580" y="248" width="190" height="30" fill="#FDF3EB"/>+ <text x="675" y="268" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#C00000">结构化与口径对齐</text>++ <rect x="594" y="296" width="6" height="6" fill="#C00000"/>+ <text x="608" y="304" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">反规范化建模</text>+ <text x="608" y="322" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">维度补齐 · 粒度聚合</text>++ <rect x="594" y="344" width="6" height="6" fill="#C00000"/>+ <text x="608" y="352" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">派生指标计算</text>+ <text x="608" y="370" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">统一指标口径</text>++ <rect x="594" y="392" width="6" height="6" fill="#C00000"/>+ <text x="608" y="400" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">主题宽表产出</text>+ <text x="608" y="418" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">可复用 · 可下钻</text>++ <rect x="594" y="460" width="162" height="82" fill="#F7F9FC"/>+ <text x="675" y="478" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="10" fill="#7F8C8D">产物 · Output</text>+ <line x1="608" y1="486" x2="742" y2="486" stroke="#E7E6E6" stroke-width="1"/>+ <text x="675" y="510" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#C00000">Wide Tables</text>+ <text x="675" y="530" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">主题宽表</text>++ <!-- ==================== 阶段 4: 增强 ==================== -->+ <rect x="810" y="200" width="190" height="360" fill="#FFFFFF" stroke="#5B9BD5" stroke-width="1"/>+ <rect x="810" y="200" width="190" height="48" fill="#5B9BD5"/>+ <rect x="822" y="210" width="28" height="28" fill="#FFFFFF"/>+ <text x="836" y="230" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" font-weight="700" fill="#5B9BD5">04</text>+ <text x="862" y="230" font-family="Microsoft YaHei, sans-serif" font-size="17" font-weight="700" fill="#FFFFFF">增强</text>+ <text x="862" y="244" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#FFFFFF" fill-opacity="0.85">Enrich</text>++ <rect x="810" y="248" width="190" height="30" fill="#E9F2FA"/>+ <text x="905" y="268" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#5B9BD5">AI 标签与语义注入</text>++ <rect x="824" y="296" width="6" height="6" fill="#5B9BD5"/>+ <text x="838" y="304" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">AI 标签推理</text>+ <text x="838" y="322" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">画像 · 意图 · 归因</text>++ <rect x="824" y="344" width="6" height="6" fill="#5B9BD5"/>+ <text x="838" y="352" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">知识图谱补充</text>+ <text x="838" y="370" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">实体关联 · 关系扩展</text>++ <rect x="824" y="392" width="6" height="6" fill="#5B9BD5"/>+ <text x="838" y="400" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">语义标签落地</text>+ <text x="838" y="418" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">可被业务直接消费</text>++ <rect x="824" y="460" width="162" height="82" fill="#F7F9FC"/>+ <text x="905" y="478" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="10" fill="#7F8C8D">产物 · Output</text>+ <line x1="838" y1="486" x2="972" y2="486" stroke="#E7E6E6" stroke-width="1"/>+ <text x="905" y="510" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#5B9BD5">Enriched Set</text>+ <text x="905" y="530" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">增强数据集</text>++ <!-- ==================== 阶段 5: 输出 ==================== -->+ <rect x="1040" y="200" width="190" height="360" fill="#FFFFFF" stroke="#2E75B6" stroke-width="1"/>+ <rect x="1040" y="200" width="190" height="48" fill="#2E75B6"/>+ <rect x="1052" y="210" width="28" height="28" fill="#FFFFFF"/>+ <text x="1066" y="230" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="14" font-weight="700" fill="#2E75B6">05</text>+ <text x="1092" y="230" font-family="Microsoft YaHei, sans-serif" font-size="17" font-weight="700" fill="#FFFFFF">输出</text>+ <text x="1092" y="244" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#FFFFFF" fill-opacity="0.85">Serve</text>++ <rect x="1040" y="248" width="190" height="30" fill="#EAF1F8"/>+ <text x="1135" y="268" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#2E75B6">数据服务与消费入口</text>++ <rect x="1054" y="296" width="6" height="6" fill="#2E75B6"/>+ <text x="1068" y="304" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">BI 看板</text>+ <text x="1068" y="322" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">决策可视化</text>++ <rect x="1054" y="344" width="6" height="6" fill="#2E75B6"/>+ <text x="1068" y="352" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">数据 API</text>+ <text x="1068" y="370" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">应用方按需调用</text>++ <rect x="1054" y="392" width="6" height="6" fill="#2E75B6"/>+ <text x="1068" y="400" font-family="Microsoft YaHei, sans-serif" font-size="12" font-weight="700" fill="#1A252F">推送订阅</text>+ <text x="1068" y="418" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#566573">变更事件触发</text>++ <rect x="1054" y="460" width="162" height="82" fill="#F7F9FC"/>+ <text x="1135" y="478" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="10" fill="#7F8C8D">产物 · Output</text>+ <line x1="1068" y1="486" x2="1202" y2="486" stroke="#E7E6E6" stroke-width="1"/>+ <text x="1135" y="510" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="15" font-weight="700" fill="#2E75B6">Products</text>+ <text x="1135" y="530" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="11" fill="#7F8C8D">业务可用产物</text>++ <!-- ==================== 阶段间箭头 (手绘多边形, 不受 stroke 缩放影响) ==================== -->+ <!-- 箭头位于 y=380, 卡片间隙内, 每个箭头宽 24, 由短尾线 + 三角头组成 -->+ <g fill="#B0B8C4">+ <rect x="315" y="378" width="16" height="4"/>+ <polygon points="331,372 345,380 331,388"/>+ <rect x="545" y="378" width="16" height="4"/>+ <polygon points="561,372 575,380 561,388"/>+ <rect x="775" y="378" width="16" height="4"/>+ <polygon points="791,372 805,380 791,388"/>+ <rect x="1005" y="378" width="16" height="4"/>+ <polygon points="1021,372 1035,380 1021,388"/>+ </g>++ <!-- ==================== 底部产物流向带 ==================== -->+ <rect x="30" y="610" width="30" height="30" fill="#C00000"/>+ <text x="45" y="632" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#FFFFFF">▸</text>+ <text x="32" y="674" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#1A252F">端到</text>+ <text x="32" y="696" font-family="Microsoft YaHei, sans-serif" font-size="18" font-weight="700" fill="#1A252F">端</text>++ <rect x="100" y="610" width="1150" height="90" fill="none" stroke="#E7E6E6" stroke-width="2"/>+ <text x="675" y="628" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#1A252F">起点 · 原始数据 ——— 经五个阶段加工 ——— 终点 · 业务可消费产物</text>+ <line x1="120" y1="638" x2="1230" y2="638" stroke="#000000" stroke-width="1" stroke-dasharray="2 2"/>++ <rect x="120" y="650" width="200" height="40" fill="#FDF3EB" stroke="#F8CBAD" stroke-width="1"/>+ <text x="220" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#C00000">起点 · 原始数据</text>++ <rect x="340" y="650" width="160" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="420" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">Raw Events</text>++ <rect x="520" y="650" width="160" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="600" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">Clean Events</text>++ <rect x="700" y="650" width="160" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="780" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">Wide Tables</text>++ <rect x="880" y="650" width="160" height="40" fill="#F2F2F2" stroke="#D9D9D9" stroke-width="1"/>+ <text x="960" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" fill="#1A252F">Enriched Set</text>++ <rect x="1060" y="650" width="170" height="40" fill="#FDF3EB" stroke="#F8CBAD" stroke-width="1"/>+ <text x="1145" y="675" text-anchor="middle" font-family="Microsoft YaHei, sans-serif" font-size="13" font-weight="700" fill="#C00000">终点 · Products</text>+</svg>