Agent skill

Mermaid Visualizer

by kv0906 in kv0906/pm-kit

Transform text content into professional Mermaid diagrams for presentations and documentation.

MITAuto-check passedDevelopment

Install Mermaid Visualizer

skills CLI
$ npx skills add kv0906/pm-kit --skill mermaid-visualizer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install kv0906/pm-kit mermaid-visualizer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/kv0906/pm-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/mermaid-visualizer .claude/skills/mermaid-visualizer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mermaid-visualizer
GitHub stars
138
Used in
2 other repos
Token cost
~2.2k tokens
SKILL.md length
780 words
Files
2 (incl. references)
Skills in repo
26
Repo updated
First seen
Licence
MIT

At a glance

Transform text content into professional Mermaid diagrams for presentations and documentation.

  • Works in 6 steps: Process Flow (graph TB/LR) → Circular Flow (graph TD with circular… → Comparison Diagram (graph TB with… → …
  • Users ask to visualize concepts
  • SKILL.md covers Overview, Quick Start, Diagram Types and Critical Syntax Rules, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Mermaid Visualizer is an agent skill from kv0906/pm-kit. 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.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/syntax-rules.md`).

It sits in Development, covering Diagrams. It works with Mermaid. The repository describes itself as: AI-augmented PM workspace for Coding Agents — daily standups, decisions, blockers, docs, and sprint reviews as markdown skills. The licence is MIT.

When your agent uses it

  • Users ask to visualize concepts
  • Create flowcharts
  • Make diagrams from text

Example prompts

  • “/mermaid-visualizer”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Process Flow (graph TB/LR)
  2. Circular Flow (graph TD with circular layout)
  3. Comparison Diagram (graph TB with parallel paths)
  4. Mindmap
  5. Sequence Diagram
  6. State Diagram

What it can do on your machine

Read from SKILL.md and the folder at commit 2cb5d9f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are mermaid).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mermaid Visualizer loads about 2.2k tokens when it runs, and up to ~4.7k if it reads all its reference files. Until then it costs about 80 tokens; SKILL.md has 780 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~80
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from kv0906/pm-kit at commit 2cb5d9f, republished under its MIT licence (© kv0906). 780 words, ~2,197 tokens.

Download SKILL.mdSave it as .claude/skills/mermaid-visualizer/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
mermaid-visualizer
description
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.

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

Show full SKILL.md (349 more words)Show less

Configuration Options

All diagrams accept these parameters:

Layout:

  • direction: "vertical" (TB), "horizontal" (LR), "right-to-left" (RL), "bottom-to-top" (BT)
  • aspect: "portrait" (default), "landscape" (wide), "square"

Detail Level:

  • simple: Core elements only, minimal labels
  • standard: Balanced detail with key descriptions (default)
  • detailed: Full annotations, explanations, and metadata
  • presentation: Optimized for slides (larger text, fewer details)

Style:

  • minimal: Monochrome, clean lines
  • professional: Semantic colors, clear hierarchy (default)
  • colorful: Vibrant colors, high contrast
  • academic: Formal styling for papers/documentation

Additional Options:

  • show_legend: true/false - Include color/symbol legend
  • numbered: true/false - Add sequence numbers to steps
  • title: string - Add diagram title

Example Usage Patterns

Pattern 1: Basic request

User: "Visualize the software development lifecycle"
Response: [Analyze → Choose graph TB → Generate with standard detail]

Pattern 2: With configuration

User: "Create a horizontal flowchart of our sales process with lots of detail"
Response: [Analyze → Choose graph LR → Generate with detailed level]

Pattern 3: Comparison

User: "Compare traditional AI vs AI agents"
Response: [Analyze → Choose comparison layout → Generate with contrasting styles]

Workflow

  1. Understand the content

    • Identify main concepts, entities, and relationships
    • Determine hierarchy or sequence
    • Note any comparisons or contrasts
  2. Select diagram type

    • Match content structure to diagram type
    • Consider user's presentation context
    • Default to process flow if ambiguous
  3. Choose configuration

    • Apply user-specified options
    • Use sensible defaults for unspecified options
    • Optimize for readability
  4. Generate Mermaid code

    • Follow all syntax rules strictly
    • Use semantic naming (descriptive IDs)
    • Apply consistent styling
    • Test for common errors:
      • No "number. space" patterns in node text
      • All subgraphs use ID["display name"] format
      • All node references use IDs not display names
  5. Output with context

    • Wrap in ```mermaid code fence
    • Add brief explanation of diagram structure
    • Mention rendering compatibility (Obsidian, GitHub, etc.)
    • Offer to adjust or create variations

Color Scheme Defaults

Standard professional palette:

  • Green (#d3f9d8/#2f9e44): Input, perception, start states
  • Red (#ffe3e3/#c92a2a): Planning, decision points
  • Purple (#e5dbff/#5f3dc4): Processing, reasoning
  • Orange (#ffe8cc/#d9480f): Actions, tool usage
  • Cyan (#c5f6fa/#0c8599): Output, execution, results
  • Yellow (#fff4e6/#e67700): Storage, memory, data
  • Pink (#f3d9fa/#862e9c): Learning, optimization
  • Blue (#e7f5ff/#1971c2): Metadata, definitions, titles
  • Gray (#f8f9fa/#868e96): Neutral elements, traditional systems

Common Patterns

Swimlane Pattern (Grouping)
mermaid
graph TB
    subgraph core["Core Process"]
        A --> B --> C
    end
    subgraph support["Supporting Systems"]
        D
        E
    end
    core -.-> support
Feedback Loop Pattern
mermaid
graph TB
    A[Start] --> B[Process]
    B --> C[End]
    C -.->|Feedback| A
Hub and Spoke Pattern
mermaid
graph TB
    Central[Hub]
    A[Spoke 1] --> Central
    B[Spoke 2] --> Central
    C[Spoke 3] --> Central

Quality Checklist

Before outputting, verify:

  • No "number. space" patterns in any node text
  • All subgraphs use proper ID syntax
  • All arrows use correct syntax (-->, -.->)
  • Colors applied consistently
  • Layout direction specified
  • Style declarations present
  • No ambiguous node references
  • Compatible with Obsidian/GitHub renderers

References

For detailed syntax rules and troubleshooting, see:

© kv0906, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in .claude/skills/mermaid-visualizer of kv0906/pm-kit.

  • SKILL.md
  • references/syntax-rules.md

Open the folder on GitHubat commit 2cb5d9f

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in kv0906/pm-kit, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Mermaid Visualizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mermaid Visualizer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mermaid Visualizer this skillkv0906/pm-kit1382 repos~2.2kAutomated safety check: PassMIT
Archify Diagramstt-a1i/archify81k—~2.9kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design48k1 repos~7.6kAutomated safety check: PassMIT
Draw.io Diagram StudioAgents365-ai/drawio-skill10k—~2.4kAutomated safety check: NotesMIT
Pretty Mermaid Rendererimxv/Pretty-mermaid-skills1.5k—~2kAutomated safety check: PassMIT
Archify Diagram BuilderUnclecheng-li/AI_Animation1.5k2 repos~4.1kAutomated safety check: PassMIT

Similar skills

  • Archify Diagrams

    tt-a1i/archify

    Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.

    81k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    48k GitHub starsUsed in 1 repo~7.6k tokens
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated 8 days ago
    DevelopmentAuto-check: notes
  • Pretty Mermaid Renderer

    imxv/Pretty-mermaid-skills

    Writes and renders Mermaid diagrams as themed SVG, PNG or terminal ASCII and Unicode art with a bundled Node.js CLI that needs no browser.

    1.5k GitHub stars~2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Archify Diagram Builder

    Unclecheng-li/AI_Animation

    Builds validated architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone interactive HTML from a small JSON spec, with optional motion and image export.

    1.5k GitHub starsUsed in 2 repos~4.1k tokens
    DevelopmentAuto-check passed
  • Mermaid

    WH-2099/mermaid-skill

    Generate Mermaid diagrams from user requirements. An agent skill from WH-2099/mermaid-skill.

    288 GitHub starsUsed in 4 repos~958 tokens
    DevelopmentAuto-check passed

More from kv0906/pm-kit

All 26 skills in this repo
  • Gws

    kv0906/pm-kit

    This skill should be used when the user asks to "set up gws", "install Google Workspace CLI", "connect Gmail to Claude", "manage Google Drive from terminal", "send email from CLI", "check my…

    138 GitHub stars~1.6k tokensUpdated 3 mo ago
    Auto-check passed
  • Jira

    kv0906/pm-kit

    Jira integration via acli CLI. An agent skill from kv0906/pm-kit.

    138 GitHub stars~4.2k tokensUpdated 3 mo ago
    Auto-check: notes
  • Professional Excalidraw diagram generation expert that creates complete, valid .excalidraw.json files based on user descriptions.

    138 GitHub stars~3k tokensUpdated 3 mo ago
    Auto-check passed
  • Ask

    kv0906/pm-kit

    Fast vault Q&A — quick lookups, decision history, blocker status, doc search.

    138 GitHub stars~781 tokensUpdated 3 mo ago
    Auto-check passed
  • Block

    kv0906/pm-kit

    Flag a blocker with severity, owner, and due date. An agent skill from kv0906/pm-kit.

    138 GitHub stars~466 tokensUpdated 3 mo ago
    Auto-check: notes
  • Daily

    kv0906/pm-kit

    Log standup update with keyword detection. An agent skill from kv0906/pm-kit.

    138 GitHub stars~749 tokensUpdated 3 mo ago
    Auto-check passed

Works with

Categories

Questions about Mermaid Visualizer

What does Mermaid Visualizer do?

Transform text content into professional Mermaid diagrams for presentations and documentation. Mermaid Visualizer is an agent skill from kv0906/pm-kit. Transform text content into professional Mermaid diagrams for presentations and documentation.

When should I use Mermaid Visualizer?

Mermaid Visualizer fits situations like: users ask to visualize concepts; create flowcharts; make diagrams from text.

How do I install Mermaid Visualizer in Claude Code?

Run `npx skills add kv0906/pm-kit --skill mermaid-visualizer -a claude-code`. Or copy the skill folder (.claude/skills/mermaid-visualizer in kv0906/pm-kit) into .claude/skills/mermaid-visualizer in your project. Claude Code loads it when a task matches its description.

How do I install Mermaid Visualizer in Codex?

Run `npx skills add kv0906/pm-kit --skill mermaid-visualizer -a codex`. Or copy the skill folder (.claude/skills/mermaid-visualizer in kv0906/pm-kit) into .agents/skills/mermaid-visualizer in your project. Codex loads it when a task matches its description.

Can I use Mermaid Visualizer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kv0906/pm-kit --skill mermaid-visualizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mermaid-visualizer, .gemini/skills/mermaid-visualizer, .github/skills/mermaid-visualizer and .opencode/skills/mermaid-visualizer in your project.

What does Mermaid Visualizer need to run?

SKILL.md names no scripts, command-line tools or credentials: Mermaid Visualizer is instructions for the agent only.

Does Mermaid Visualizer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Mermaid Visualizer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Mermaid Visualizer use?

Mermaid Visualizer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mermaid Visualizer use?

About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.5k tokens, read only when the agent opens those files.

What are the alternatives to Mermaid Visualizer?

Skills that share tags, products or a category with Mermaid Visualizer: Archify Diagrams (tt-a1i/archify, 81k stars), Diagram Design (cathrynlavery/diagram-design, 48k stars), Draw.io Diagram Studio (Agents365-ai/drawio-skill, 10k stars) and Pretty Mermaid Renderer (imxv/Pretty-mermaid-skills, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mermaid Visualizer?

kv0906 (a GitHub user) maintains it in kv0906/pm-kit, which has 138 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on June 29, 2026.

Source: kv0906/pm-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.