ux-sequence-diagram

[UI/UX] 将交互序列和系统通信可视化为ASCII图表。表示用户系统交互、API调用序列和事件流。在请求"序列图"、"交互流程"或"API序列"时使用。

📖 中文导读:[UI/UX] 将交互序列和系统通信可视化为ASCII图表。表示用户系统交互、API调用序列和事件流。在请求"序列图"、"交互流程"或"API序列"时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: ux-sequence-diagram description: "[UI/UX] Visualizes interaction sequences and system communications as ASCII diagrams. Represents user-system interactions, API call sequences, and event flows. Use when requesting 'sequence diagram', 'interaction flow', or 'API sequence'."

UX Sequence Diagram

A skill that visualizes interaction sequences and system communications as ASCII diagrams.

When to Use

  • Defining user-system interaction sequences
  • Documenting API call sequences
  • Representing event flows between components
  • Designing asynchronous operation sequences

Sequence Diagram Symbols

Participants

┌───────┐     ┌───────┐     ┌───────┐
│ User  │     │  UI   │     │Server │
└───┬───┘     └───┬───┘     └───┬───┘
    │             │             │

Message Types

────────→     Sync Request
← ─ ─ ─ ─     Sync Response
- - - - →     Async Request
═══════→     Critical Message
──────X      Failed/Cancelled

Sequence Patterns

Basic Request-Response

┌───────┐          ┌───────┐          ┌───────┐
│ User  │          │  UI   │          │Server │
└───┬───┘          └───┬───┘          └───┬───┘
    │                  │                  │
    │  Click Button    │                  │
    │─────────────────→│                  │
    │                  │  API Request     │
    │                  │─────────────────→│
    │                  │  Response Data   │
    │                  │← ─ ─ ─ ─ ─ ─ ─ ─ │
    │  Update View     │                  │
    │← ─ ─ ─ ─ ─ ─ ─ ─ │                  │
    ↓                  ↓                  ↓

Constraints

  • Participants arranged left-to-right, closest to user first
  • Time flows top-to-bottom
  • Clearly distinguish sync/async messages