All skills
agents365-ai avatar

/mermaid-skill

@72ee04b

Generate Mermaid diagrams (.mmd) and export to PNG/SVG/PDF using mmdc CLI or Kroki API. USE THIS SKILL when user mentions diagram, flowchart, sequence diagram, class diagram, ER diagram, state machine, architecture, visualize, git graph, 画图, 架构图, 流程图, 时序图, 类图, ER图, 甘特图, 状态机. PROACTIVELY USE when explaining ANY system with 3+ components, API flows, authentication sequences, class hierarchies, database schemas, or state machines. Supports 17+ diagram types with fully automatic layout.

Use this Skill: https://skilld.dev/gh/agents365-ai/365-skills/mermaid-skill

This session only. Nothing lands on disk.

referenceSEQUENCE.md

≈417 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Sequence Diagram Syntax

Basic Structure

sequenceDiagram
  participant C as Client
  participant G as API Gateway
  participant A as Auth Service
  participant D as Database

  C->>G: POST /login
  G->>A: validate(credentials)
  A->>D: query user
  D-->>A: user record
  A-->>G: 200 OK + token
  G-->>C: {token: "..."}

Participants

Declare in desired left-to-right order:

sequenceDiagram
  participant A as Alice
  participant B as Bob
  actor U as User
  • participant — box shape
  • actor — stick figure

Arrow Types

Syntax Style Use for
->> Solid arrow Sync request
-->> Dashed arrow Response
-x Solid with X Async (fire & forget)
--x Dashed with X Async response
-) Open arrow Async message

Activation Boxes

sequenceDiagram
  participant C as Client
  participant S as Server

  C->>+S: request
  S-->>-C: response

Or explicit:

sequenceDiagram
  C->>S: request
  activate S
  S-->>C: response
  deactivate S

Notes

sequenceDiagram
  participant A
  participant B

  Note left of A: Left note
  Note right of B: Right note
  Note over A,B: Spanning note

Loops and Conditionals

sequenceDiagram
  participant C as Client
  participant S as Server

  loop Every 5 seconds
    C->>S: heartbeat
  end

  alt success
    S-->>C: 200 OK
  else failure
    S-->>C: 500 Error
  end

  opt optional step
    C->>S: extra call
  end

Parallel Execution

sequenceDiagram
  par Task A
    A->>B: do A
  and Task B
    A->>C: do B
  end

Source: SKILL.md on GitHub

1 warning17d3 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill is safe to use but involves external network communication with kroki.io to validate or render diagrams, and it runs standard command-line tools locally.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: MEDIUM · 1 issue

Signed by skilld at 72ee04b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 11 hours ago.

Activeupdated 3 weeks ago
homepage
https://github.com/Agents365-ai/365-skills
version
1.3.0

README badge

README badge for agents365-ai/365-skills/mermaid-skill