mermaid-draw
by Gal Elmalah · ★ 6 · updated 10 Oct 2026
Mermaid diagrams in Claude Code: every mermaid block Claude writes is drawn as box art, in colour, right where the fence was in the transcript. Needs function hooks (early access) and an interactive terminal.
Install
/plugin marketplace add galElmalah/claude-mods/plugin install mermaid-draw@gal-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startui.rendercommand.run- API calls
$.command.register$.store.get$.store.set$.ui.invalidate$.ui.log$.ui.resolve- Draws
AssistantMessage- Reach
- level 0 of 3 persists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/galElmalah/claude-mods
- Path in repo
claude-mermaid- Source commit
f7e8416the exact code the scan read- Author
- Gal Elmalah @galElmalah
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from galElmalah/claude-mods
prompt-queue
galElmalah/claude-mods
A prompt typed while Claude is working is held in a stack above the prompt instead of landing in the running turn, and sent once the turn ends. Reorder the stack, edit a row in place, send one first, remove one, flush the lot. Needs function hooks (early access) and an interactive terminal.