Skip to content
Skillpedia
Interfaces (UI/UX)5.5k Β· #14841

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.md

Copy 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

Use this skill to help me: https://github.com/breferrari/obsidian-mind/blob/main/.claude/skills/mermaid-visualizer/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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:

  1. Analyze the content - Identify key concepts, relationships, and flow
  2. Choose diagram type - Select the most appropriate visualization (see Diagram Types below)
  3. Select configuration - Determine layout, detail level, and styling
  4. Generate diagram - Create syntactically correct Mermaid code
  5. 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills