Who it is forA scientist or illustrator who prefers draw.io and needs a diagram that stays editable and can be exported as a PNG for a paper or poster.
The problemFigures from papers are often static images, so changing labels, arrows, or layout means redrawing them from scratch.
The outcomeAn editable .drawio file saved from the live canvas, plus a PNG preview exported at 2000 px width.
What you need first
- Codex with the ability to install plugins
- Microsoft PowerPoint, WPS Presentation, or draw.io Desktop installed and open
- The reference figure as an image file to upload to Codex
Steps
- Install draw.io Desktop from https://www.drawio.com/ and open it.
- Install the plugin by sending the install prompt from the README to Codex, then fully quit and reopen Codex.
- Upload the reference figure to Codex and send the draw.io prompt from the README in a new task.
- Check the canvas screenshot after each region, then confirm the saved .drawio file and the 2000 px PNG preview.
Prompt for your agent
Using the scientific-illustrator plugin, connect to the live draw.io canvas and redraw the uploaded reference figure as editable shapes, connectors, and groups. Save an editable .drawio file and export a PNG preview at 2000 px width. Verify that the canvas screenshot matches the reference layout before saving.
Caveat. The README says draw.io rejects shape names it does not recognize with an error, so some reference elements may need to be rebuilt by hand or cropped as an image.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for icebird1998/scientific-illustrator and "Redraw a figure in draw.io and export a 2000 px PNG"
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