Skill 详情

architecture-diagrams

Creates animated software architecture and infrastructure diagrams.

匹配类型直接匹配已针对 架构图 审核
来源excalimate/excalimate外部来源
报告安装量10仅表示受欢迎程度

使用前先检查

自动化审核只检查相关性,不代表安全审查或推荐。使用前请阅读来源中的说明。

已保存的来源预览

SKILL.md

这段内容是审核时保存的快照。外部来源才是完整且最新的版本。

---
name: architecture-diagrams
description: >
  Create professional software architecture diagrams with animated reveals using
  the Excalimate MCP server. Use when asked to visualize system architecture,
  microservices, cloud infrastructure, API gateways, service meshes, layered
  architectures, or any system design — even if the user doesn't explicitly say
  "architecture diagram."
---

# Architecture Diagrams Skill

Create professional animated software architecture diagrams using the Excalimate MCP server.

## Workflow

1. **Identify Components**: Determine system elements (services, databases, clients, queues, etc.)
2. **Choose Layout Pattern**: Select from 3-tier, microservices, event-driven, or hexagonal
3. **Create Scene**: Use `create_scene` with components positioned on 250×180px grid
4. **Animate Layer-by-Layer**: Reveal architecture progressively with `add_keyframes_batch`
5. **Set Camera & Clip**: Position camera and set clip range for optimal viewing

## Component Vocabulary

Use these standard components with consistent styling and bound labels:

- **Service Box**: `{"type":"rectangle","width":180,"height":80,"backgroundColor":"#a5d8ff","strokeColor":"#1971c2"}`
- **Database**: `{"type":"rectangle","width":140,"height":70,"backgroundColor":"#b2f2bb","strokeColor":"#2f9e44"}`
- **Message Queue**: `{"type":"rectangle","width":200,"height":60,"backgroundColor":"#ffd8a8","strokeColor":"#f08c00"}`
- **Load Balancer**: `{"type":"diamond","width":120,"height":100,"backgroundColor":"#99e9f2","strokeColor":"#0c8599"}`
- **Client**: `{"type":"rectangle","width":120,"height":70,"backgroundColor":"#ffec99","strokeColor":"#f08c00"}`
- **Cache**: `{"type":"ellipse","width":130,"height":80,"backgroundColor":"#d0bfff","strokeColor":"#6741d9"}`
- **API Gateway**: `{"type":"rectangle","width":180,"height":80,"backgroundColor":"#99e9f2","strokeColor":"#0c8599"}`

All components include `"boundElements":[{"id":"label_id","type":"text"}]` for labels.

## Layout Grid

- **Horizontal spacing**: 250px between component centers
- **Vertical spacing**: 180px between layer centers  
- **Boundary frames**: Use rectangles with transparent fill for system boundaries
- **Canvas size**: 1600×1200px recommended for complex architectures

## Color Coding

| Layer Type | Background | Border | Usage |
|------------|------------|--------|--------|
| Client | #ffec99 | #f08c00 | Users, frontend apps, mobile |
| API | #99e9f2 | #0c8599 | Gateways, load balancers, proxies |
| Services | #a5d8ff | #1971c2 | Business logic, microservices |
| Data | #b2f2bb | #2f9e44 | Databases, storage, caches |
| External | #d0bfff | #6741d9 | Third-party services, external APIs |

## Animation Timing

Standard layer-by-layer reveal pattern:

1. **L1 Components** fade in: 0-500ms
2. **L1→L2 Arrows** draw on: 500-1500ms  
3. **L2 Components** fade in: 1500-2000ms
4. **L2→L3 Arrows** draw on: 2000-3000ms
5. **L3 Components** staggered: 3000-4500ms
6. **L4 Components** fade in: 5500-6000ms

**Clip Range**: 0-7000ms for complete reveal

## Complete Example: 3-Tier Architecture

```json
// create_scene call
{
  "elements": [
    {
      "id": "client",
      "type": "rectangle", 
      "x": 400, "y": 100,
      "width": 120, "height": 70,
      "backgroundColor": "#ffec99",
      "strokeColor": "#f08c00",
      "boundElements": [{"id": "client_label", "type": "text"}]
    },
    {
      "id": "client_label",
      "type": "text",
      "x": 460, "y": 135,
      "text": "Client App",
      "fontSize": 16
    },
    {
      "id": "gateway",
      "type": "rectangle",
      "x": 400, "y": 280, 
      "width": 180, "height": 80,
      "backgroundColor": "#99e9f2",
      "strokeColor": "#0c8599",
      "boundElements": [{"id": "gateway_label", "type": "text"}]
    },
    {
      "id": "gateway_label", 
      "type": "text",
      "x": 490, "y": 320,
      "text": "API Gateway",
      "fontSize": 16
    },
    {
      "id": "service1",
      "type": "rectangle",
      "x": 250
在 GitHub 阅读完整来源 (打开外部页面)
相关上下文

相关工作