Obsidian Viz
by @0xcjl
Generate Obsidian-compatible visualization files (Excalidraw / Mermaid / Canvas). Supports text descriptions and image inputs, outputs editable diagrams in O...
clawhub install obsidian-vizπ About This Skill
name: obsidian-viz description: Generate Obsidian-compatible visualization files (Excalidraw / Mermaid / Canvas). Supports text descriptions and image inputs, outputs editable diagrams in Obsidian or standard formats.
Obsidian Viz Skill
Generate Obsidian-compatible visualization files from text descriptions or image inputs.
Processing Flow
Step 0 - Input Type Detection
If user sends an image:
1. Load modules/image-reader.md
2. Execute image type recognition and content extraction
3. Output structured Markdown summary
4. If image contains diagrams, proceed to Step 1
5. If image is text/screenshot only, end process
If user provides text description:
Step 1 - Tool Selection
Load modules/chart-router.md and select the most appropriate tool based on content type:
Step 2 - Format Specification Loading
Load the corresponding reference file based on the selected tool:
mermaid β references/mermaid.mdexcalidraw β references/excalidraw.mdcanvas β references/canvas.mdImportant: Must read the corresponding reference file before generating any content.
Step 3 - Output Format Selection
Standard Format (when user explicitly requests "standard format" or "excalidraw.com"):
.mmd file.excalidraw file.html fileObsidian Format (default):
.md file (with mermaid code block).md file (with Excalidraw JSON).canvas fileStep 4 - Generate File
1. Strictly follow format specifications in reference file
2. Output to ~/.openclaw/workspace/outputs/
3. Explain to user how to open the file in Obsidian
Usage Instructions
Excalidraw Files
Obsidian Mode (.md):
Standard Mode (.excalidraw):
Mermaid Files
Obsidian Mode (.md):
Standard Mode (.mmd):
Canvas Files
Obsidian Mode (.canvas):
Standard Mode (.html):
Chart Type Quick Reference
| Need | Recommended Tool | Chart Type | |------|---------|---------| | Workflow / CI-CD | Excalidraw or Mermaid | flowchart | | API calls / Message interaction | Mermaid | sequenceDiagram | | Organization / System hierarchy | Excalidraw | hierarchy | | Concept divergence / Brainstorming | Canvas or Excalidraw | mindmap | | State machine / Lifecycle | Mermaid | stateDiagram-v2 | | Project timeline | Excalidraw | timeline | | A vs B comparison | Excalidraw | comparison | | Priority matrix | Excalidraw | matrix | | Large knowledge network | Canvas | free-layout | | Animation demo | Excalidraw | animation mode | | Database design | Mermaid | erDiagram | | Class diagram / Object relationships | Mermaid | classDiagram | | Project schedule | Mermaid | gantt |
Notes
1. Must load reference first: Skipping this step will produce incorrectly formatted files
2. Chinese support: All tools natively support Chinese, no escaping needed
3. File path: Output files are uniformly placed in ~/.openclaw/workspace/outputs/ directory
4. Fallback strategy: If primary tool fails, automatically try alternative tool
5. Node count limit: For more than 30 nodes, recommend user to split or use Canvas
π Tips & Best Practices
1. Must load reference first: Skipping this step will produce incorrectly formatted files
2. Chinese support: All tools natively support Chinese, no escaping needed
3. File path: Output files are uniformly placed in ~/.openclaw/workspace/outputs/ directory
4. Fallback strategy: If primary tool fails, automatically try alternative tool
5. Node count limit: For more than 30 nodes, recommend user to split or use Canvas