Merlive

Your Mermaid diagrams, placed by rule and made live.

Mermaid is the easy way to write a diagram and an odd way to look at one. Merlive keeps your Mermaid as the source, places every box by rule, and writes a page readers can step through, in your own colours. It is a skill for your coding agent. You say Merlive this document.

npx skills add victorsaly/merlive -g

For any agent that reads Agent Skills: Claude Code, Codex, Cursor, OpenCode. Needs Node 22 and nothing else. Get started

One block of Mermaid, drawn twice

Mermaid as it comes
A purchase order approval flow as Mermaid draws it: diamonds twice the size of the boxes, a main path that wanders from side to side, and a line from Revise order that climbs the whole height of the diagram
Merlive in this site’s colours, which it read itself
The same flow drawn by Merlive: the main path in one straight line, boxes of one size, and the way back to Revise order going round to one side

Nobody edited the Mermaid and nobody placed a box. The main path runs in one straight line, every box is one size, and the ways back go round the side at right angles. Open Merlive’s as the live page it wrote: pick a box to see only what it connects to, and walk the five steps its author wrote into the Mermaid.

See for yourself

Why not a theme

A theme changes what a diagram is coloured with. What is wrong with most Mermaid diagrams is where things are: a decision twice the size of the boxes round it, a main path that wanders, boxes of every size. No theme moves a box.

So Merlive places, by rules it checks before it writes anything. And it has no themes of its own to pick from either: it reads the colours of the site your diagrams will sit on, and holds them to two rules, so words can be read and kinds of box told apart. Why not a theme, and how it differs from the other ways to a better diagram.

What it draws

13 kinds of diagram, feature by feature. Every other kind in the same file is left exactly as you wrote it, and named.

Add Merlive to your agent

npx skills add victorsaly/merlive -g

Then ask: Merlive docs/orders.md. The first time, it reads your site’s colours and sets itself up. MIT licence.