/drawio replicate)Use /drawio replicate when you want to recreate an uploaded image, screenshot, or reference diagram as a structured draw.io bundle.
Use drawio-academic-skills when the reference is a paper/thesis/manuscript figure or publication constraints matter.
meta.source: replicated and meta.canvas when source coordinates matter/drawio editWhen the source is publication-facing, the overlay adds:
meta.profile: academic-papermeta.figureType: architecture, roadmap, or workflow.drawio + .svg delivery, with .spec.yaml + .arch.json in a project-local work directoryThe overlay still executes through the sibling base CLI at ../drawio/scripts/cli.js.
When the source image depends on typography or placement, replication should capture:
meta.canvas: WIDTHxHEIGHT when coordinates are copied from the reference;Do not satisfy a rebuild by placing the whole reference image as the final draw.io page. The final .drawio should use native editable shapes, text, connectors, modules/groups, waypoints, and styles. Validation flags full-page embedded image cells; small icons or motif images are still allowed when they are not the whole diagram.
For self-checking, compare the source and export for:
| Mode | Default | Behavior |
|---|---|---|
preserve-original |
Yes | Preserve source background and dominant palette through explicit style overrides |
theme-first |
No | Normalize the redraw to the selected theme and treat source colors as hints |
Replicated specs should usually record:
meta.source: replicatedmeta.canvas when source coordinates mattermeta.replication.colorModemeta.replication.backgroundmeta.replication.palette| Domain | Recommended theme |
|---|---|
| software architecture | tech-blue |
| business process | tech-blue |
| research workflow | academic |
| environmental / lifecycle | nature |
| accessibility-first review | high-contrast |
| presentation slides | dark |
Replication should pause for confirmation when semantics are uncertain.
The review draft should include:
/drawio replicate
Color mode: preserve-original
[upload image]
Keep the warm nodes and dark connectors instead of normalizing everything to tech-blue
/drawio-academic-skills replicate
[upload paper figure]
Redraw this for IEEE submission, keep it grayscale-safe, and deliver final .drawio + .svg with sidecars in a work directory
/drawio replicate with dark theme
[upload architecture screenshot]
Redraw this for a keynote slide
Base replication should produce the final editable and visual-check artifacts:
.drawio.svgWork-dir sidecars:
.spec.yaml.arch.jsonOptional outputs:
.drawio fileSwitch to theme-first if you want brand or paper normalization instead of source-color fidelity.
Stay on preserve-original and make sure the extracted palette summary is accepted before rendering.
Split the figure into sub-diagrams or reduce the redraw scope before regeneration.
Add or adjust labelOffset for the affected edge labels, then re-render and compare again.