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.

referenceARCHITECTURE.md

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

Architecture Diagram Syntax

Architecture diagrams use architecture-beta and are well suited for cloud and CI/CD service layouts.

Basic Structure

architecture-beta
  group api(cloud)[API]

  service gateway(internet)[Gateway] in api
  service db(database)[Database] in api
  service cache(disk)[Cache] in api

  gateway:R --> L:db
  gateway:B --> T:cache

Building Blocks

Groups

group {group id}({icon name})[{title}] (in {parent id})?

Services

service {service id}({icon name})[{title}] (in {parent id})?

Junctions

junction {junction id} (in {parent id})?

Edges

The edge syntax is:

{serviceId}{{group}}?:{T|B|L|R} {<}?--{>}? {T|B|L|R}:{serviceId}{{group}}?
  • Use L, R, T, or B to choose the side of each service.
  • Add < and/or > to point the arrow head in the desired direction.
  • Use the optional {group} modifier when connecting a service through its containing group.

Example

architecture-beta
  group public_api(cloud)[Public API]
  group private_api(cloud)[Private API] in public_api

  service subnet(server)[Subnet] in private_api
  service gateway(internet)[Gateway] in public_api

  gateway:R --> L:subnet{group}

Icons

Default icons include cloud, database, disk, internet, and server.

You can also use icon packs or custom icons by following Mermaid's icon registration configuration.

Example: AWS Icons

architecture-beta
    group api(logos:aws-lambda)[API]

    service db(logos:aws-aurora)[Database] in api
    service disk1(logos:aws-glacier)[Storage] in api
    service disk2(logos:aws-s3)[Storage] in api
    service server(logos:aws-ec2)[Server] in api

    db:L -- R:server
    disk1:T -- B:server
    disk2:T -- B:db

logos reference: https://icon-sets.iconify.design/logos

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