visio-automation
Installation
SKILL.md
Visio Automation
Create and modify diagrams by controlling real Microsoft Visio through COM automation. The target artifact is an editable .vsdx using built-in Visio masters, native dynamic connectors, glued endpoints, and ShapeSheet settings that survive manual editing.
Keywords
Visio, .vsdx, Visio COM, stencil, master, NameU, ShapeSheet, Dynamic Connector, GlueToPos, connector routing, connector gluing, flowchart, BPMN, UML, network diagram, org chart, DFD, VSM, Mermaid, draw.io, screenshot reconstruction, whiteboard reconstruction, native editable diagrams.
Default Rules
- Run user-facing Visio work in foreground visible mode by default so the user can watch the diagram appear. Use
New-InvisibleVisioApplicationonly when the user explicitly asks for background/headless operation, or for narrow internal discovery/verification where no user-facing document is being drawn. - Prefer Visio built-in stencils and
NameUmasters. Use primitive basic shapes only when no semantic master exists or the user wants a deliberately generic sketch. - Build a lightweight Graph Model before drawing non-trivial diagrams, conversions, image reconstructions, or tasks without clear coordinates.
- Use Visio connector masters plus
GlueToPos; do not draw loose lines for relationships that should move with shapes. - Preserve requested or observed connector routing: orthogonal stays orthogonal, straight stays straight, curved stays curved.
- Save the
.vsdx, export a PNG preview when useful, then verify the resulting document before reporting completion.