recreate-scientific-figure-in-drawio

recreate-scientific-figure-in-drawio is a skill for Codex from icebird1998/drawio-scientific-illustrator. It costs 118 tokens per session (994 once invoked), scanned A, original, MIT.

A workflow for rebuilding scientific figures and schematic drawings as editable shapes in draw.io, a diagram editor. It works on the visible draw.io canvas and can save or export the result.

In plain words
What is it for?
Use it to trace, revise, inspect, save, validate, or export scientific figures and schematic illustrations in draw.io.
Why use it?
It turns a reference image into an editable diagram instead of leaving it as a flat picture.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to trace, revise, inspect, save, validate, or export scientific figures and schematic illustrations in draw.io.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/icebird1998/drawio-scientific-illustrator/recreate-scientific-figure-in-drawio
About the project

Draw.io Scientific Illustrator is a Codex plugin that lets an AI agent create and edit scientific diagrams directly in the visible draw.io desktop canvas through a local MCP server. It is for users who want step-by-step agent-assisted scientific illustration and can also validate draw.io files or export them as images and PDFs. Its MCP servers and skill provide the catalogue add-ons for operating this workflow, although the repository is now legacy and development has moved elsewhere.

icebird1998/drawio-scientific-illustrator · 1,413 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add icebird1998/drawio-scientific-illustrator --skill recreate-scientific-figure-in-drawio
Clone the repo
git clone --depth 1 https://github.com/icebird1998/drawio-scientific-illustrator

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for recreate-scientific-figure-in-drawio

README.md
[![agentmods](https://agentmods.dev/badge/skills/icebird1998/drawio-scientific-illustrator/recreate-scientific-figure-in-drawio/github.svg)](https://agentmods.dev/skills/icebird1998/drawio-scientific-illustrator/recreate-scientific-figure-in-drawio)
Your own site
<a href="https://agentmods.dev/skills/icebird1998/drawio-scientific-illustrator/recreate-scientific-figure-in-drawio"><img src="https://agentmods.dev/badge/skills/icebird1998/drawio-scientific-illustrator/recreate-scientific-figure-in-drawio/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for recreate-scientific-figure-in-drawio

Your own site · 80×15
<a href="https://agentmods.dev/skills/icebird1998/drawio-scientific-illustrator/recreate-scientific-figure-in-drawio"><img src="https://agentmods.dev/badge/skills/icebird1998/drawio-scientific-illustrator/recreate-scientific-figure-in-drawio.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.00994
Opus 5 $0.00059 $0.00497
Sonnet 5 $0.00024 $0.00199
Haiku 4.5 $0.00012 $0.00099

Measured 13d ago against content hash ffedd1bc94b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

recreate-scientific-figure-in-drawio scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/drawio-scientific-illustrator/skills/recreate-scientific-figure-in-drawio/SKILL.md · 46 lines

How it starts

The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Recreate Scientific Figures in draw.io

Use the plugin's live MCP tools whose names end in drawio_live_launch, drawio_live_status, drawio_live_screenshot, drawio_live_add_shape, drawio_live_add_edge, drawio_live_update_cell, drawio_live_draw_sequence, drawio_live_fit, drawio_live_inspect, and drawio_live_save_snapshot. Use file tools ending in drawio_validate and drawio_export only after the visible drawing has been saved.

Hard boundary

  • Control only draw.io's internal graph/model API through the live MCP server.
  • Never use operating-system mouse, keyboard, window, or full-screen automation for this workflow.
  • Never pre-build XML and then open it as the drawing method. Serialize .drawio only after live shapes and edges already exist on the visible canvas.
  • Renderer screenshots are allowed only to inspect the draw.io canvas itself; they are not general computer-screen control.

Workflow

  1. Inspect every provided reference image with vision before creating XML. For a PDF, render the relevant page first. Do not merely embed the raster image and call it recreated.
  2. Decompose the figure into editable primitives: canvas/aspect ratio, panels, containers, nodes, text, arrows, legends, repeated motifs, colors, stroke widths, fonts, and z-order. Identify any portions that must remain raster because draw.io primitives cannot reproduce them faithfully.
  3. Call drawio_live_launch with a visible per-step delay, normally 400–1000 ms. Call drawio_live_status and require graph_ready=true before drawing.
  4. Add geometry directly to the live canvas:
    • Use drawio_live_add_shape and drawio_live_add_edge for one deliberate visible step at a time.
    • Use drawio_live_draw_sequence only with a nonzero step_delay_ms; each operation must remain a separate draw.io model update so the user can watch it appear.
    • Use stable semantic cell ids from the beginning so later edges and edits can target exact elements.
  5. Call drawio_live_screenshot after each logical section, not after every trivial cell. Inspect only the draw.io renderer and compare it with the reference.
  6. Iterate directly in the live graph. Use drawio_live_inspect followed by drawio_live_update_cell for labels, styles, position, and size. Use drawio_live_fit to keep progress visible.
  7. After the visible figure is complete, call drawio_live_save_snapshot. This is the first point at which .drawio XML should be serialized.
  8. Call drawio_validate. Fix structural errors through the live graph when possible, then save again.
  9. Export a review PNG with embed=false and width=2000. Check element count, wording, topology, alignment, overlap, clipping, arrow direction, color, whitespace, and correspondence to the reference.
  10. After approval, export the requested deliverables. Default to an editable .drawio plus PNG. Use embed=true for final PNG/SVG/PDF so draw.io XML remains embedded where supported.

Read the full file on GitHub · 46 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 46 lines · 118 tokens per session scan A ffedd1bc94b4

Subscribe to this mod's changes

recreate-scientific-figure-in-drawio is a skill published in the GitHub repository icebird1998/drawio-scientific-illustrator (1,413 stars, last pushed 1mo ago), licensed MIT. It adds 118 tokens to every session and 994 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

audit-scientific-figure

Review and score an existing scientific illustration in visible draw.io, Microsoft PowerPoint, or WPS Presentation without hiding defects through flattening. Use for reference-fidelity checks, layout cleanup, connector review, text-fit checks, deep editability and raster-atomicity inspection, local-region gates, or…

icebird1998/scientific-illustrator · 80 tokens

correct-scientific-figure

Convert Reviewer findings for a scientific illustration into minimal, ordered, object-level correction instructions for visible draw.io, Microsoft PowerPoint, or WPS Presentation. Use when layout, text, connector, z-order, reference-fidelity, or raster editability defects must be translated into exact backend…

icebird1998/scientific-illustrator · 74 tokens

recreate-scientific-figure

Recreate a supplied scientific figure, graphical abstract, workflow, model diagram, or multi-panel schematic as a maximally editable illustration in visible draw.io, Microsoft PowerPoint, or WPS Presentation. Use when a PNG/JPEG/SVG/PDF reference must be rebuilt panel by panel through a Designer, Drawer, Reviewer, and…

icebird1998/scientific-illustrator · 95 tokens

recreate-scientific-figure-in-drawio

Recreate, design, inspect, refine, or export scientific figures live in the visible draw.io desktop canvas through draw.io's graph API. Use as the draw.io Drawer for step-by-step editable reconstruction or clean no-reference design with text/shapes/lines, composite tables/charts, atomic images, exact layout…

icebird1998/scientific-illustrator · 85 tokens

design-scientific-figure

Design a new scientific illustration, graphical abstract, workflow, architecture figure, or mechanism diagram from a brief without a reference image, for visible draw.io, Microsoft PowerPoint, or WPS Presentation. Use when a clean editable layout, planned connector lanes, consistent visual grammar, and…

icebird1998/scientific-illustrator · 78 tokens

diagram-design

Create branded architecture, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, Venn, pyramid/funnel, treemap, bar, waterfall, line, Gantt and scatter charts…

cathrynlavery/diagram-design · 201 tokens