← スキル一覧に戻る

mermaid-diagram
by romain325
⭐ 0🍴 0📅 2026年1月23日
SKILL.md
name: mermaid-diagram description: Generate well-structured Mermaid diagrams for visual documentation. Use when designing systems, documenting workflows, creating architecture diagrams, or any task requiring visual representation of processes, relationships, or structures. Triggers include requests like "create a diagram", "visualize this", "show the flow", "draw the architecture", or when explaining complex systems that benefit from visual aids.
Mermaid Diagram
Generate proper, well-structured Mermaid diagrams for visual documentation and design presentations.
Diagram Selection
| Need | Diagram | Reference |
|---|---|---|
| Process flow, decisions | Flowchart | flowchart.md |
| API/service interactions | Sequence | sequence.md |
| Object-oriented design | Class | class.md |
| Database schema | ER Diagram | er.md |
| State machines, lifecycles | State | state.md |
| Software architecture (C4) | C4 | c4.md |
| Cloud/infrastructure | Architecture | architecture.md |
| Brainstorming, concepts | Mindmap | mindmap.md |
| Timelines, charts, git | Other | other-diagrams.md |
Quick Examples
Flowchart
flowchart TD
A[Start] --> B{Decision}
B -->|Yes| C[Action]
B -->|No| D[Other]
C --> E[End]
D --> E
Sequence
sequenceDiagram
Client->>+API: Request
API->>DB: Query
DB-->>API: Data
API-->>-Client: Response
Class
classDiagram
class Animal {
+String name
+makeSound()
}
Animal <|-- Dog
Animal <|-- Cat
ER
erDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ ITEM : contains
Best Practices
- Choose the right diagram - Match diagram type to what you're representing
- Keep it readable - Limit nodes, use clear labels, avoid crossing lines
- Use direction -
LRfor wide diagrams,TDfor tall ones - Group related items - Use subgraphs, boundaries, or namespaces
- Add context - Use notes and labels to explain non-obvious elements
- Style sparingly - Only highlight what needs attention
Output Format
Always wrap diagrams in fenced code blocks:
```mermaid
flowchart LR
A --> B
```
Consult the appropriate reference file for detailed syntax before generating complex diagrams.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です