Who it is forAn engineer or writer with an older Mermaid, draw.io or Excalidraw diagram who needs a version for a publication or slide page.
The problemText-based Mermaid output and draw.io canvases are hard to reuse in a polished page without redrawing them.
The outcomeA redrawn diagram in the editorial style, saved as one .html file.
What you need first
- An agent host that reads Agent Skills, such as Claude Code, Codex, Cursor or GitHub Copilot
- A terminal that can run `npx skills add` or the host's plugin commands
- A web browser to open the generated .html file
Steps
- Install the skill with
npx skills add cathrynlavery/diagram-design. - Ask your agent to redraw the existing file, for example: "Redraw this Mermaid flowchart in Diagram Design style: <path>".
- Review the redrawn nodes and labels against the original.
- Open the new .html file in a browser to check it.
- Keep the original file as the editable source.
Prompt for your agent
Using the diagram-design skill from cathrynlavery/diagram-design, redraw the existing diagram at <path to Mermaid, draw.io or Excalidraw file> as one self-contained .html file with inline SVG. Verify that every node and connection from the original appears in the output.
Caveat. The README says the redrawn output is not an editable source format, so the original Mermaid, draw.io or Excalidraw file remains the file to edit.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for cathrynlavery/diagram-design and "Redraw old Mermaid or draw.io diagrams"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer