Logo di Visio Template Drawing

Visio Template Drawing

Community
zxc-heu
visio-template-drawing

Create editable Microsoft Visio drawings (.vsdx) from PNG references, text specifications, or existing Visio templates. Use when Codex needs background Visio COM automation, VSDX output, template-based diagram recreation, screenshot-to-Visio conversion, or editable scientific/technical diagrams. Save .vsdx by default; export PNG previews only when explicitly requested.

Panoramica

Pubblicato dazxc-heu
Repositoryvisio-template-drawing-skill
Nome della skillvisio-template-drawing
Stelle
36
Fork
6
File inclusi
21
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 21

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da zxc-heu su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Visio Template Drawing in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/zxc-heu/visio-template-drawing-skill/tree/main/skill/visio-template-drawing
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zxc-heu/visio-template-drawing-skill.git /tmp/visio-template-drawing-skill
mkdir -p .claude/skills
cp -r /tmp/visio-template-drawing-skill/skill/visio-template-drawing .claude/skills/visio-template-drawing
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Visio Template Drawing in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Visio Template Drawing non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Visio Template Drawing non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Visio Template Drawing

Goal

Create real, editable .vsdx diagrams with Microsoft Visio COM. Use editable Visio shapes, connectors, and text; do not satisfy the task by pasting a reference PNG as the final diagram.

Defaults

  • Output format: .vsdx.
  • Local input file: save beside the input as <source-file-stem>_codex.vsdx.
  • Pasted chat image with no local path: save to the desktop with a descriptive _codex.vsdx name.
  • User-specified output path or filename overrides defaults.
  • Do not export PNG unless the user explicitly asks for a preview, screenshot, or visual QA.
  • Draw completely in the background by default using a new owned Visio.InvisibleApp; close task documents and verify process exit after completion or failure.
  • -Visible shows the process but still closes it; -KeepOpen independently retains only a successfully completed final document. Never use either switch without the corresponding user request.
  • Do not use system clipboard, active selections, mouse, keystrokes, or arbitrary existing Visio instances for background work. Explain any operation requiring foreground interaction before starting it.

Workflow

  1. Confirm inputs and output path. Run scripts/visio_probe.ps1 if Visio COM availability is uncertain.
  2. Analyze the reference semantically: diagram type, layout, labels, shape families, connectors, grouping, colors, images, and any salient geometry.
  3. Choose Visio-native stencils/masters before primitives. Start from references/master-catalog.md; if the needed master is missing, use local master discovery rather than guessing.
  4. Build a drawing plan using references/drawing-plan-schema.md.
  5. For non-trivial diagrams, run scripts/validate_plan_layout.py before drawing. Treat unintentional text/image overlap, unintentional image/image overlap, and page overflow as plan errors that must be fixed before Visio automation. If the reference clearly uses overlays or stacked images, mark the intended overlap explicitly in the plan.
  6. Draft and iterate internally first. Do not show rough intermediate versions to the user.
  7. Use the managed visio_draw_from_plan.ps1 entry point for single or multi-page plans. Draw directly into one document; do not invent clipboard-based merge scripts. Read references/session-lifecycle.md for modes, timeout/cancellation, logs, and recovery. Save and optionally export in that same session.
  8. Check result.json plus the watchdog recovery result. A saved file alone is not success: verify structure, text, connections, and cleanup. Report the artifact, run-log path, fallbacks, and any unresolved process or file lock.

