From authoring
Create diagrams and visualizations using Mermaid syntax. Use when users request flowcharts, sequence diagrams, class diagrams, state diagrams, entity relationship diagrams, Gantt charts, pie charts, mindmaps, timelines, user journey maps, Git graphs, quadrant charts, or requirement diagrams. Also use when users want to visualize processes, workflows, systems, data structures, or relationships.
How this skill is triggered — by the user, by Claude, or both
Slash command
/authoring:mermaidThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create diagrams using Mermaid's text-based syntax. Mermaid converts text definitions into visual diagrams.
references/class-diagram.mdreferences/entity-relationship-diagram.mdreferences/flowchart.mdreferences/gantt-diagram.mdreferences/git-graph.mdreferences/mindmap.mdreferences/pie-chart.mdreferences/quadrant-chart.mdreferences/requirement-diagram.mdreferences/sequence-diagram.mdreferences/state-diagram.mdreferences/timeline.mdreferences/user-journey-diagram.mdCreate diagrams using Mermaid's text-based syntax. Mermaid converts text definitions into visual diagrams.
.mermaid file in /mnt/user-data/outputs/present_files to share the diagramMermaid supports these diagram types:
<diagram-type>
<diagram content>
Every diagram begins with its type declaration, followed by content definitions.
Use %% for line comments:
flowchart LR
%% This is a comment
A --> B
Words to wrap in quotes:
end - Can break flowcharts and sequence diagramsPatterns to avoid in comments:
%%{ and }%% together - Similar to directives, confuses parserAdd YAML frontmatter before diagram definition:
---
title: Diagram Title
config:
theme: forest
look: handDrawn
layout: elk
---
flowchart LR
A --> B
default - Standard Mermaid themeforest - Green color schemedark - Dark backgroundneutral - Minimal colorsbase - Clean, professionalclassic - Traditional Mermaid stylehandDrawn - Sketch-like, informal appearancedagre (default)
elk (advanced)
Configure ELK with:
config:
layout: elk
elk:
mergeEdges: true
nodePlacementStrategy: LINEAR_SEGMENTS
Node placement strategies:
SIMPLENETWORK_SIMPLEXLINEAR_SEGMENTSBRANDES_KOEPF (default)For detailed syntax of specific diagram types, read the appropriate reference file:
references/flowchart.mdreferences/sequence-diagram.mdreferences/class-diagram.mdreferences/state-diagram.mdreferences/entity-relationship-diagram.mdreferences/gantt-diagram.mdreferences/pie-chart.mdreferences/mindmap.mdreferences/timeline.mdreferences/user-journey-diagram.mdreferences/git-graph.mdreferences/quadrant-chart.mdreferences/requirement-diagram.mdflowchart LR
A[Start] --> B{Decision}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
C --> E[End]
D --> E
sequenceDiagram
participant A as Alice
participant B as Bob
A->>B: Hello Bob!
B->>A: Hello Alice!
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
/mnt/user-data/outputs/diagram.mermaidpresent_files to share with user---
title: System Architecture
config:
theme: neutral
look: handDrawn
layout: elk
---
flowchart TB
A[Client] --> B{Load Balancer}
B --> C[Web Server 1]
B --> D[Web Server 2]
C --> E[(Database)]
D --> E
This creates a hand-drawn style architecture diagram with ELK layout for optimal node placement.
npx claudepluginhub 46ki75/claude-plugins --plugin authoringProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.