Create and embed Mermaid diagrams in Markdown files for visualizing documentation, features, architecture, workflows, and processes. Use when asked to "add a diagram", "create a flowchart", "visualize the workflow", "show the architecture", or when documentation needs visual enhancement. Supports flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, Gantt charts, pie charts, and more.
Luscii0 스타2026. 1. 21.
직업
카테고리
디자인
스킬 내용
Create visual diagrams directly in Markdown files using Mermaid syntax. Diagrams render automatically on GitHub, in VS Code, and many other Markdown viewers.
When to Use This Skill
User asks to "add a diagram", "create a chart", "visualize", or "show graphically"
Documentation needs visual representation of workflows, processes, or architecture
Feature files or ADRs would benefit from visual diagrams
Explaining complex logic flows, state machines, or relationships
Creating documentation for system architecture or data models
Visualizing timelines, schedules, or project plans
Supported Diagram Types
Type
Use For
Example Triggers
Flowchart
Processes, decision trees, workflows
"show the flow", "decision logic"
Sequence Diagram
Interactions, API calls, message flows
"show the sequence", "API interaction"
관련 스킬
Class Diagram
Object structures, relationships
"class structure", "data model"
State Diagram
State machines, transitions
"state transitions", "lifecycle"
Entity Relationship
Database schemas, data models
"database schema", "ER diagram"
Gantt Chart
Timelines, project schedules
"timeline", "project schedule"
Pie Chart
Proportions, distributions
"distribution", "breakdown"
Git Graph
Git branching strategies
"git workflow", "branching strategy"
Mindmap
Hierarchical concepts
"concept map", "hierarchy"
Timeline
Historical events, milestones
"history", "milestones"
Quadrant Chart
2D categorization
"prioritization", "quadrants"
User Journey
User experiences, flows
"user flow", "journey map"
Creating Mermaid Diagrams
Basic Syntax
Wrap Mermaid code in fenced code blocks with mermaid language identifier:
```mermaid
<diagram-type>
<diagram-content>
```
Flowchart Example
```mermaid
flowchart TD
Start([Start]) --> Input[Get User Input]
Input --> Validate{Valid?}
Validate -->|Yes| Process[Process Data]
Validate -->|No| Error[Show Error]
Process --> Save[(Save to DB)]
Save --> End([End])
Error --> Input
```
Sequence Diagram Example
```mermaid
sequenceDiagram
participant User
participant API
participant Database
User->>API: POST /create
API->>Database: INSERT query
Database-->>API: Success
API-->>User: 201 Created
```
Class Diagram Example
```mermaid
classDiagram
class Module {
+String name
+String version
+deploy()
+validate()
}
class Resource {
+String id
+Map tags
}
Module --> Resource : creates
```
Limit nodes: 10-15 nodes per diagram (split complex flows)
Use clear labels: Short, descriptive text
Avoid clutter: One main concept per diagram
Use subgraphs: Group related elements
3. Use Consistent Styling
```mermaid
flowchart LR
style Start fill:#90EE90
style End fill:#FFB6C1
style Error fill:#FFA07A
Start --> Process
Process --> End
Process --> Error
```
4. Add Descriptive Context
Always add explanatory text before and/or after diagrams:
## Deployment Workflow
The following diagram shows the complete deployment process from code commit to production:
```mermaid
flowchart TD
Commit --> CI
CI --> Test
Test --> Deploy
```
After deployment, the system automatically runs health checks and monitoring.
Use shorter labels or adjust direction (TD, LR, etc.)
Links not clickable
Use click syntax: click Node "https://url"
Advanced Features
Clickable Nodes
```mermaid
flowchart LR
A[Documentation] --> B[Examples]
click A "https://github.com/repo/docs" "View Docs"
click B "https://github.com/repo/examples" "View Examples"
```
Styling and Themes
```mermaid
%%{init: {'theme':'forest'}}%%
flowchart TD
A --> B
```
Available themes: default, forest, dark, neutral, base
Subgraphs for Organization
```mermaid
flowchart TB
subgraph "Frontend"
UI[User Interface]
API[API Client]
end
subgraph "Backend"
Server[API Server]
DB[(Database)]
end
UI --> API
API --> Server
Server --> DB
```