AGENT SKILL

专业图表绘制

diagram-creator

使用 Mermaid、PlantUML 及其他基于文本的图表工具创建专业图表。可生成流程图、时序图、架构图等。

使用场景视觉设计
License 许可
MIT
最近更新
2026-10-27
Stars
★ 1
Forks
0

01 前言 Front Matter

name
diagram-creator
tags
[ "diagram", "flowchart", "mermaid", "plantuml", "architecture" ]
author
claude-office-skills
models
{ "compatible": [ "claude-3-5-sonnet", "gpt-4", "gpt-4o" ], "recommended": [ "claude-sonnet-4", "claude-opus-4" ] }
license
MIT
version
1.0.0
category
visualization
languages
[ "en", "zh" ]
department
Engineering/Design
description
Create professional diagrams using Mermaid, PlantUML, and other text-based diagram tools. Generate flowcharts, sequence diagrams, architecture diagrams, and more.
capabilities
[ "flowchart_creation", "sequence_diagrams", "architecture_diagrams", "er_diagrams", "class_diagrams" ]
related_skills
[ "chart-designer", "ppt-visual", "dev-slides" ]

03 SKILL.md 正文

Diagram Creator Skill

Overview

I help you create professional diagrams using text-based diagram tools like Mermaid and PlantUML. These diagrams can be rendered in documentation, presentations, and development tools.

What I can do:

  • Create flowcharts and process diagrams
  • Generate sequence diagrams
  • Build architecture and system diagrams
  • Design ER (Entity-Relationship) diagrams
  • Create class diagrams and UML
  • Generate organizational charts
  • Build Gantt charts and timelines

What I cannot do:

  • Render images directly (use Mermaid live editor or similar)
  • Create pixel-perfect custom designs
  • Generate raster images

How to Use Me

Step 1: Describe Your Diagram

Tell me:

  • What process/system/concept to visualize
  • Type of diagram needed
  • Level of detail
  • Target audience

Step 2: Choose Format

  • Mermaid: Best for web, markdown, GitHub
  • PlantUML: Best for UML, complex diagrams
  • ASCII: Simple, universal compatibility
  • D2: Modern, stylish diagrams

Step 3: Specify Style

  • Colors and themes
  • Direction (top-down, left-right)
  • Level of detail

Diagram Types

1. Flowchart / Process Diagram

Use for: Business processes, decision trees, workflows

flowchart TD
    A[Start] --> B{Decision?}
    B -->|Yes| C[Action 1]
    B -->|No| D[Action 2]
    C --> E[End]
    D --> E

2. Sequence Diagram

Use for: API calls, user interactions, system communication

sequenceDiagram
    participant U as User
    participant A as App
    participant S as Server
    participant D as Database
    
    U->>A: Click Login
    A->>S: POST /auth/login
    S->>D: Query user
    D-->>S: User data
    S-->>A: JWT token
    A-->>U: Redirect to dashboard

3. Architecture Diagram

Use for: System design, infrastructure, component relationships

flowchart TB
    subgraph Client
        A[Web App]
        B[Mobile App]
    end
    
    subgraph Backend
        C[API Gateway]
        D[Auth Service]
        E[User Service]
        F[Order Service]
    end
    
    subgraph Data
        G[(PostgreSQL)]
        H[(Redis)]
        I[(S3)]
    end
    
    A & B --> C
    C --> D & E & F
    D --> H
    E --> G
    F --> G & I

4. Entity-Relationship Diagram

Use for: Database design, data models

erDiagram
    CUSTOMER ||--o{ ORDER : places
    ORDER ||--|{ LINE_ITEM : contains
    PRODUCT ||--o{ LINE_ITEM : "ordered in"
    
    CUSTOMER {
        int id PK
        string name
        string email
    }
    ORDER {
        int id PK
        date created_at
        int customer_id FK
    }
    PRODUCT {
        int id PK
        string name
        decimal price
    }

5. Class Diagram

Use for: OOP design, code structure

classDiagram
    class Animal {
        +String name
        +int age
        +makeSound()
    }
    class Dog {
        +String breed
        +bark()
    }
    class Cat {
        +boolean indoor
        +meow()
    }
    
    Animal <|-- Dog
    Animal <|-- Cat

6. State Diagram

Use for: State machines, status workflows

stateDiagram-v2
    [*] --> Draft
    Draft --> Submitted: Submit
    Submitted --> InReview: Assign reviewer
    InReview --> Approved: Approve
    InReview --> Rejected: Reject
    Rejected --> Draft: Revise
    Approved --> [*]

7. Gantt Chart

Use for: Project timelines, schedules

gantt
    title Project Timeline
    dateFormat  YYYY-MM-DD
    
    section Planning
    Requirements    :a1, 2024-01-01, 14d
    Design          :a2, after a1, 21d
    
    section Development
    Backend         :b1, after a2, 30d
    Frontend        :b2, after a2, 30d
    
    section Testing
    QA Testing      :c1, after b1, 14d
    UAT             :c2, after c1, 7d

8. Mind Map

Use for: Brainstorming, concept organization

mindmap
    root((Project))
        Features
            Feature A
            Feature B
            Feature C
        Team
            Frontend
            Backend
            Design
        Timeline
            Q1
            Q2
            Q3

9. Git Graph

Use for: Branch visualization, git workflows

gitGraph
    commit
    commit
    branch feature
    checkout feature
    commit
    commit
    checkout main
    merge feature
    commit

Output Format

# Diagram: [Name]

**Type**: [Flowchart / Sequence / Architecture / etc.]
**Tool**: [Mermaid / PlantUML]
**Purpose**: [What it illustrates]

---

## Diagram Code

### Mermaid

```mermaid
[Mermaid code here]

PlantUML (Alternative)

[PlantUML code here]

Rendering Instructions

  1. Mermaid Live Editor: https://mermaid.live/
  2. GitHub: Paste directly in markdown files
  3. VS Code: Install Mermaid extension
  4. Notion: Use code block with mermaid type

Customization Options

Color Theme

Add to the beginning:

%%{init: {'theme':'forest'}}%%

Available themes: default, forest, dark, neutral

Direction

  • TB (top to bottom)
  • BT (bottom to top)
  • LR (left to right)
  • RL (right to left)

Notes

  • [Any notes about the diagram]
  • [Assumptions made]

---

## PlantUML Examples

### Sequence Diagram
```plantuml
@startuml
actor User
participant "Web App" as App
participant "API Server" as API
database "Database" as DB

User -> App: Login request
App -> API: POST /auth/login
API -> DB: SELECT user
DB --> API: User record
API --> App: JWT token
App --> User: Redirect to dashboard
@enduml

Component Diagram

@startuml
package "Frontend" {
    [React App]
    [Mobile App]
}

package "Backend" {
    [API Gateway]
    [Auth Service]
    [User Service]
}

database "PostgreSQL" as DB

[React App] --> [API Gateway]
[Mobile App] --> [API Gateway]
[API Gateway] --> [Auth Service]
[API Gateway] --> [User Service]
[User Service] --> DB
@enduml

Tips for Better Diagrams

  1. Keep it simple - Don't overcrowd
  2. Use consistent naming - Clear, descriptive labels
  3. Group related items - Use subgraphs/packages
  4. Choose appropriate type - Match diagram to concept
  5. Consider audience - Technical vs. business
  6. Use colors sparingly - For emphasis only
  7. Add legends - When using symbols/colors
  8. Maintain hierarchy - Top-down or left-right flow

Rendering Tools

Tool URL Best For
Mermaid Live mermaid.live Quick editing
PlantUML Server plantuml.com PlantUML rendering
Draw.io draw.io Manual editing
Excalidraw excalidraw.com Hand-drawn style
Lucidchart lucidchart.com Professional diagrams

Limitations

  • Cannot render images directly
  • Complex layouts may need manual adjustment
  • Limited styling compared to design tools
  • Some diagram types not supported in all tools

Built by the Claude Office Skills community. Contributions welcome!

04 同仓库更多 Skills

microsoft
microsoft/frontier-ai-governance-rvas

技能创建与优化

skill-creator

创建新技能、修改和改进现有技能,并衡量技能表现。当用户想要从零开始创建技能、编辑或优化现有技能、运行评测(evals)测试技能、通过方差分析对技能表现进行基准测试,或优化技能描述以提高触发准确性时使用。

AI 工程师插件与技能管理
★ 1
microsoft
microsoft/frontier-ai-governance-rvas

Azure OpenAI 模型快速部署

preset

通过分析所有可用区域的容量,智能地将 Azure OpenAI 模型部署到最优区域。自动先检查当前区域,并在需要时显示备选方案。适用于:快速部署、最优区域、最佳区域、自动区域选择、快速设置、多区域容量检查、高可用部署、部署到最佳位置。不适用于:自定义 SKU 选择(使用 customize)、指定版本选择(使用 customize)、自定义容量配置(使用 customize)、PTU 部署(使用 customize)。

AI 工程师Azure AI 服务集成
★ 1
microsoft
microsoft/frontier-ai-governance-rvas

Azure OpenAI 模型自定义部署

customize

交互式引导式 Azure OpenAI 模型部署流程,支持完全自定义控制。逐步选择模型版本、SKU(GlobalStandard/Standard/ProvisionedManaged)、容量、RAI 策略(内容筛选)以及高级选项(动态配额、优先处理、溢出)。适用于:自定义部署、自定义模型部署、选择版本、选择 SKU、设置容量、配置内容筛选、RAI 策略、部署选项、详细部署、高级部署、PTU 部署、预配置吞吐量。不适用于:快速部署到最优区域(使用 preset)。

AI 工程师Azure AI 服务集成
★ 1
microsoft
microsoft/frontier-ai-governance-rvas

Azure OpenAI 模型容量发现

capacity

发现跨区域和项目的可用 Azure OpenAI 模型容量。分析配额限制、比较可用性,并根据容量需求推荐最佳部署位置。适用于:查找容量、检查配额、在哪里可以部署、容量发现、容量最佳区域、多项目容量搜索、配额分析、模型可用性、区域比较、检查 TPM 可用性。不适用于:实际部署(发现后转交 preset 或 customize 处理)、配额提升请求(引导用户前往 Azure Portal)、列出现有部署。

AI 工程师Azure AI 服务集成
★ 1
microsoft
microsoft/frontier-ai-governance-rvas

Azure OpenAI 模型部署

deploy-model

统一的 Azure OpenAI 模型部署技能,具备基于意图的智能路由。可处理快速预设部署、完全自定义部署(版本/SKU/容量/RAI 策略),以及跨区域和项目的容量发现。适用于:部署模型、部署 gpt、创建部署、模型部署、部署 openai 模型、设置模型、配置模型、查找容量、检查模型可用性、在哪里可以部署、模型最佳区域、容量分析。不适用于:列出现有部署(使用 foundry_models_deployments_list MCP 工具)、删除部署、创建智能体(使用 agent/create)、创建项目(使用 project/create)。

AI 工程师Azure AI 服务集成
★ 1
microsoft
microsoft/frontier-ai-governance-rvas

模型微调训练

finetuning

使用 SFT(监督式)、DPO(偏好)或 RFT(带评分器的强化学习)在 Microsoft Foundry 上微调模型。涵盖数据集准备、训练作业提交、部署和评估。适用于:微调、SFT、DPO、RFT、训练数据、评分器、蒸馏、微调模型、训练作业、大文件上传、校准评分器、部署微调模型、评估微调模型。不适用于:不涉及微调的通用模型部署(使用 deploy-model)、智能体创建(使用 agents)、不涉及训练的提示词优化(使用 prompt-optimizer)。

AI 工程师AI 模型训练与微调
★ 1