Skills

Visio Image Rebuilder

Rebuild or restyle editable Microsoft Visio diagrams from reference images and existing...

Install

npx skills add pengjunchi0/codex-visio-paper-figure-skill --skill visio-image-rebuilder -g -a claude-code -y
Category
Design
Updated
3mo ago
License
MIT
Context cost
Mediumabout 1,882 tokens
Runs scripts
No, instructions only

What it does

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.

Visio Image Rebuilder

Core Rule

Recreate 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.

Treat .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.

Workflow

  1. Inspect inputs.

    • Confirm paths for the target .vsdx, reference image, requested output formats, and output directory.
    • Export the current Visio page to PNG before editing when a target file already exists.
    • Inspect the .vsdx package for pages, media entries, and shape counts.
    • Back up the target file before any write.
    • If Visio is already open, close only the target document or ask before terminating a stuck process.
  2. Decode the reference image.

    • Identify page orientation, panel boundaries, module colors, captions, text hierarchy, arrows, dashed lines, and repeated motifs.
    • Build an object inventory: containers, titles, process boxes, icons, charts, graphs, equations, connectors, captions.
    • Calibrate the canvas first, then calibrate each major panel or subpanel with explicit top-left bounds or four corner points.
    • Draw panel internals in panel-local normalized coordinates whenever the figure has dense multi-panel content.
    • Decide whether the task is a full rebuild, color/style transfer, local edit, or export-only job.
    • For dense scientific figures, first create a coarse panel map, then draw panel internals. Do not start with small decorative details.
Read the whole SKILL.md on GitHub

More in Design