Tooluck logoTooluck
SKILL.md

visio-image-rebuilder

Agent skill frompengjunchi0/codex-visio-paper-figure-skill

Rebuild or restyle editable Microsoft Visio diagrams from reference images and existing .vsdx files, then export deliverables as .vsdx, PNG, SVG, PDF, or PPTX. Use when the user asks Codex to open Visio, recreate a diagram from a PNG/JPG/screenshot/reference image, match a scientific model figure, update colors/typography/layout in a .vsdx, calibrate panel coordinates to avoid shifted or overlapping submodules, or make publication/presentation outputs while preserving Visio native editable shapes rather than embedding the reference image as a flat picture.

How to install visio-image-rebuilder

install visio-image-rebuilder
# install the codex-visio-paper-figure-skill pack with the skills CLI
npx skills add pengjunchi0/codex-visio-paper-figure-skill

SKILL.md

MITFull file
1# Visio Image Rebuilder
2
3## Core Rule
4
5Recreate the reference as editable Visio content. Do not satisfy a rebuild request by inserting the whole reference image into the page. Embedding the reference image is only allowed as a temporary locked tracing layer if it is removed or hidden before delivery and the final `.vsdx` remains native shapes, text, connectors, and groups.
6
7Treat `.vsdx` as the source of truth. Export PNG, SVG, PDF, or PPTX only after the Visio page has been rebuilt or restyled and checked for native editability.
8
9## Workflow
10
111. Inspect inputs.
12 - Confirm paths for the target `.vsdx`, reference image, requested output formats, and output directory.
13 - Export the current Visio page to PNG before editing when a target file already exists.
14 - Inspect the `.vsdx` package for pages, media entries, and shape counts.
15 - Back up the target file before any write.
16 - If Visio is already open, close only the target document or ask before terminating a stuck process.
17
182. Decode the reference image.
19 - Identify page orientation, panel boundaries, module colors, captions, text hierarchy, arrows, dashed lines, and repeated motifs.
20 - Build an object inventory: containers, titles, process boxes, icons, charts, graphs, equations, connectors, captions.
21 - Calibrate the canvas first, then calibrate each major panel or subpanel with explicit top-left bounds or four corner points.
22…

Excerpt shown under the repository's MIT license.

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates