agentleFS
jonathan-vellajonathan-vella/bmit-2026/.github/skills/mermaid/SKILL.md

mermaid

Skill3 starsChanged 8 months agoMITArchived repositoryView on GitHub

Mermaid diagram generation for inline markdown documentation: flowcharts, sequence diagrams, Gantt charts, class diagrams, state diagrams, ER diagrams, and architecture visualizations. USE FOR: inline markdown diagrams, flowcharts, sequence diagrams, Gantt charts, state diagrams, ER diagrams, Azure resource visualization. DO NOT USE FOR: architecture diagrams with Azure icons (use drawio), WAF/cost charts (use python-diagrams), Draw.io diagrams (use drawio).

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ansible, plantuml and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • KubementatSkill

    ansible

    Ansible automation reference for playbooks, roles, inventory, variables, and modules. Includes Proxmox VE and Docker integration via community.general and community.docker collections. Use when writing playbooks, troubleshooting Ansible runs, or designing automation workflows. Triggers: ansible, playbook, inventory, role, task, handler, vars, jinja2, galaxy, proxmox_kvm, proxmox_lxc, docker_container, docker_compose.

    Also in 3 projects that use this

  • xenodiumSkill

    plantuml

    This skill should be used when the user invokes "/plantuml" to create a diagram from the current context using PlantUML and output the resulting image path.

    Also in 3 projects that use this

  • luischanciSkill

    proofread

    Run the proofreading protocol on manuscript files. Checks grammar, typos, overflow, consistency, and academic writing quality. Produces a report without editing files.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 2 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 28 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use graph TB (top-to-bottom) for vertical layouts.

    line 39
  2. Very specific:

    Use graph LR (left-to-right) for horizontal layouts.

    line 40
  3. Distinctive:

    Use subgraphs for logical grouping:

    line 41
  4. Very specific:

    Use classDef for consistent node styling:

    line 119
  5. Very specific:

    Use fenced code blocks with mermaid language:

    line 151
  6. Very specific:

    DO:: Use fenced code blocks with mermaid language tag · Include theme directives for dark mode · Use graph TB for vertical layouts · Use …

    line 162
  7. Very specific:

    DON'T: Use Mermaid for WAF/cost charts (use python-diagrams) · Use Mermaid for primary architecture diagrams with Azure icons (use drawio) …

    line 167
  8. Distinctive:

    Use inline Mermaid for diagrams that need icon embedding.

    line 170
  9. Very specific:

    Does NOT: generate Draw.io architecture diagrams · produce Python charts · generate Bicep/Terraform · create ADRs · deploy resources · …

    line 174

“Common” is measured: kept by at least 6 in 10 of the 28 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Mermaid Diagrams

Skill for generating Mermaid diagrams embedded in markdown fences. Mermaid is used for inline documentation diagrams — flowcharts, sequences, state machines, ER diagrams, and Gantt charts. For architecture diagrams with Azure service icons, use the drawio skill instead.

When to Use Mermaid

  • Inline diagrams inside markdown documents (.md, .mdx)
  • Quick flowcharts for operational runbooks and process docs
  • Sequence diagrams for auth flows and API interactions
  • Gantt charts for project plans and maintenance schedules
  • State diagrams for lifecycle documentation
  • ER diagrams for data model overviews
  • Azure resource relationship diagrams from live queries

Syntax Reference

Flowcharts

graph TB
    A["Step 1"] --> B{"Decision"}
    B -->|"Yes"| C["Action"]
    B -->|"No"| D["Skip"]

Use graph TB (top-to-bottom) for vertical layouts. Use graph LR (left-to-right) for horizontal layouts. Use subgraphs for logical grouping:

graph TB
    subgraph "Resource Group"
        APP["App Service"]
        SQL["SQL Database"]
    end
    APP --> SQL

Sequence Diagrams

sequenceDiagram
    participant Client
    participant API
    participant DB
    Client->>API: Request
    API->>DB: Query
    DB-->>API: Result
    API-->>Client: Response

Gantt Charts

gantt
    title Deployment Schedule
    dateFormat YYYY-MM-DD
    section Phase 1
        Task A :a1, 2026-01-01, 7d
        Task B :a2, after a1, 5d

State Diagrams

stateDiagram-v2
    [*] --> Pending
    Pending --> Active: Approve
    Active --> Suspended: Suspend
    Suspended --> Active: Resume
    Active --> [*]: Complete

ER Diagrams

erDiagram
    CUSTOMER ||--o{ ORDER : places
    ORDER ||--|{ LINE_ITEM : contains
    PRODUCT ||--o{ LINE_ITEM : "ordered in"

Theming (Dark Mode Compatible)

Include a neutral theme directive for dark mode compatibility:

%%{
  init: {
    'theme': 'base',
    'themeVariables': {
      'primaryColor': '#ffffff',
      'primaryTextColor': '#333333',
      'primaryBorderColor': '#e91e63',
      'lineColor': '#475569',
      'fontFamily': 'ui-sans-serif, system-ui, -apple-system, sans-serif'
    }
  }
}%%
graph LR
    A --> B

Node Styling

Use classDef for consistent node styling:

graph TB
    classDef default fill:#ffffff,stroke:#e91e63,stroke-width:2px,color:#1f2937,rx:8px,ry:8px;
    classDef gate fill:#ffffff,stroke:#3b82f6,stroke-width:2px,color:#1f2937,rx:8px,ry:8px;

    S1["Step 1"]
    G1{{"Gate"}}:::gate

Azure Resource Visualization

For visualizing live Azure resource groups as Mermaid diagrams, use the azure-resource-visualizer skill which outputs resource relationship diagrams in Mermaid format. That skill handles Azure Resource Graph queries, resource discovery, and relationship mapping.

Resource Diagram Conventions

  • Group by layer: Network, Compute, Data, Security, Monitoring
  • Include resource details in node labels (use <br/> for line breaks)
  • Label all connections descriptively
  • Use subgraphs for logical grouping
  • Connection types:
    • --> for data flow or dependencies
    • -.-> for optional/conditional connections
    • ==> for critical/primary paths

Astro / Starlight Integration

In this project, Mermaid is rendered client-side by rehype-mermaid-lite. Use fenced code blocks with mermaid language:

```mermaid
graph LR
  A --> B
```

Guardrails

DO: Use fenced code blocks with mermaid language tag · Include theme directives for dark mode · Use graph TB for vertical layouts · Use subgraphs for grouping · Use descriptive connection labels · Validate syntax before committing.

DON'T: Use Mermaid for WAF/cost charts (use python-diagrams) · Use Mermaid for primary architecture diagrams with Azure icons (use drawio) · Omit theme directives · Create overly complex diagrams that don't render well · Use inline Mermaid for diagrams that need icon embedding.

Scope Exclusions

Does NOT: generate Draw.io architecture diagrams · produce Python charts · generate Bicep/Terraform · create ADRs · deploy resources · embed Azure service icons (use drawio skill).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.