Drawing Principles

  • Think like a skilled Visio user, not a geometry renderer: classify the diagram's semantic family first, then prefer template shapes and Visio stencil masters through explicit COM references before primitives or custom geometry. Use raster images only for photo-like content or user-approved non-editable elements.
  • Do not hand-draw a known Visio shape family. Search built-in stencils and drop masters by NameU; run a small proof when a newly discovered master will be reused.
  • Use native dynamic connectors with glued endpoints for semantic connections. Use straight lines only when the reference or user explicitly calls for straight geometry.
  • For converging or bundled connectors, prioritize readable topology first; prefer smooth curves only when they do not reduce clarity.
  • Route connectors as first-class layout objects. Connector paths must not run through independent labels or non-endpoint node bodies; reserve gaps around branch labels, formulas, and filled nodes. Preserve the reference line style first; if a line is visibly straight, prefer nudging nearby nodes/labels slightly over converting it into an angular detour.
  • For freehand-looking curves, use editable COM spline, Bezier, or polygon geometry in background mode and state any approximation. Exact use of the native "Freeform/任意多边形(F)" UI tool requires prior explanation and explicit interactive authorization; never silently switch to foreground input.
  • Distinguish Visio UI tools from COM fallbacks. In particular, closed polygon, ribbon, DrawPolyline, and DrawSpline outputs are not the same as the Tools menu "Freeform/任意多边形(F)" command.
  • Preserve salient visual logic from the reference when it affects meaning or recognition, including connector style, perspective, grouping, repeated shape families, and arrow direction.
  • Allocate layout regions before placing details. Photographic images, their labels, legend color chips, connector fan-in/fan-out corridors, and module blocks each need reserved space by default. A label, chip, or image may overlap another object only when the reference clearly uses an overlay/stacked design or the drawing plan explicitly marks the overlap as intentional.
  • Use text for label symbols and formulas; do not draw label bars, dashes, formula operators, or mathematical marks as geometry.
  • Use SimSun/宋体 for Chinese text and Times New Roman for English, numbers, and mathematical notation by default.
  • For MathType-like labels, use richText spans so one Visio text box can contain character-level font, italic, subscript, and superscript formatting.
  • If a known flowchart or diagram shape is visible in a screenshot, search template/stencil masters before approximating it with primitives.

Verification

Before final delivery, check that:

  • main diagram elements are editable Visio objects, not a pasted screenshot;
  • labels and formulas remain editable text;
  • connectors and repeated objects preserve the reference's visual logic where practical;
  • layout preflight passes for non-trivial plans, especially no unintended label-on-image collisions and no page overflow;
  • output path follows the defaults or the user's explicit instruction;
  • no PNG preview was generated unless requested;
  • the owned PID exited (or the final document was explicitly retained), original errors are preserved, and unresolved cleanup is reported.

Resources

  • Use scripts/visio_draw_from_plan.ps1 to draw from one or more JSON plans; an atlas may use a pages array.
  • Read references/session-lifecycle.md before changing ownership, cleanup, cancellation, or recovery; use scripts/visio_recover.ps1 to inspect a prior run.
  • COM workers always use Windows PowerShell 5.1 STA, including when launched from PowerShell 7. Do not reuse Document.Activate, doc.Windows, or Marshal.GetActiveObject recovery snippets.
  • Use scripts/validate_plan_layout.py before drawing non-trivial screenshot-derived plans.
  • Use scripts/visio_export_preview.ps1 only when PNG preview output is requested.
  • Read references/master-catalog.md before selecting or discovering Visio masters.
  • Read references/drawing-plan-schema.md for plan fields, including richText.
  • Read references/visio-com-notes.md before changing automation, master lookup, connector behavior, or character formatting.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Visio Template Drawing?

Create editable Microsoft Visio drawings (.vsdx) from PNG references, text specifications, or existing Visio templates. Use when Codex needs background Visio COM automation, VSDX output, template-based diagram recreation, screenshot-to-Visio conversion, or editable scientific/technical diagrams. Save .vsdx by default; export PNG previews only when explicitly requested.

Perché usare Visio Template Drawing su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Visio Template Drawing è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Visio Template Drawing in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/zxc-heu/visio-template-drawing-skill/tree/main/skill/visio-template-drawing. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Visio Template Drawing?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Visio Template Drawing?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Visio Template Drawing: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Visio Template Drawing è gratuita?

Sì. È pubblicata su GitHub da zxc-heu con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