mermaid-diagramming
Obsidianで、フローチャートやシーケンス図などを用いて、プロセスやシステム構成、ワークフローといった構造的な関係性を視覚的に表現するMermaid記法による図を作成するSkill。
📜 元の英語説明(参考)
Create Mermaid diagrams in Obsidian including flowcharts, sequence diagrams, class diagrams, and more. Use when visualizing processes, system architectures, workflows, or any structured relationships in Obsidian notes.
🇯🇵 日本人クリエイター向け解説
Obsidianで、フローチャートやシーケンス図などを用いて、プロセスやシステム構成、ワークフローといった構造的な関係性を視覚的に表現するMermaid記法による図を作成するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o mermaid-diagramming.zip https://jpskill.com/download/17544.zip && unzip -o mermaid-diagramming.zip && rm mermaid-diagramming.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17544.zip -OutFile "$d\mermaid-diagramming.zip"; Expand-Archive "$d\mermaid-diagramming.zip" -DestinationPath $d -Force; ri "$d\mermaid-diagramming.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
mermaid-diagramming.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
mermaid-diagrammingフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Obsidian における Mermaid ダイアグラム
Obsidian は Mermaid を組み込みでサポートしています。mermaid 言語識別子を持つフェンスで囲まれたコードブロックを使用してください。
一般的な構文(スタイル、コメント、テーマ)については、reference.md を参照してください。
⚠️ Obsidian 固有の制約
レンダリングの違い: Obsidian の Mermaid バージョンは mermaid.js のリリースに遅れている場合があります。最先端の機能の一部は動作しない可能性があります。
テーマの相互作用: ダイアグラムの色は Obsidian のテーマに適応します。テーマ間で一貫した外観を得るには、明示的なスタイルを使用してください。
パフォーマンス: 非常に大きなダイアグラム(50 個以上のノード)は、レンダリングを遅くする可能性があります。必要に応じて複数のダイアグラムに分割してください。
エクスポート: PDF エクスポートはダイアグラムを画像に変換します。外部共有のためには、PNG/SVG としてキャプチャしてください。
JavaScript なし: クリックイベントと JavaScript コールバックは、セキュリティのために無効になっています。
ダイアグラム選択ガイド
| ユースケース | ダイアグラムの種類 | キーワード |
|---|---|---|
| プロセスフロー、決定木 | フローチャート | flowchart |
| API 呼び出し、メッセージパッシング | シーケンス | sequenceDiagram |
| OOP 設計、関係 | クラス | classDiagram |
| プロジェクトのタイムライン、スケジュール | ガント | gantt |
| ステートマシン、ライフサイクル | ステート | stateDiagram-v2 |
| Git ブランチ戦略 | Gitgraph | gitGraph |
| ブレインストーミング、階層 | マインドマップ | mindmap |
| 割合、パーセンテージ | 円グラフ | pie |
| データベーススキーマ、エンティティ | ER ダイアグラム | erDiagram |
| ユーザーエクスペリエンスの手順、満足度 | ユーザー旅程 | journey |
| 歴史的イベント、マイルストーン | タイムライン | timeline |
| 優先順位マトリックス、2D ポジショニング | 象限図 | quadrantChart |
| フローの可視化、比例バンド | サンキー図 | sankey-beta |
| 数値データの可視化 | XY チャート | xychart-beta |
| 正確な要素の配置、レイアウト | ブロック図 | block-beta |
| クラウドサービス、サービス関係 | アーキテクチャ | architecture-beta |
クイックスタートの例
フローチャート
flowchart TD
A[Start] --> B{Decision}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
C --> E[End]
D --> E
キー構文:
- 方向:
TD(上から下),LR(左から右),BT,RL - 図形:
[rect],(rounded),{diamond},[(cylinder)],((circle)) - 矢印:
-->,-.->(点線),==>(太線) - ラベル:
-->|text|または-- text -->
詳細については、flowchart.md を参照してください。
シーケンス図
sequenceDiagram
participant C as Client
participant S as Server
participant D as Database
C->>S: HTTP Request
activate S
S->>D: Query
D-->>S: Result
S-->>C: Response
deactivate S
キー構文:
- 矢印:
->>(同期),-->>(応答),-)(非同期) - アクティベーション:
activate/deactivateまたは+/-サフィックス - 制御:
loop,alt/else,opt,par/and,critical - 注釈:
Note right of A: text,Note over A,B: text
詳細については、sequence.md を参照してください。
クラス図
classDiagram
class Animal {
+String name
+int age
+makeSound() void
}
class Dog {
+fetch() void
}
Animal <|-- Dog : extends
キー構文:
- 可視性:
+public,-private,#protected,~package - 関係:
<|--継承,*--コンポジション,o--集約,-->関連 - メソッド:
+method(args) returnType
詳細については、class-diagram.md を参照してください。
ガントチャート
gantt
title Project Timeline
dateFormat YYYY-MM-DD
section Planning
Requirements :a1, 2024-01-01, 7d
Design :a2, after a1, 5d
section Development
Implementation :2024-01-15, 14d
Testing :7d
キー構文:
dateFormat: 日付形式 (YYYY-MM-DD など)- タスク:
name :id, start, durationまたはname :after id, duration - 修飾子:
done,active,crit,milestone
詳細については、gantt.md を参照してください。
ステート図
stateDiagram-v2
[*] --> Idle
Idle --> Processing : start
Processing --> Success : complete
Processing --> Error : fail
Success --> [*]
Error --> Idle : retry
キー構文:
- 開始/終了:
[*] - 遷移:
State1 --> State2 : event - コンポジット:
state Name { ... } - フォーク/ジョイン:
state fork_name <<fork>>,<<join>>
詳細については、state.md を参照してください。
Gitgraph
gitGraph
commit id: "init"
branch develop
checkout develop
commit id: "feat-1"
commit id: "feat-2"
checkout main
merge develop id: "v1.0" tag: "release"
キー構文:
commit: コミットを追加、オプションでid:,tag:,type:branch name: ブランチを作成checkout name: ブランチを切り替えmerge name: ブランチをマージ
詳細については、gitgraph.md を参照してください。
マインドマップ
mindmap
root((Project))
Frontend
React
TypeScript
Backend
Node.js
PostgreSQL
DevOps
Docker
CI/CD
キー構文:
- インデントは階層を定義します
- 図形:
root((circle)),(rounded),[square],))cloud(( - 4 スペースまたはタブインデントを使用します
詳細については、mindmap.md を参照してください。
円グラフ
pie showData
title Browser Market Share
"Chrome" : 65
"Safari" : 19
"Firefox" : 8
"Edge" : 5
"Other" : 3
キー構文:
title: オプションのグラフタイトルshowData: セグメントに値を表示- 形式:
"Label" : value
詳細については、pie.md を参照してください。
ER ダイアグラム
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
CUSTOMER {
int id PK
string email UK
string name
}
キー構文:
- エンティティ:
ENTITY_NAME - 属性:
type name [PK/FK/UK] - カーディナリティ:
||--o{(一対多),||--||(一対一) - 関係:
ENTITY1 REL ENTITY2 : label
詳細については、er-diagram.md を参照してください。
ユーザー旅程
journey
title Customer Support
section Contact
Submit ti
(原文がここで切り詰められています) 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Mermaid Diagramming in Obsidian
Obsidian has built-in Mermaid support. Use fenced code blocks with mermaid language identifier.
For common syntax (styling, comments, themes), see reference.md.
⚠️ Obsidian-Specific Constraints
Rendering Differences: Obsidian's Mermaid version may lag behind mermaid.js releases. Some cutting-edge features may not work.
Theme Interaction: Diagram colors adapt to Obsidian theme. Use explicit styles for consistent appearance across themes.
Performance: Very large diagrams (50+ nodes) may slow down rendering. Split into multiple diagrams if needed.
Export: PDF export converts diagrams to images. For external sharing, capture as PNG/SVG.
No JavaScript: Click events and JavaScript callbacks are disabled for security.
Diagram Selection Guide
| Use Case | Diagram Type | Keyword |
|---|---|---|
| Process flow, decision trees | Flowchart | flowchart |
| API calls, message passing | Sequence | sequenceDiagram |
| OOP design, relationships | Class | classDiagram |
| Project timeline, scheduling | Gantt | gantt |
| State machine, lifecycle | State | stateDiagram-v2 |
| Git branching strategy | Gitgraph | gitGraph |
| Brainstorming, hierarchies | Mindmap | mindmap |
| Proportions, percentages | Pie Chart | pie |
| Database schema, entities | ER Diagram | erDiagram |
| User experience steps, satisfaction | User Journey | journey |
| Historical events, milestones | Timeline | timeline |
| Priority matrix, 2D positioning | Quadrant Chart | quadrantChart |
| Flow visualization, proportional bands | Sankey Diagram | sankey-beta |
| Numerical data visualization | XY Chart | xychart-beta |
| Precise element positioning, layouts | Block Diagram | block-beta |
| Cloud services, service relationships | Architecture | architecture-beta |
Quick Start Examples
Flowchart
flowchart TD
A[Start] --> B{Decision}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
C --> E[End]
D --> E
Key syntax:
- Direction:
TD(top-down),LR(left-right),BT,RL - Shapes:
[rect],(rounded),{diamond},[(cylinder)],((circle)) - Arrows:
-->,-.->(dotted),==>(thick) - Labels:
-->|text|or-- text -->
For details: flowchart.md
Sequence Diagram
sequenceDiagram
participant C as Client
participant S as Server
participant D as Database
C->>S: HTTP Request
activate S
S->>D: Query
D-->>S: Result
S-->>C: Response
deactivate S
Key syntax:
- Arrows:
->>(sync),-->>(response),-)(async) - Activation:
activate/deactivateor+/-suffix - Control:
loop,alt/else,opt,par/and,critical - Notes:
Note right of A: text,Note over A,B: text
For details: sequence.md
Class Diagram
classDiagram
class Animal {
+String name
+int age
+makeSound() void
}
class Dog {
+fetch() void
}
Animal <|-- Dog : extends
Key syntax:
- Visibility:
+public,-private,#protected,~package - Relations:
<|--inheritance,*--composition,o--aggregation,-->association - Methods:
+method(args) returnType
For details: class-diagram.md
Gantt Chart
gantt
title Project Timeline
dateFormat YYYY-MM-DD
section Planning
Requirements :a1, 2024-01-01, 7d
Design :a2, after a1, 5d
section Development
Implementation :2024-01-15, 14d
Testing :7d
Key syntax:
dateFormat: Date format (YYYY-MM-DD, etc.)- Tasks:
name :id, start, durationorname :after id, duration - Modifiers:
done,active,crit,milestone
For details: gantt.md
State Diagram
stateDiagram-v2
[*] --> Idle
Idle --> Processing : start
Processing --> Success : complete
Processing --> Error : fail
Success --> [*]
Error --> Idle : retry
Key syntax:
- Start/End:
[*] - Transition:
State1 --> State2 : event - Composite:
state Name { ... } - Fork/Join:
state fork_name <<fork>>,<<join>>
For details: state.md
Gitgraph
gitGraph
commit id: "init"
branch develop
checkout develop
commit id: "feat-1"
commit id: "feat-2"
checkout main
merge develop id: "v1.0" tag: "release"
Key syntax:
commit: Add commit, optionalid:,tag:,type:branch name: Create branchcheckout name: Switch branchmerge name: Merge branch
For details: gitgraph.md
Mindmap
mindmap
root((Project))
Frontend
React
TypeScript
Backend
Node.js
PostgreSQL
DevOps
Docker
CI/CD
Key syntax:
- Indentation defines hierarchy
- Shapes:
root((circle)),(rounded),[square],))cloud(( - Use 4-space or tab indentation
For details: mindmap.md
Pie Chart
pie showData
title Browser Market Share
"Chrome" : 65
"Safari" : 19
"Firefox" : 8
"Edge" : 5
"Other" : 3
Key syntax:
title: Optional chart titleshowData: Display values on segments- Format:
"Label" : value
For details: pie.md
ER Diagram
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
CUSTOMER {
int id PK
string email UK
string name
}
Key syntax:
- Entities:
ENTITY_NAME - Attributes:
type name [PK/FK/UK] - Cardinality:
||--o{(one to many),||--||(one to one) - Relationship:
ENTITY1 REL ENTITY2 : label
For details: er-diagram.md
User Journey
journey
title Customer Support
section Contact
Submit ticket: 2: Customer
Receive notice: 4: Agent
section Resolution
Troubleshoot issue: 3: Agent
Confirm solution: 5: Customer
Key syntax:
- Sections:
section name - Tasks:
Task name: score: actor - Score: 1-5 (1 = unsatisfied, 5 = satisfied)
- Actors: User roles involved
For details: journey.md
Timeline
timeline
title Product Roadmap
section 2023
Q1 2023 : MVP launch
Q4 2023 : v1.0 release
section 2024
Q2 2024 : Major features
Q4 2024 : v2.0
Key syntax:
- Time periods:
period : event - Sections: Group related periods
- Multiple events:
period : event1 : event2 - Flexible format: Years, months, quarters, or custom text
For details: timeline.md
Quadrant Chart
quadrantChart
title Feature Prioritization
x-axis Effort --> Value
y-axis Complexity --> Impact
Dark Mode: [0.4, 0.7]
Search: [0.6, 0.8]
Export PDF: [0.7, 0.6]
Fix UI Bug: [0.2, 0.3]
Key syntax:
- Axes:
x-axis label --> labelandy-axis label --> label - Points:
Name: [x, y](coordinates 0.0-1.0) - Quadrants: Auto-divided at 0.5 on both axes
For details: quadrant-chart.md
Sankey Diagram
sankey-beta
A,B,10
A,C,15
B,D,8
C,D,22
Key syntax:
- CSV format:
source, target, value - Three columns required
- Values are numeric (flow magnitude)
- Nodes auto-created from sources/targets
For details: sankey.md
XY Chart
xychart-beta
title "Sales Data"
x-axis [Jan, Feb, Mar, Apr, May]
y-axis "Revenue" 0 --> 100
line [30, 45, 55, 70, 85]
Key syntax:
- Chart type:
xychart-betaorxychart-beta horizontal - X-axis:
[categories]ormin --> max - Y-axis:
"label" min --> max - Series:
line [values]orbar [values]
For details: xychart.md
Block Diagram
block-beta
columns 2
A["Frontend"]:1
B["Backend"]:1
C["Database"]:2
style A fill:#e3f2fd,stroke:#1565c0,color:#0d47a1
style B fill:#f3e5f5,stroke:#7b1fa2,color:#4a148c
style C fill:#e8f5e9,stroke:#2e7d32,color:#1b5e20
Key syntax:
- Blocks:
ID["Label"]:SPAN- Each block on new line - Columns:
columns N- Define layout width - Styling:
style ID fill:#hex,stroke:#hex,color:#hex - Spans:
:Nsuffix - How many columns block occupies
For details: block.md
Architecture Diagram
architecture-beta
group Cloud(cloud)[Cloud Infrastructure]
service web(server)[Web Server] in Cloud
service api(server)[API Server] in Cloud
service db(database)[Database]
web:R --> L:api
api:R --> L:db
Key syntax:
- Groups:
group {id}({icon})[{label}]- Organize services - Services:
service {id}({icon})[{label}] (in {parent})?- Available icons: server, database, cloud, disk, internet - Nesting:
in {parent_id}- Place service/group inside parent group - Connections:
{id1}:{pos} {arrow} {pos}:{id2}- Position: L(eft), R(ight), T(op), B(ottom) - Arrows:
-->(right),<--(left),--(both)
For details: architecture.md
Common Patterns
Adding Styles
flowchart LR
A[Normal] --> B[Styled]
style B fill:#f96,stroke:#333,stroke-width:2px
Using Classes
flowchart LR
A:::highlight --> B --> C:::highlight
classDef highlight fill:#ff0,stroke:#f00,stroke-width:2px
Comments
flowchart TD
%% This is a comment
A --> B
Reference
For complete documentation on common features:
- reference.md - Styling, themes, comments, directives
For diagram-specific guides:
- flowchart.md - Node shapes, links, subgraphs
- sequence.md - Messages, activation, control flow
- class-diagram.md - Classes, relationships
- gantt.md - Tasks, dependencies, milestones
- state.md - States, transitions, composite states
- gitgraph.md - Commits, branches, merges
- mindmap.md - Hierarchies, node shapes
- pie.md - Proportional data
- er-diagram.md - Entities, attributes, relationships (Session 1)
- journey.md - User journeys, satisfaction scores (Session 1)
- timeline.md - Events, milestones, time periods (Session 1)
- quadrant-chart.md - Priority matrix, 2D positioning (Session 2)
- sankey.md - Flow visualization, proportional bands (Session 2)
- xychart.md - Numerical data visualization (Session 2)
- block.md - Element positioning, multi-column layouts (Session 3)
- architecture.md - Cloud services, service relationships (Session 3)