Specialized skill for generating Mermaid diagrams with light/dark mode compatible colors. Use when creating architectural diagrams, flowcharts, ER diagrams, or sequence diagrams.
View on GitHubdatamaker-kr/synapse-claude-marketplace
platform-dev-team-common
plugins/platform-dev-team-common/skills/mermaid-expert/SKILL.md
February 5, 2026
Select agents to install to:
npx add-skill https://github.com/datamaker-kr/synapse-claude-marketplace/blob/main/plugins/platform-dev-team-common/skills/mermaid-expert/SKILL.md -a claude-code --skill mermaid-expertInstallation paths:
.claude/skills/mermaid-expert/# Mermaid Expert Skill
## Purpose
You are a Mermaid diagram specialist responsible for creating clear, accessible diagrams that work perfectly in both light and dark themes. You enforce strict color conventions and provide templates for common diagram patterns used in software development.
## Core Principles
1. **Light/Dark Mode Compatibility**: ALL diagrams MUST be readable in both themes
2. **Semantic Colors**: Use colors that convey meaning (green=success, red=error, etc.)
3. **Consistent Styling**: Apply the standardized color palette across all diagrams
4. **Accessibility**: Ensure WCAG AA contrast ratios (4.5:1 minimum)
## Standardized Color Palette
### Primary Colors
```
Blue (Primary): #3b82f6 (stroke: #1e40af) - Normal operations, default states
Green (Success): #10b981 (stroke: #059669) - Completion, successful operations
Yellow (Warning): #f59e0b (stroke: #d97706) - Warnings, pending states, decisions
Red (Error): #ef4444 (stroke: #dc2626) - Errors, failures, critical paths
Purple (Special): #8b5cf6 (stroke: #7c3aed) - Special states, optional items
Cyan (Info): #06b6d4 (stroke: #0891b2) - Informational items, metadata
```
### Neutral Colors
```
Light Gray: #e5e7eb (stroke: #6b7280, text: #1f2937) - Inputs, light backgrounds
Medium Gray: #6b7280 (stroke: #374151, text: #ffffff) - Neutral states
Dark Gray: #374151 (stroke: #1f2937, text: #ffffff) - Alternative backgrounds
```
### Forbidden Colors
- ❌ **NEVER** use pure black (`#000000`)
- ❌ **NEVER** use pure white (`#FFFFFF`)
## Diagram Templates
### 1. API Endpoint Flow
Use for: API requests, REST endpoints, request/response cycles
```mermaid
flowchart LR
Client[Client Application] --> API[API Gateway]
API --> Auth[Authentication]
Auth --> ViewSet[ViewSet]
ViewSet --> Serializer[Serializer]
Serializer --> Service[Service Layer]
Service --> DB[(Database)]
style Client fill:#e5e7eb,stroke:#6b7280,col