DEDUPED We read 1,000+ AI sources. You read one email. Subscribe free

AI USE CASES

How to redraw an old Mermaid or draw.io diagram in a cleaner style with diagram-design

Import an existing Mermaid, draw.io or Excalidraw file and get it back as a polished editorial diagram.

Who it is forDocs maintainer with a folder of ugly Mermaid or draw.io diagrams in their README and wiki

The problemExisting diagrams use default theme styling that looks dated and inconsistent across pages.

The outcomeThe same diagrams redrawn in one consistent editorial style, exported as PNG or SVG for the docs.

What you need first

  • An Agent Skills compatible host such as Claude Code, Codex, Cursor, Qoder, GitHub Copilot, Gemini CLI, Cline, Windsurf or Amp
  • Node.js for the npx install command
  • A browser to open the generated HTML file
  • Optional: a public website URL for brand onboarding

Steps

  1. Install the skill with: npx skills add cathrynlavery/diagram-design
  2. Hand your agent the Mermaid, draw.io or Excalidraw source and ask it to redraw it with the skill.
  3. Open the new HTML file and check that every node and edge from the original survived.
  4. Export to PNG or SVG and replace the old image in your docs.

Prompt for your agent

Use the diagram-design skill to import <path to mermaid, drawio or excalidraw file> and redraw it as a clean HTML and SVG diagram. Confirm that the node and edge counts match the original and export an SVG.

Caveat. Import is described in the README, but complex layouts may be re-arranged by the skill, so compare the result against the original instead of assuming it is identical.

About diagram-design

An agent skill that draws clean diagrams as a single HTML and SVG file in your brand. Part of this week's top 10 repos: ranked #8 on Repo Radar. View cathrynlavery/diagram-design on GitHub.

More with diagram-design

See all use cases for cathrynlavery/diagram-design

Disclaimer

Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page