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
- Install the skill with
npx skills add cathrynlavery/diagram-design. - 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.
- Open the exported file to check text and lines.
- 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
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