Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问clear审计通过

slidev-mermaidslidev Mermaid 命令行

Agent Skill

slidev-mermaid 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,983

周安装

81

GitHub Stars

27

下载量

635
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:slidev-mermaid(slidev Mermaid 命令行)
来源仓库:https://github.com/yoanbernabeu/slidev-skills
仓库路径:skills/slidev-mermaid
安装命令:
npx skills add https://github.com/yoanbernabeu/slidev-skills --skill slidev-mermaid
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/yoanbernabeu/slidev-skills --skill slidev-mermaid

简介

slidev-mermaid 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态进行整理时使用。

  • 适用于 Mermaid 图表与 Slidev 集成的协作场景。
  • 通过 npx skills add 命令从 GitHub 安装,需结合原始 README 确认具体用法。
  • 安装前建议确认权限范围和维护状态,避免触发不必要的联网或文件操作。
  • 注意该技能当前无详细功能说明,建议进一步查阅源码以了解实际能力边界。

SKILL.md

Mermaid Diagrams in Slidev

This skill covers creating visual diagrams using Mermaid syntax in Slidev presentations. Mermaid allows you to create flowcharts, sequence diagrams, class diagrams, and many other diagram types using simple text.

When to Use This Skill

  • Creating flowcharts and process diagrams
  • Showing system architecture
  • Visualizing sequences and workflows
  • Creating class and entity diagrams
  • Building organizational charts
  • Displaying timelines and Gantt charts

Basic Syntax

Use a code block with mermaid language:

graph TD A[Start] --> B[Process] B --> C[End]

Flowcharts

Top-Down Flow

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

Left-Right Flow

graph LR A[Input] --> B[Process] --> C[Output]

Node Shapes

graph TD A[Rectangle] B(Rounded) C([Stadium]) D[[Subroutine]] E[(Database)] F((Circle)) G>Asymmetric] H{Diamond} I{{Hexagon}} J[/Parallelogram/] K[\Parallelogram Alt\]

Arrow Types

graph LR A --> B C --- D E -.-> F G ==> H I --text--> J K ---|text| L

Sequence Diagrams

Basic Sequence

sequenceDiagram participant U as User participant S as Server participant D as Database

U->>S: Request S->>D: Query D-->>S: Result S-->>U: Response

With Activation

sequenceDiagram participant C as Client participant S as Server

C->>+S: Login Request S->>S: Validate S-->>-C: Token

C->>+S: API Call S-->>-C: Data

Notes and Loops

sequenceDiagram participant A as Alice participant B as Bob

Note over A: Alice thinks A->>B: Hello Bob! Note over A,B: Shared note

loop Every minute A->>B: Are you there? end

alt Success B-->>A: Yes! else Failure B-->>A: No response end

Class Diagrams

Basic Class

classDiagram class Animal { +String name +int age +makeSound() }

class Dog { +String breed +bark() }

class Cat { +meow() }

Animal <|-- Dog Animal <|-- Cat

Relationships

classDiagram classA --|> classB : Inheritance classC --* classD : Composition classE --o classF : Aggregation classG --> classH : Association classI -- classJ : Link classK ..> classL : Dependency classM ..|> classN : Realization

State Diagrams

stateDiagram-v2 [*] --> Idle Idle --> Processing: Start Processing --> Success: Complete Processing --> Error: Fail Success --> [*] Error --> Idle: Retry

Nested States

stateDiagram-v2 [*] --> Active

state Active { [*] --> Idle Idle --> Running: Start Running --> Paused: Pause Paused --> Running: Resume Running --> Idle: Stop }

Active --> [*]: Shutdown

Entity Relationship Diagrams

erDiagram USER ||--o{ ORDER : places USER { int id PK string name string email } ORDER ||--|{ LINE_ITEM : contains ORDER { int id PK date created string status } PRODUCT ||--o{ LINE_ITEM : includes PRODUCT { int id PK string name float price } LINE_ITEM { int quantity }

Gantt Charts

gantt title Project Timeline dateFormat YYYY-MM-DD

section Planning Requirements :a1, 2024-01-01, 7d Design :a2, after a1, 5d

section Development Backend :b1, after a2, 14d Frontend :b2, after a2, 14d

section Testing QA :c1, after b1, 7d UAT :c2, after c1, 3d

Pie Charts

pie title Language Usage "JavaScript" : 45 "Python" : 25 "TypeScript" : 20 "Other" : 10

Git Graphs

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

Mind Maps

mindmap root((Slidev)) Features Markdown Vue Components Animations Tech Stack Vite Vue 3 UnoCSS Export PDF PPTX SPA

Timeline

timeline title History of Slidev 2020 : Project Started 2021 : v0.1 Released : Theme System Added 2022 : Monaco Editor : Magic Move 2023 : v0.40 : Improved Animations 2024 : v0.50 : Browser Export

Styling Diagrams

Theme Option

graph TD A --> B --> C

Available themes: default, neutral, dark, forest, base

Scale Option

graph TD A --> B --> C

Combined Options

graph LR A --> B --> C --> D

Custom Styling

Node Classes

graph TD A[Important]:::important --> B[Normal] B --> C[Warning]:::warning

classDef important fill:#f96,stroke:#333,stroke-width:2px classDef warning fill:#ff0,stroke:#333

Link Styling

graph LR A --> B B --> C linkStyle 0 stroke:#f00,stroke-width:2px linkStyle 1 stroke:#0f0,stroke-width:2px

Configuration

Global Mermaid Config

Create setup/mermaid.ts:

import { defineMermaidSetup } from '@slidev/types'

export default defineMermaidSetup(() => {
  return {
    theme: 'neutral',
    themeVariables: {
      primaryColor: '#3b82f6',
      primaryTextColor: '#fff',
      primaryBorderColor: '#2563eb',
      lineColor: '#64748b',
      secondaryColor: '#f1f5f9',
    },
  }
})

Best Practices

1. Keep Diagrams Simple

Too complex

20+ nodes, crossing lines everywhere

Clear and focused

5-10 nodes, logical flow

2. Use Meaningful Labels

Vague labels

graph TD
    A --> B --> C

Descriptive labels

graph TD
    Request[HTTP Request] --> Auth[Authentication]
    Auth --> Response[JSON Response]

3. Choose Right Diagram Type

ContentDiagram Type
Process flowFlowchart
API callsSequence
Data modelsClass/ER
Project timelineGantt
DistributionPie
HierarchyMind map

4. Consider Animation

Use v-click to reveal diagram parts:

<v-click>

graph TD A --> B


</v-click>

<v-click>

graph TD A --> B --> C


</v-click>

Common Patterns

System Architecture

graph TB subgraph Client UI[Web App] Mobile[Mobile App] end

subgraph Backend API[API Gateway] Auth[Auth Service] Core[Core Service] end

subgraph Data DB[(PostgreSQL)] Cache[(Redis)] end

UI --> API Mobile --> API API --> Auth API --> Core Core --> DB Core --> Cache

Request Flow

sequenceDiagram actor User participant FE as Frontend participant BE as Backend participant DB as Database

User->>FE: Click Button FE->>BE: POST /api/action BE->>DB: INSERT DB-->>BE: OK BE-->>FE: 201 Created FE-->>User: Success Toast

Output Format

When creating diagrams:

DIAGRAM PURPOSE: [What it illustrates]
DIAGRAM TYPE: [flowchart/sequence/class/etc.]

[diagram code]


KEY ELEMENTS:

- Node A: [represents...]
- Node B: [represents...]
- Arrow X->Y: [means...]

STYLING NOTES:

- Theme: [chosen theme]
- Scale: [if adjusted]
- Custom classes: [if any]

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.3%
按下载量换算167

Antigravity

23.65%
按下载量换算150

OpenCode

16.99%
按下载量换算108

Codex

12.49%
按下载量换算79

Cursor

7.16%
按下载量换算45

Gemini CLI

3.72%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills