Skip to main content

obsidian-mermaid

Create Obsidian-compatible Mermaid diagrams. Prefer square layouts (TB + subgraph LR), avoid markdown in labels. Use when creating flowcharts, sequence diagrams, or any Mermaid diagrams in markdown files.

Zur Installation springen

Quellinformationen

Repository
jykim/claude-obsidian-skills
Letzte Quellaktivitรคt
28. Dezember 2025 um 00:43
Erkannte Sprache von SKILL.md
Mehrsprachig
Sterne
50
Forks
10

Installationsoptionen

StandardmรครŸig ist der Prompt ausgewรคhlt, der zuerst die Quelle prรผft. Sie kรถnnen zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prรผfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich fรผr eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen ยท Schreibgeschรผtzte Vorschau
name
obsidian-mermaid
description
Create Obsidian-compatible Mermaid diagrams. Prefer square layouts (TB + subgraph LR), avoid markdown in labels. Use when creating flowcharts, sequence diagrams, or any Mermaid diagrams in markdown files.
allowed-tools
["Read","Edit"]
license
MIT
# Obsidian Mermaid Diagrams Create Mermaid diagrams that render correctly in Obsidian and publish without issues. ## When to Use This Skill Activate when you need to: - Create flowcharts, sequence diagrams, ER diagrams - Convert ASCII art to Mermaid - Fix Mermaid rendering errors in Obsidian ## Core Principle: Simplicity First > **๋‹ค์ด์–ด๊ทธ๋žจ์€ ํ•œ๋ˆˆ์— ๋“ค์–ด์™€์•ผ ํ•œ๋‹ค** ๋ณต์žกํ•œ ๋‹ค์ด์–ด๊ทธ๋žจ์€ ์ฝ๊ธฐ ์–ด๋ ต๋‹ค. ํ•ญ์ƒ ์ตœ์†Œํ•œ์˜ ๋…ธ๋“œ์™€ ์—ฐ๊ฒฐ๋กœ ํ•ต์‹ฌ๋งŒ ํ‘œํ˜„ํ•˜๋ผ. ### Node Minimization **Before** (9๊ฐœ ๋…ธ๋“œ): ```mermaid flowchart LR A[์ˆ˜์ง‘] --> B[์ •๋ฆฌ] --> C[๋ณด๊ด€] D[๋ชฉํ‘œ] --> E[ํ•™์Šต] --> F[์‹คํ–‰] --> G[์ธก์ •] --> H[๋‹ฌ์„ฑ] ``` **After** (2๊ฐœ ๋…ธ๋“œ - ์ˆœ์ฐจ ํ๋ฆ„์„ ๋…ธ๋“œ ๋‚ด ํ…์ŠคํŠธ๋กœ): ```mermaid flowchart LR A[์ˆ˜์ง‘ โ†’ ์ •๋ฆฌ โ†’ ๋ณด๊ด€] B[๋ชฉํ‘œ โ†’ ํ•™์Šต โ†’ ์‹คํ–‰ โ†’ ๋‹ฌ์„ฑ] ``` ### Connection Minimization - ํ•ต์‹ฌ ํ๋ฆ„๋งŒ ํ‘œํ˜„, ์„ธ๋ถ€์‚ฌํ•ญ์€ ๋ณธ๋ฌธ์—์„œ ์„ค๋ช… - ๋…ธ๋“œ 5๊ฐœ ์ดํ•˜, ์—ฐ๊ฒฐ์„  ๊ต์ฐจ ๊ธˆ์ง€ - ๋ณต์žกํ•œ ๊ด€๊ณ„๋Š” ์—ฌ๋Ÿฌ ๊ฐœ์˜ ๋‹จ์ˆœํ•œ ๋‹ค์ด์–ด๊ทธ๋žจ์œผ๋กœ ๋ถ„๋ฆฌ ### Table vs Mermaid ์„ ํƒ | ํ˜•์‹ | ์šฉ๋„ | ์˜ˆ์‹œ | |------|------|------| | **ํ…Œ์ด๋ธ”** | ์†์„ฑ-๊ฐ’ ๋งคํ•‘, ๋น„๊ต, ์˜ต์…˜ | ์—๋„ˆ์ง€ ๋ ˆ๋ฒจ๋ณ„ ์ž‘์—… | | **Mermaid** | ํ๋ฆ„, ํ”„๋กœ์„ธ์Šค, ํ”ผ๋“œ๋ฐฑ ๋ฃจํ”„ | ์ž…๋ ฅโ†’์ฒ˜๋ฆฌโ†’์ถœ๋ ฅ | | **์ธ๋ผ์ธ** | ๋‹จ์ˆœ ์ˆœ์ฐจ ํ๋ฆ„ | `A โ†’ B โ†’ C` | **์›์น™**: ๊ฐ™์€ ์ •๋ณด๋ฅผ ๋” ์ปดํŒฉํŠธํ•˜๊ฒŒ ํ‘œํ˜„ํ•˜๋Š” ํ˜•์‹ ์„ ํƒ --- ## Critical Rules ### 1. NO Markdown in Labels **Common Errors**: ``` Node["1. First"] โ†’ "Unsupported markdown: list" Node["Text<br/>More"] โ†’ "Unsupported markdown: heading" Node["## Header"] โ†’ "Unsupported markdown: heading" ``` **Correct**: ``` Node[First] Node[Text] ``` **Rule**: Keep labels plain text. Move complex descriptions outside the diagram. ### 2. Prefer Square Layout (์ •์‚ฌ๊ฐํ˜• ๋ ˆ์ด์•„์›ƒ) **Problem**: `flowchart LR`์€ ๋„ˆ๋ฌด ๋„“๊ณ , `flowchart TB`๋Š” ๋„ˆ๋ฌด ๊ธธ์–ด์ง„๋‹ค. **Solution**: TB + ๋‚ด๋ถ€ LR ์กฐํ•ฉ์œผ๋กœ ์ •์‚ฌ๊ฐํ˜•์— ๊ฐ€๊นŒ์šด ๋ ˆ์ด์•„์›ƒ ๋งŒ๋“ค๊ธฐ ```mermaid flowchart TB subgraph Layer1["๋ ˆ์ด์–ด 1"] direction LR A[ํ•ญ๋ชฉA] ~~~ B[ํ•ญ๋ชฉB] ~~~ C[ํ•ญ๋ชฉC] end subgraph Layer2["๋ ˆ์ด์–ด 2"] direction LR D[ํ•ญ๋ชฉD] ~~~ E[ํ•ญ๋ชฉE] end Layer1 --> Layer2 ``` **ํŒจํ„ด**: - `flowchart TB`: ์ „์ฒด ํ๋ฆ„์€ ์œ„โ†’์•„๋ž˜ - `direction LR`: ๊ฐ subgraph ๋‚ด๋ถ€๋Š” ๊ฐ€๋กœ ๋ฐฐ์น˜ - `~~~`: ๋ณด์ด์ง€ ์•Š๋Š” ์—ฐ๊ฒฐ (ํ™”์‚ดํ‘œ ์—†์ด ์ •๋ ฌ์šฉ) **Rule**: ์„ธ๋กœ๋กœ ๋„ˆ๋ฌด ๊ธธ์–ด์ง€๋ฉด subgraph + `direction LR` ์‚ฌ์šฉ. ### 3. Keep Labels Short ```markdown โŒ Too long: Node["This is a very long description that will break layout"] โœ… Short and clear: Node[Short Label] ``` **Rule**: Labels should be under 15 characters. Add details in text below the diagram. ### 4. Avoid Special Characters in Subgraph Names ```markdown โŒ May cause issues: subgraph "1. Phase One" subgraph "Phase: Setup" โœ… Safe: subgraph Phase_One["Phase One"] subgraph Setup["Setup Phase"] ``` ## Good Examples ### Simple Flowchart ```mermaid flowchart TB A[Start] --> B{Decision} B -->|Yes| C[Action] B -->|No| D[End] ``` ### Process Flow with Details Outside ```mermaid flowchart TB Input[Input] --> Process[Process] Process --> Output[Output] ``` **Process Details**: - Input: User data from form - Process: Validation and transformation - Output: Saved to database ### Subgraph Example ```mermaid flowchart TB subgraph Frontend["Frontend"] UI[UI] --> API[API Call] end subgraph Backend["Backend"] Server[Server] --> DB[Database] end API --> Server ``` ## Bad Examples (Don't Do This) ### Markdown in Labels ```mermaid flowchart LR A["1. Start<br/>with details"] --> B{"2. Decision"} ``` This will show "Unsupported markdown" errors. ### Too Wide ```mermaid flowchart LR A[Very Long Process Name Here] --> B[Another Long Name] --> C[Yet Another] --> D[And More] ``` This gets cut off on mobile and narrow screens. ## Converting ASCII to Mermaid **ASCII Art**: ``` โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Start โ”‚โ”€โ”€โ”€โ”€โ†’โ”‚ End โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ ``` **Mermaid**: ```mermaid flowchart TB Start[Start] --> End[End] ``` ## Quality Checklist Before completing diagram creation: - [ ] No `<br/>` tags in node labels - [ ] No numbered list format (`1.`, `2.`) in labels - [ ] **์ •์‚ฌ๊ฐํ˜• ๋ ˆ์ด์•„์›ƒ**: TB + subgraph ๋‚ด LR ์กฐํ•ฉ ์‚ฌ์šฉ - [ ] All labels are short (under 15 characters) - [ ] Complex details moved to text outside diagram - [ ] No special characters in subgraph names - [ ] Tested rendering in Obsidian preview
Auf GitHub ansehen