Agent Skills: mermaid-diagrams

>

UncategorizedID: rstacruz/agentic-toolkit/mermaid-diagrams

Install this agent skill to your local

pnpm dlx add-skill https://github.com/rstacruz/agentic-toolkit/tree/HEAD/skill/atk-extras/mermaid-diagrams

Skill Files

Browse the full folder contents for mermaid-diagrams.

Download Skill

Loading file tree…

skill/atk-extras/mermaid-diagrams/SKILL.md

Skill Metadata

Name
mermaid-diagrams
Description
>

Mermaid diagram guidelines

  • Quote the labels. Doing so avoids issues with special characters like / and [ and more.

    graph TD
    %% avoid:
    A[app/[workspace]/layout.tsx] -->|imports| B[generateDescription]
    
    %% ok:
    C["app/[workspace]/layout.tsx"] -->|imports| D["generateDescription"]
    
  • Don't start labels with -. These are interpreted as markdown. Use an alternate bullet instead.

    %% avoid:
    B["- Title here"]
    B["* Title here"]
    
    %% ok:
    B["· Title here"]
    
  • Use <br> for line breaks.

    %% avoid:
    B["Long title here \n subtext here"]
    %% ok:
    B["Long title here <br> subtext here"]
    
  • Use double quotes and backticks "text" to enclose Markdown text. Consider ** (bold) and _ (italic) for flowchart labels. Note that this is only supported in flowchart mode.

    flowchart LR
    A["`**hello** _world`"]
    
  • Consider using different shapes when appropriate.

    flowchart TD
      id1(Title here) %% rounded edges
      id2([Title here]) %% pill
      id2[(Title here)] %% cylinder (database)
      A@{ shape: cloud, label: "Cloud" }
      B@{ shape: lean-r, label: "Skewed rectangle (Input/Output)" }
      C@{ shape: lean-l, label: "Skewed rectangle (Output/Input)" }
      D@{ shape: processes, label: "Stacked rectangles (Multiple processes)" }