Logotipo de Visio Image Rebuilder

Visio Image Rebuilder

ComunidadPopular
pengjunchi0
visio-image-rebuilder

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.

Descripción general

Editorpengjunchi0
Repositoriocodex-visio-paper-figure-skill
Nombre de la habilidadvisio-image-rebuilder
Estrellas
1K
Forks
48
Archivos incluidos
5
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 5

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por pengjunchi0 en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Visio Image Rebuilder en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/pengjunchi0/codex-visio-paper-figure-skill/tree/main
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pengjunchi0/codex-visio-paper-figure-skill.git \
  .claude/skills/visio-image-rebuilder
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Visio Image Rebuilder en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Visio Image Rebuilder automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Visio Image Rebuilder no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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.
  3. Prefer Visio automation for native edits.

    • Use COM automation on Windows when Visio is installed.
    • Use DrawRectangle, DrawOval, DrawLine, Page.Import only for small source assets, and shape cells such as FillForegnd, LineColor, LineWeight, Char.Size, Char.Color, Rounding.
    • Use explicit coordinates and IDs for fragile edits.
    • Keep grouped structure meaningful: major panels, submodules, repeated blocks, legends.
    • For nested modules, use helpers such as RectRel, TextRel, LineRel, and OvalRel so child shapes are constrained by their calibrated parent panel.
  4. Use package XML edits only for narrow, deterministic changes.

    • XML patching is appropriate for recoloring existing shapes, replacing font tables, or changing known cell values.
    • Preserve Visio XML ordering: shape-level Cell nodes should be before Section, Text, or child Shapes.
    • Avoid rebuilding complex geometry by raw XML unless COM automation is unavailable.
  5. Export requested formats from the verified Visio source.

    • Use scripts/visio_page_tools.ps1 for export-only jobs.
    • Use scripts/visio_rebuild_scaffold.ps1 with -ExportFormats for rebuilds that should immediately create deliverables.
    • Prefer SVG for vector web/manuscript handoff, PDF for review/print, and PPTX for presentation decks.
    • For PPTX, use PowerPoint COM when available; the generated slide contains the Visio page render, usually inserted from SVG.
  6. Verify without overtrusting a single signal.

    • Export at least one preview after editing when possible.
    • Inspect the .vsdx package to confirm that no full-size reference PNG/JPG was left in visio/media.
    • Check shape count and representative text labels.
    • Check that major panels do not overlap and that child shapes stay within their intended panel bounds.
    • Check every requested output file exists and is non-empty.
    • If Visio automation hangs, stop safely, close the document if possible, and report whether the file was actually modified.

Implementation Pattern

For full rebuilds, generate a script that:

  • Opens the target .vsdx with Visio COM.
  • Saves a timestamped or descriptive backup.
  • Clears or duplicates the page depending on user preference.
  • Sets page size to match the reference aspect ratio.
  • Draws native shapes in top-left reference coordinates converted to Visio coordinates.
  • Defines calibrated panel bounds for complex regions and uses panel-local coordinates for their internals.
  • Adds reusable helpers for rectangles, text boxes, ovals, lines, arrows, mini charts, graph nodes, and image-like stacks.
  • Saves the document and exports requested formats.

Start from scripts/visio_rebuild_scaffold.ps1 when building a full reconstruction script. Copy it into the workspace and customize the Draw-ReferenceFigure function rather than editing the skill copy.

For style transfer, generate a script that:

  • Reads existing shape IDs, text, approximate geometry, fill, and line colors.
  • Maps known modules to target palettes by text and group context.
  • Applies fills, borders, text colors, line patterns, and font changes to existing shapes.
  • Avoids repositioning unless the user asks for layout changes.
  • Exports only after the .vsdx has been saved and inspected.

For export-only requests, run:

powershell
powershell -ExecutionPolicy Bypass -File scripts\visio_page_tools.ps1 `
  -VsdxPath "C:\path\figure.vsdx" `
  -ExportFormats svg,pdf,pptx `
  -OutputDir "C:\path\exports" `
  -InspectPackage

For rebuild plus multi-format export, run:

powershell
powershell -ExecutionPolicy Bypass -File scripts\visio_rebuild_scaffold.ps1 `
  -VsdxPath "C:\path\figure.vsdx" `
  -PageW 16 `
  -PageH 9 `
  -RefW 1600 `
  -RefH 900 `
  -PreviewPath "C:\path\exports\figure.png" `
  -ExportFormats svg,pdf,pptx `
  -OutputDir "C:\path\exports"

Safety Checklist

  • Back up before writing outside the workspace.
  • Close any open Visio document that locks the target file before direct package edits.
  • Never delete or revert unrelated user files.
  • If a previous attempt embedded the reference image, restore from backup or remove the image shape before continuing.
  • Tell the user clearly whether the final file is native editable shapes or a flat embedded image.
  • Tell the user when PPTX export is a rendered slide rather than native PowerPoint shapes.

Acceptance Criteria

A Visio rebuild is acceptable only when:

  • Main panel positions, flow direction, captions, and module hierarchy match the reference at first glance.
  • Major panels are aligned to calibrated bounds, with no obvious submodule drift, collision, or cross-panel overlap.
  • Text remains editable and uses a consistent academic font, usually Times New Roman.
  • Repeated motifs are represented with reusable native shapes rather than pasted raster crops.
  • The final .vsdx package has no full-page raster reference image in visio/media.
  • Requested PNG/SVG/PDF/PPTX deliverables were exported from the saved .vsdx and are non-empty.
  • A preview export or package inspection was performed, or the final response explicitly states why verification was skipped.

Useful Resource

Use scripts/visio_page_tools.ps1 for common inspection, backup, preview export, multi-format export, and package checks. Use scripts/visio_export_formats.ps1 when a custom task script needs reusable export helpers. Use scripts/visio_rebuild_scaffold.ps1 as the starting point for native-shape drawing scripts; it includes both global top-left helpers and panel-local calibrated helpers. Read references/rebuild-guidelines.md when a task requires a full figure reconstruction or careful one-to-one scientific diagram matching.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Visio Image Rebuilder?

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.

¿Por qué usar Visio Image Rebuilder en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Visio Image Rebuilder está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Visio Image Rebuilder en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/pengjunchi0/codex-visio-paper-figure-skill/tree/main. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Visio Image Rebuilder?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Visio Image Rebuilder?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Visio Image Rebuilder con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Visio Image Rebuilder?

Sí. pengjunchi0 la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