mermaid-visualizer
What it does
This skill teaches an agent how to convert written content into Mermaid diagram code. It avoids common syntax mistakes, so the diagram displays correctly in tools that support Mermaid.
When to use it
- βWhen a user wants a flowchart or process diagram made from text.
- βWhen a user wants a system architecture or comparison drawn as a diagram for documentation.
- βWhen a user needs a mind map or diagram that displays in GitHub or Obsidian.
Skill link
https://github.com/breferrari/obsidian-mind/blob/main/.claude/skills/mermaid-visualizer/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βMake a Mermaid flowchart of our order process from this description so I can paste it into GitHub.β
5 new skills a week. 1 minute to read.
How it works
The agent identifies the key steps and relationships, picks a diagram type, and writes the Mermaid code in a code block. It follows rules that prevent common errors so the diagram renders correctly.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Mermaid Visualizer
Overview
Convert text content into clean, professional Mermaid diagrams optimized for presentations and documentation. Automatically handles common syntax pitfalls (list syntax conflicts, subgraph naming, spacing issues) to ensure diagrams render correctly in Obsidian, GitHub, and other Mermaid-compatible platforms.
Quick Start
When creating a Mermaid diagram:
- Analyze the content - Identify key concepts, relationships, and flow
- Choose diagram type - Select the most appropriate visualization (see Diagram Types below)
- Select configuration - Determine layout, detail level, and styling
- Generate diagram - Create syntactically correct Mermaid code
- Output in markdown - Wrap in proper code fence with optional explanation
Default assumptions:
- Vertical layout (TB) unless horizontal requested
- Medium detail level (balanced between simplicity and information)
- Professional color scheme with semantic colors
- Obsidian/GitHub compatible syntax
Diagram Types
1. Process Flow (graph TB/LR)
Best for: Workflows, decision trees, sequential processes, AI agent architectures
Use when: Content describes steps, stages, or a sequence of actions
Key features:
- Swimlanes via subgraph for grouping related steps
- Arrow labels for transitions
- Feedback loops and branches
- Color-coded stages
Configuration options:
layout: "vertical" (TB), "horizontal" (LR)detail: "simple" (core steps only), "standard" (with descriptions), "detailed" (with annotations)style: "minimal", "professional", "colorful"
2. Circular Flow (graph TD with circular layout)
Best for: Cyclic processes, continuous improvement loops, agent feedback systems
Use when: Content emphasizes iteration, feedback, or circular relationships
Key features:
- Central hub with radiating elements
- Curved feedback arrows
- Clear cycle indicators
3. Comparison Diagram (graph TB with parallel paths)
Best for: Before/after comparisons, A vs B analysis, traditional vs modern systems
Use when: Content contrasts two or more approaches or systems
Key features:
- Side-by-side layout
- Central comparison node
- Clear differentiation via color/style
4. Mindmap
Best for: Hierarchical concepts, knowledge organization, topic breakdowns
Use when: Content is hierarchical with clear parent-child relationships
Key features:
- Radial tree structure
- Multiple levels of nesting
- Clean visual hierarchy
5. Sequence Diagram
Best for: Interactions between components, API calls, message flows
Use when: Content involves communication between actors/systems over time
Key features:
- Timeline-based layout
- Clear actor separation
- Activation boxes for processes
6. State Diagram
Best for: System states, status transitions, lifecycle stages
Use when: Content describes states and transitions between them
Key features:
- Clear state nodes
- Labeled transitions
- Start and end states
Critical Syntax Rules
Always follow these rules to prevent parsing errors:
Rule 1: Avoid List Syntax Conflicts
β WRONG: [1. Perception] β Triggers "Unsupported markdown: list"
β
RIGHT: [1.Perception] β Remove space after period
β
RIGHT: [β Perception] β Use circled numbers (β β‘β’β£β€β₯β¦β§β¨β©)
β
RIGHT: [(1) Perception] β Use parentheses
β
RIGHT: [Step 1: Perception] β Use "Step" prefix
Rule 2: Subgraph Naming
β WRONG: subgraph AI Agent Core β Space in name without quotes
β
RIGHT: subgraph agent["AI Agent Core"] β Use ID with display name
β
RIGHT: subgraph agent β Use simple ID only
Rule 3: Node References
β WRONG: Title --> AI Agent Core β Reference display name directly
β
RIGHT: Title --> agent β Reference subgraph ID
Rule 4: Special Characters in Node Text
β
Use quotes for text with spaces: ["Text with spaces"]
β
Escape or avoid: quotation marks β use γγ instead
β
Escape or avoid: parentheses β use γγ instead
β
Line breaks in circle nodes only: ((Text<br/>Break))
Rule 5: Arrow Types
-->solid arrow-.->dashed arrow (for supporting systems, optional paths)==>thick arrow (for emphasis)~~~invisible link (for layout only)
For complete syntax reference and edge cases, see references/syntax-rules.md
Configuration Options
All diagrams accept these parameters:
Layout:
- `
FAQ
Which diagram types are supported?
The skill covers process flows, system architectures, comparisons, mind maps, and more.
Where does the diagram display?
The skill says the syntax works in Obsidian, GitHub, and other Mermaid-compatible tools.
What is the default layout?
It is vertical, unless the user asks for a horizontal layout.
Details
Original description by the author
Transform text content into professional Mermaid diagrams for presentations and documentation. Use when users ask to visualize concepts, create flowcharts, or make diagrams from text. Supports process flows, system architectures, comparisons, mindmaps, and more with built-in syntax error prevention.
repo: breferrari/obsidian-mind
Popularity
- GitHub stars
- 5.5k
- Ranking position
- #14841
- License
- MIT
- Updated
- 10/17/2026
Comments
- β¦
More skills from this repository
excalidraw-diagram
5.5kHelps your agent turn text into Excalidraw diagrams, saved as Obsidian notes, standard Excalidraw files, or animated versions.
qmd
5.5kHelps your agent search an Obsidian vault by meaning before opening files, returning relevant snippets to save time and context.
Similar skills
canvas
394kLets your agent show a hosted visual widget on a connected Mac panel, then hide the panel or move it to another page.
control-ui
394kHelps your agent organize and troubleshoot the OpenClaw Control UI, including sessions, dashboards, and connected Gateways.
diagram-maker
394kHelps your agent create clear diagrams as SVG, HTML, or editable Excalidraw files for processes, system architecture, and whiteboard sketches.