DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to export a finished diagram to PNG or SVG with Diagram Design

Save a generated diagram as a PNG or SVG file for slides, docs or a website.

Short answer: Install the skill with npx skills add cathrynlavery/diagram-design; then generate the diagram with a plain-words request and open the .html file to confirm it; ask your agent to export it to PNG or SVG, or run the export command in hosts that offer it. All steps.

Who it is forA writer or presenter who has a finished diagram and needs an image file for a slide deck, doc or web page.

The problemAn HTML diagram is not always accepted by slide tools or image uploads, so it needs an image export.

The outcomeA PNG or SVG copy of the diagram saved next to the original 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

  1. Install the skill with npx skills add cathrynlavery/diagram-design.
  2. Generate the diagram with a plain-words request and open the .html file to confirm it.
  3. Ask your agent to export it to PNG or SVG, or run the export command in hosts that offer it.
  4. Open the exported file to check text and lines.
  5. Store the .html file with the image as the source copy.

Prompt for your agent

Using the diagram-design skill from cathrynlavery/diagram-design, export the diagram at <path to .html file> to PNG and to SVG. Verify that both files open and that text and lines are not clipped.

Caveat. The export details are described in the README's Export section, so read that section for the exact export method on your host before relying on it.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for cathrynlavery/diagram-design and "Export a finished diagram to PNG or SVG"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer