.claude/skills/mermaid-chart/SKILL.md
Creates Mermaid diagrams (.mmd) and generates PNG images from them. Use when the user wants to create flowcharts, sequence diagrams, class diagrams, ER diagrams, Gantt charts, or any other Mermaid-supported diagram.
npx skillsauth add emaginebr/Peleja mermaid-chartInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a Mermaid diagram specialist. You create diagram files in Mermaid syntax (.mmd) and generate corresponding PNG images (.png) using the Mermaid CLI.
The user may provide a diagram description or type as argument: $ARGUMENTS
If no arguments are provided, ask the user what kind of diagram they need.
<name>.mmd — The Mermaid source file<name>.png — The rendered PNG imagedocs/ at the project rootuser-auth-flow.mmd, database-schema.mmd)Generate the PNG using the Mermaid CLI (mmdc):
npx -y @mermaid-js/mermaid-cli mmdc -i <input>.mmd -o <output>.png -b white
If PNG generation fails:
.mmd file.mmd file and inform the user that the PNG could not be generated, suggesting they use a Mermaid live editor or VS Code extension to render itCreate diagrams using any Mermaid-supported type:
flowchart TD/LR) — Process flows, decision treessequenceDiagram) — Interactions between componentsclassDiagram) — OOP class structureserDiagram) — Database entity relationshipsstateDiagram-v2) — State machinesgantt) — Project timelinespie) — Proportional datagitGraph) — Branch/merge visualizationmindmap) — Hierarchical ideastimeline) — Chronological eventsC4Context) — Software architecture (C4 model)block-beta) — Block-based layoutsauth[Authentication] not A[Authentication])%% for comments inside .mmd files.mmd file with valid Mermaid syntax%% Diagram: <descriptive title>
%% Type: <diagram type>
%% Generated: YYYY-MM-DD
<diagram content>
npx -y @mermaid-js/mermaid-cli mmdc -i docs/<name>.mmd -o docs/<name>.png -b white
.mmd syntax and retryReport to the user:
.mmd).png)User: "Create a login flow diagram"
Output docs/login-flow.mmd:
%% Diagram: User Login Flow
%% Type: Flowchart
%% Generated: 2026-03-11
flowchart TD
start([User visits login page]) --> input[Enter credentials]
input --> validate{Valid credentials?}
validate -->|Yes| mfa{MFA enabled?}
validate -->|No| error[Show error message]
error --> input
mfa -->|Yes| mfa_input[Enter MFA code]
mfa -->|No| success([Login successful])
mfa_input --> mfa_check{Valid code?}
mfa_check -->|Yes| success
mfa_check -->|No| mfa_error[Invalid code]
mfa_error --> mfa_input
User: "Create a database diagram for users and orders"
Output docs/users-orders-schema.mmd:
%% Diagram: Users and Orders Database Schema
%% Type: ER Diagram
%% Generated: 2026-03-11
erDiagram
USER ||--o{ ORDER : places
USER {
int id PK
string name
string email UK
datetime created_at
}
ORDER ||--|{ ORDER_ITEM : contains
ORDER {
int id PK
int user_id FK
decimal total
string status
datetime created_at
}
ORDER_ITEM {
int id PK
int order_id FK
int product_id FK
int quantity
decimal price
}
PRODUCT ||--o{ ORDER_ITEM : "is in"
PRODUCT {
int id PK
string name
decimal price
int stock
}
.mmd and .png files — never just onedocs/ directory unless the user specifies otherwise%% Diagram, %% Type, %% Generated) in every .mmd file.mmd file and inform the usertools
Guides how to integrate the zTools package for ChatGPT, DALL-E image generation, file upload (S3), slug generation, email sending, and document validation in a .NET 8 project. Use when the user wants to use AI features, upload files, generate slugs, send emails, or understand zTools integration.
documentation
Generates a comprehensive, standardized README.md for any project. Use when the user wants to create or regenerate a README file following the project's documentation standard.
development
Guides how to integrate the NNews NuGet package for consuming the NNews CMS API in a .NET 8 project. Use when the user wants to consume articles, categories, tags, images, or AI-powered content generation from the NNews API.
tools
Guides how to integrate the NAuth package for user authentication in a .NET 8 project. Use when the user wants to add authentication, configure NAuth, use IUserClient, or understand the NAuth authentication flow.