ClaudeCodeMod

All shelves / Mods / Review

mermaid-mod

By ngothanhluc

mermaid-mod is a Claude Code review mod by ngothanhluc.

Draws mermaid blocks in Claude's replies as Unicode diagrams in place, and leaves the stored message as Mermaid source.

Draws

Install

The marketplace name is claude-mermaid-mod.

In Claude Code
/plugin marketplace add ngothanhluc/claude-mermaid-mod
/plugin install mermaid-mod@claude-mermaid-mod
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.0
License
MIT
Repo stars
6
Last change
2026-10-12

What it can reach

  • Draws in the session

Claude Code 2.1.287 or later. By default the diagram is drawn above its code block, so the source stays readable and copyable, and /mermaid diagram draws it in place of the block. The author says the mod changes only what the terminal draws: the stored message keeps its Mermaid source, and ctrl+o shows it. It renders flowcharts, state, class, ER, sequence, pie, mindmap, timeline, and gitGraph diagrams, colored from your Claude Code theme. It keeps the original code block for an unsupported type such as gantt, for a diagram wider than the terminal, which redraws when you resize, and for a source with errors, with a warning line under it. /mermaid streaming, the default, draws a block while it is still being written, /mermaid final waits for the closing fence, and /mermaid off draws nothing. Settings are saved for every session on the machine.

The marketplace, claude-mermaid-mod, also lists show-me, a skill by HumanLayer pulled from its repo, which has Claude explain the current topic with diagrams, often as Mermaid. This row does not install it. Drawing the diagrams in Claude's replies is why this page files it under review. loom-mermaid, by Yassimba, draws Mermaid in replies as colored character art, with a band above the prompt while a reply streams. show-me, by arasovic, draws each mermaid diagram in an answer as a picture in a pane once the turn ends. This one draws Unicode diagrams in place, with the source above or replaced. The author says it is a port of the Mermaid rendering in the pi coding agent, drawn by lovely-mermaid.

Demo

Claude Code drawing a mermaid flowchart above its source
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/mermaid
  • ui.renderDraws into the sessionAssistantMessage

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /mermaidDraw ```mermaid blocks as diagrams: off, final or streaming; both or diagram

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
ngothanhluc
Category
Review
Marketplace
claude-mermaid-mod
Repo
ngothanhluc/claude-mermaid-mod
Version
0.1.0
License
MIT
Repo stars
6
Last change
2026-10-12
Language
TypeScript
Files
59

Other mods in Review

accountable-reviewwyeworksShows a review run on the status line, then publishes a review agenda for a pull request as a private Claude Artifact page.repowiserepowise-devDraws margin notes under edits, a change review under the answer, and a /lens pane of what an edit reaches.hal-grammar-checkvintaDraws grammar corrections above the prompt while you type, with explanations in your language: English by default, or Chinese, Japanese, or Korean.sc-modskylesnowschwartzDraws mermaid diagrams in replies as text, jump buttons above the prompt, and a copy button under each reply.glamour-darkTickloopDraws the model's text replies in glamour's default dark style.tool-linesTickloopDraws each tool call as one compact line and hides its result block.reply-viewYrzheDraws pasted images, the last reply's media and links, and a copy button above the prompt.translate-viewYrzheTranslates each prompt before sending it, and draws the reply's translation in a side pane.cc-image-viewGGGODLINDraws thumbnails of the images you paste, above the prompt and under the prompts you sent.paste-previewalan890104Draws thumbnails of the images you paste, and opens an editor so Claude gets the marked-up picture.claude-jev0x7067Holds a commandHas Jev judge each edit against your instruction files and cite a broken rule by file and line, and sends a thin subagent brief back once.explain-asSumit189Draws a format band above the prompt and a pane of Claude's answer as a diagram, a page, or a video.
All 145 in Review