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.

referenceFLOWCHART.md

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

Flowchart Syntax

Basic Structure

flowchart TD
  A[Client] --> B[API Gateway]
  B --> C[Auth Service]
  B --> D[Order Service]
  D --> E[(Order DB)]
  C --> F[(User DB)]

  subgraph Services
    C
    D
  end

Direction

Keyword Direction
TD / TB Top to bottom
LR Left to right
RL Right to left
BT Bottom to top

Node Shapes

Syntax Shape Use for
[text] Rectangle Default nodes
(text) Rounded rectangle Processes
{text} Diamond Decisions
[(text)] Cylinder Databases
[[text]] Subroutine External calls
((text)) Circle Start/end points
>text] Flag Async events
{{text}} Hexagon Preparation steps
A@{ shape: datastore, label: "DB" } Datastore (v11.15+) Data persistence (top/bottom borders only)

Arrow Types

Syntax Style Use for
--> Arrow Normal flow
--- Line Connection (no direction)
-.-> Dashed arrow Optional/async
==> Thick arrow Important flow
--x X end Termination
--o Circle end Reference

Labels on Arrows

flowchart LR
  A -->|yes| B
  A -->|no| C
  B -->|"with quotes"| D

Subgraphs

flowchart TD
  subgraph "Frontend Layer"
    A[Web App]
    B[Mobile App]
  end

  subgraph "Backend Layer"
    C[API Server]
    D[Worker]
  end

  A & B --> C
  C --> D

Special Characters

Wrap in quotes for special characters:

flowchart LR
  A["Node: with colon"]
  B["Node (with parens)"]
  A --> B

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