business-architecture-diagram

生成面向业务的系统架构图与流程图,支持多种格式(PNG/SVG/HTML/PPTX)。在用户需要系统架构图、技术架构图、业务流程图、模块关系图或展示层级结构与组件连接的业务图表时调用。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "business-architecture-diagram":https://skillpi.com/zh/skills/deepskill-30a9b9036fce6c254d961c19ea62f28c5b7ea8ec72f5264a743b6fb10852bda6。安装前核对上游来源和版本:https://skillhub.cn/skills/user_9f772957/business-architecture-diagram。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

生成面向业务的系统架构图与流程图,支持多种格式(PNG/SVG/HTML/PPTX)。在用户需要系统架构图、技术架构图、业务流程图、模块关系图或展示层级结构与组件连接的业务图表时调用。

0 下载

介绍来源: third_party · user_9f772957 · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: business-architecture-diagram
description: Generate business-style system architecture diagrams and flowcharts in multiple formats (PNG/SVG/HTML/PPTX). Invoke when user needs system architecture diagrams, technical architecture diagrams, business process flowcharts, module relationship diagrams, or any business charts showing hierarchical structures and component connections.

Business Architecture Diagram Skill V3

This skill generates high-quality, layered system architecture diagrams in multiple export formats (PNG, SVG, HTML, PPTX) using Python Pillow, with enhanced Chinese font support and clear visual hierarchy.

Key Features

  • Multi-format Export: PNG (raster), SVG (vector), HTML (interactive), PPTX (editable slides)
  • Enhanced Chinese Support: Auto-detects system fonts (Microsoft YaHei, PingFang SC, WenQuanYi, etc.)
  • Clear Visual Hierarchy: Layer badges (L1-L5), icons, flow labels, legends
  • Interactive HTML: Hover tooltips, clickable modules, responsive layout
  • Editable PPTX: Native PowerPoint output via PptxGenJS

Visual Style Specification

Color Scheme

  • Background: #F0F7FF (Light blue, professional and clean)
  • Card Background: #FFFFFF (Pure white, content highlight)
  • Header Bar: #4A90D9 (Business blue, for module titles)
  • Accent: #2E5C8A (Deep blue, for important modules or sidebars)
  • Border: #D0D8E0 (Light gray-blue, thin outline)
  • Arrows/Lines: #5B9BD5 (Medium blue, directional indicators)
  • Text: #333333 (Primary), #666666 (Secondary)
  • Group Box: Dashed border #A0B4C8, light blue fill #E8F1FA
  • Layer Badge: #4A90D9 with gradient per layer (L1-L5)
  • Sidebar: #2E5C8A dark blue background, #1E3A5F header

Graphic Elements

  • Cards: Rounded rectangles, 8px radius, 1px border, subtle shadow (2px offset)
  • Header Bar: Top color block of card, ~30px height, white text + icon
  • Group Box: Dashed rounded rectangle wrapping each layer, with layer badge and name
  • Layer Badge: "L1"-"L5" numbered badge at top-left of each layer group
  • Icons: Business-style glyph icons in card headers
  • Flow Labels: Small rounded labels on connection lines describing data flow

Connection Lines

  • Solid Arrows: Main flow/data direction, 2px width, 8px arrowhead, with flow label
  • Dashed Arrows: Auxiliary connections/monitoring flow, dash pattern (6, 3), 1px width
  • Color: #5B9BD5 solid, #A0B4C8 dashed
  • Labels: White background pill with blue text on midpoint of connection

Layout Principles

  • Compact: Minimize whitespace, module spacing 16-20px
  • Hierarchical: Top-to-bottom layer arrangement with numbered badges (L1, L2, L3...)
  • Aligned: Grid alignment, auto-calculated card widths based on module count
  • Grouped: Each layer wrapped in dashed group box with layer number badge and name
  • Sidebar: Optional right sidebar for cross-cutting concerns (security, monitoring, etc.)
  • Legend: Bottom-left corner with visual explanations of line types and symbols

Fonts

  • Chinese: Microsoft YaHei (msyh.ttc) or SimHei (simhei.ttf)
  • English/Numbers: Arial or Segoe UI
  • Title: 22px bold, dark text with underline accent
  • Subtitle: 13px, gray-blue
  • Card Header: 13px bold, white on color block
  • Body Items: 11px, regular, dark text with bullet points
  • Layer Name: 12px bold, accent color
  • Flow Labels: 10px, blue text

Available Icon Types

Icon Type Use Case
user User-facing modules (student, teacher, admin portals)
monitor Dashboard, management console, display endpoints
server Infrastructure components (databases, cache, storage)
brain AI/ML modules (NLP, analysis, intelligence)
database Data stores, data platforms, repositories
shield Security, compliance, protection modules
gear Engine, processing, configuration modules
cloud Cloud services, external APIs
chart Reporting, analytics, visualization
link Integration, connection, communication modules
mobile Mobile app, mobile-specific modules
api API gateway, API management
lock Authentication, authorization, access control
mail Notification, messaging, email services

Export Formats

PNG (Raster Image)

  • Best for: Embedding in documents, presentations, websites
  • Resolution: 150 DPI, configurable canvas size
  • Features: Full visual effects (shadows, gradients, anti-aliasing)

SVG (Vector Graphics)

  • Best for: Scalable output, print, further editing in Illustrator/Figma
  • Features: Clean vector paths, editable in design tools
  • Limitations: Simplified effects compared to PNG

