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.

referenceUSECASE.md

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

Use Case Diagram Syntax

Use case diagrams (UML) show how actors interact with a system and its use cases. Available as usecase-beta (v11.17+).

Basic Structure

usecase-beta
direction LR
actor Customer("Customer")
systemBoundary "Order system"
  Checkout("Place order")
end
Customer --> Checkout
  • usecase-beta — required first line
  • direction — TD, TB, BT, LR, or RL
  • Actors: actor Name("Display label") — stick figure by default
  • Use cases: Name("label") = ellipse, Name[label] = rectangle
  • systemBoundary id["Title"] ... end — groups actors/use cases (default rect, or @{ type: package })

Actor Variants

usecase-beta
actor Normal("Normal actor")
actor Hollow("Hollow actor")@{ type: hollow }
actor Awesome("Awesome actor")@{ type: awesome }
actor Icon("Icon actor")@{ icon: "fa:user" }
actor B2B("Sales agent")@{ business: true } <<Employee>>
Normal --> Manage
  • type: hollow | awesome (icon actors via icon: "fa:name")
  • business: true adds the conventional business slash
  • <<stereotype>> adds a visible stereotype above the label

Relationships

usecase-beta
actor Admin
actor Person
Checkout
Payment
ApplyCoupon
Admin --|> Person                %% generalization
Checkout ..> : include Payment   %% include
ApplyCoupon ..> : extend Checkout %% extend
User --> Start                   %% plain association
User --o Start                   %% circle (aggregation-like)
User --x Finish                  %% cross
Operator Meaning
-->, --, <-- Association
--o, o-- Circle-end association
--x, x-- Cross-end association
..> : include X Include (source includes target)
..> : extend X Extend (source extends target)
--|> Generalization (specialized → general)

Notes and JSON Tables

usecase-beta
note for Login "`Requires an **active session**`"
actor User
Login("Sign in")
User --> Login

json Payload@{
  "status": "pending",
  "items": [{ "name": "Book" }]
}:::data
Inspect --> Payload
  • note for <target> "text" — attaches to an actor or use case
  • json <id>@{ ... } — renders a JSON object as a table node
  • Nested values use paths: address.city, items[0].name

Styling

Classes and direct styles work like other Mermaid types: classDef, class, style, or ::: suffix on declarations. Use %% for comments; // and # are NOT comments in usecase diagrams.

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 14 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