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.

referenceTHEMES.md

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

Theme & Styling Presets

Drop the directive on the first line of the .mmd. Use a preset instead of inventing classDef tweaks ad hoc during review loops.

Light (brand-neutral)

%%{init: {'theme':'base', 'themeVariables': {'primaryColor':'#eef2ff','primaryBorderColor':'#4f46e5','primaryTextColor':'#1e1b4b','lineColor':'#64748b','fontFamily':'Inter, sans-serif'}}}%%

Dark

%%{init: {'theme':'dark', 'themeVariables': {'fontFamily':'Inter, sans-serif'}}}%%

Export with --backgroundColor dark (or #1e293b) so the PNG blends into dark pages.

Print / documentation

%%{init: {'theme':'neutral'}}%%

Also available as mmdc --theme neutral (no directive needed). Best contrast for printed PDFs.

Highlighting specific nodes (flowchart)

classDef hot fill:#fee2e2,stroke:#dc2626,stroke-width:2px
classDef done fill:#dcfce7,stroke:#16a34a
class C,R hot
class D,Del done

Use hot for the path under discussion, done for settled states. Two classDefs max — more turns into noise.

Gotchas

  • base is only valid inside a %%{init}%% directive — mmdc -t base is rejected (valid -t values: default | dark | neutral | forest).
  • The directive must be the first line; a blank line before it breaks parsing in some types.

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