HTML (Interactive)

  • Best for: Web display, interactive exploration, sharing via browser
  • Features:
    • Hover tooltips showing module names
    • Clickable module cards
    • Responsive container layout
    • CSS animations on hover
  • Output: Single self-contained HTML file

PPTX (PowerPoint)

  • Best for: Business presentations, editable slides
  • Requirements: Node.js + PptxGenJS (npm install pptxgenjs)
  • Features: Native PowerPoint shapes, editable text, theme colors
  • Fallback: If Node.js unavailable, generates JS template for manual execution

JSON Config Format

{
  "title": "System Architecture Title",
  "subtitle": "English Subtitle",
  "width": 1800,
  "height": 1300,
  "layers": [
    {
      "name": "Layer Name",
      "modules": [
        {
          "name": "Module Name",
          "icon": "brain",
          "items": ["Feature 1", "Feature 2", "Feature 3"]
        }
      ]
    }
  ],
  "connections": [
    {
      "from": "Module A",
      "to": "Module B",
      "style": "solid",
      "label": "Data Flow Description"
    }
  ],
  "sidebar": {
    "title": "Sidebar Title",
    "icon": "shield",
    "items": [
      {
        "name": "Category Name",
        "items": ["Sub-item 1", "Sub-item 2"]
      }
    ]
  },
  "legend": [
    {"type": "solid", "label": "Data Flow", "color": "#5B9BD5"},
    {"type": "dashed", "label": "Auxiliary Connection", "color": "#A0B4C8"},
    {"type": "badge", "label": "Layer Number", "color": "#4A90D9"},
    {"type": "rect", "label": "Module", "color": "#E8F1FA"}
  ]
}

Usage

Python API

from generate_arch_v3 import generate_all, generate_png, generate_svg, generate_html, generate_pptx

# Generate all formats at once
results = generate_all(config, "output_path", formats=['png', 'svg', 'html', 'pptx'])

# Or generate individual formats
generate_png(config, "output.png")
generate_svg(config, "output.svg")
generate_html(config, "output.html")
generate_pptx(config, "output.pptx")  # Requires Node.js + PptxGenJS

As Skill Invocation

When user requests an architecture diagram, follow these steps:

  1. Understand Requirements: Clarify the system/business process to display
  2. Design Structure: Plan layers (typically 4-6), modules per layer, sidebar, and connections
  3. Choose Icons: Select appropriate icon types for each module
  4. Define Connections: Map data flow between layers with descriptive labels
  5. Add Legend: Include visual legend for line types and symbols
  6. Generate Image: Use Python script following the visual specification
  7. Deliver Result: Return generated file paths for all requested formats

Key Design Rules

  1. Layer count: 4-6 layers is optimal; each layer should have 3-6 modules
  2. Module items: 2-5 items per module; keep descriptions concise (2-6 Chinese characters)
  3. Connections: Connect modules across adjacent layers; add descriptive flow labels
  4. Sidebar: Use for cross-cutting concerns (security, monitoring, DevOps)
  5. Canvas size: 1600x1200 for simple diagrams; 1800x1300 for complex ones
  6. Always include: Title, subtitle, layer badges, flow labels, and legend

Chinese Font Support

The script auto-detects available Chinese fonts in this priority order:

Windows: Microsoft YaHei > SimHei > SimSun > KaiTi > FangSong macOS: PingFang SC > STHeiti > Hiragino Sans GB > Arial Unicode Linux: WenQuanYi Micro Hei > Droid Sans Fallback > Noto Sans CJK > DejaVu Sans

If no Chinese font is found, falls back to system default. To verify font detection:

from generate_arch_v3 import get_font_info
print(get_font_info())  # Shows detected font family and path

Dependencies

  • Python: Pillow (pip install Pillow)
  • PPTX export: Node.js + PptxGenJS (npm install pptxgenjs)
  • Fonts: System Chinese fonts (auto-detected)

Example Scenarios

  • E-commerce system architecture
  • Microservices architecture
  • Data platform architecture
  • AI platform architecture
  • Business process flowchart
  • Network topology diagram
  • Cloud-native architecture
  • Education technology system
  • Healthcare information system
  • Financial technology platform

Notes

  1. Ensure Pillow is installed: pip install Pillow
  2. Chinese text requires system font support (auto-detected)
  3. Increase canvas size when there are many modules
  4. Keep hierarchy clear, avoid too many crossing lines
  5. Compact layout but not crowded, ensure readability
  6. For PPTX export, install Node.js and run npm install pptxgenjs first
  7. HTML output is self-contained and can be opened directly in browser
  8. SVG output can be imported into Figma, Illustrator, or other design tools

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 支持多格式导出(PNG/SVG/HTML/PPTX),满足不同场景需求
  • 提供完整的视觉规范与中文字体支持,输出专业美观
  • 适用于电商、微服务、AI平台等多种系统架构场景
触发精准90/100

亮点

  • 触发词覆盖全面,包括系统架构图、技术架构图、业务流程图等
  • 边界清晰,不易与其他Skill混淆
结构规范95/100

亮点

  • 文档结构清晰,分章节详述功能、规范、用法与示例
  • 提供完整的JSON配置格式与Python API说明
  • 包含端到端使用示例与关键设计规则
执行可靠90/100

亮点

  • 依赖明确(Pillow、Node.js + PptxGenJS),参数说明完整
  • 提供字体检测与异常处理建议
  • PPTX导出有fallback方案(JS模板)
证据可验 (前四项均值)93/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。