当前位置: 首页 > Skill >

business-architecture-diagram--产品架构图

business-architecture-diagram--产品架构图

business-architecture-diagram--产品架构图

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.

2026.11.27 948
获取Skill文件查看使用说明
作 者:顾舟 许可证: 更新时间:2026.11.27
本文目录展开

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

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,035
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,014
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
Skill 文件
  • SKILL.md
    • Business Architecture Diagram Skill V3
    • Key Features
    • Visual Style Specification
      • Color Scheme
      • Graphic Elements
      • Connection Lines
      • Layout Principles
      • Fonts
    • Available Icon Types
    • Export Formats
      • PNG (Raster Image)
      • SVG (Vector Graphics)
      • HTML (Interactive)
      • PPTX (PowerPoint)
    • JSON Config Format
    • Usage
      • Python API
      • As Skill Invocation
      • Key Design Rules
    • Chinese Font Support
    • Dependencies
    • Example Scenarios
    • Notes

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期