Visio Security Diagrams: Agent-Generated draw.io and SVG Files for Visio Import

Preface

When using Agents like Codex and Cursor to draw architecture diagrams, common results include .drawio or SVG files failing to open in draw.io, console errors related to atob/base64, or misaligned connections and text overflowing the canvas after importing into Microsoft Visio. Manually modifying XML and rearranging nodes is often more time-consuming than drawing the diagram itself.

Below is an introduction to Visio Safe Diagrams on SkillHub (coordinate @user_6c3897e4/visio-safe-diagrams, current version 1.0.1). It focuses on “generating, repairing, and validating” draw.io and SVG architecture diagrams that can be imported into Visio, converging the aforementioned issues into an Agent-executable workflow rather than relying on ad-hoc format guessing.

What is this

Visio Safe Diagrams is a community-sourced (community) Agent Skill categorized under dev-programming, published by user_6c3897e4. The Skill uses the universal SKILL.md format, and the page indicates requires_api_key=false, meaning no additional API Key is required after installation.

In short: When an Agent needs to produce Visio-compatible architecture diagrams or repair existing draw.io/SVG files, it follows the rules within the Skill to create diagrams, fix encoding and layout issues, and perform openability validation.

Official Entries:

  • SkillHub Page: https://www.skillhub.cn/skills/user_6c3897e4/visio-safe-diagrams
  • API Coordinate Page: https://api.skillhub.cn/user_6c3897e4/visio-safe-diagrams

Core Functions

The following capabilities are consistent with the official description, listing only verified items:

  1. Create architecture diagrams that can be imported into Microsoft Visio, outputting in draw.io (.drawio) and SVG formats.
  2. Repair common atob/base64 errors in draw.io, as well as issues like automatic connection lines going haywire.
  3. Process SVG layout issues such as text overflow, and convert draw.io XML into more stable SVG (to facilitate downstream opening and importing).
  4. Validate and troubleshoot diagrams generated by Agents that cannot be opened in Visio or draw.io.

Applicable trigger scenarios (consistent with the Skill’s English description): Generating diagrams for Visio, fixing base64/atob errors, preventing SVG text overflow, performing XML→SVG stabilization, or handling files “drawn by other Agents but cannot be opened.”

Installation and Activation

There are two installation methods: installing to the current Agent’s skills directory using the SkillHub CLI, or sending the official prompt to an AI to let it install according to the documentation.

1. Install SkillHub CLI (if not already installed)

First, check if the CLI is already installed:

command -v skillhub && skillhub --version

If not installed, follow the official installation documentation to perform a full installation (including CLI and default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

CLI only:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Description and command source: https://skillhub.cn/install/skillhub.md

2. Install this Skill

It is mandatory to use --dir to point to the actual skills directory used by the current Agent; if installed to ./skills/ by default, some clients will not load it.

skillhub install @user_6c3897e4/visio-safe-diagrams --dir <你的 skills 目录>

Common directories (from SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project
  • Claude Code: ~/.claude/skills/

After installation, restart or refresh the Agent according to your client’s requirements so that the Skill is recognized.

3. Install via Conversation

The prompt provided on the SkillHub page is:

请根据 https://skillhub.cn/install/skillhub.md,安装 `@user_6c3897e4/visio-safe-diagrams`。

Just send the above content to the current AI client, and the Agent will complete the fetching and directory configuration according to the same installation documentation.

Typical Usage

The public page does not include step-by-step copy-paste command-line examples; the actual usage is to enable the Skill in a conversation and describe the diagram goal or problem file in natural language. Below are directly reproducible request methods.

Create a new Visio-compatible architecture diagram

  1. Confirm that the Skill is installed in the current Agent’s skills directory.
  2. Specify output requirements, for example: “Draw a three-tier web architecture using draw.io, with components including load balancing, application pool, and database; output .drawio and SVG that can be imported into Visio, avoiding SVG text overflow.”
  3. Let the Agent generate the files according to the Skill’s rules, and try opening them in draw.io or Visio.

Repair draw.io files that cannot be opened

  1. Provide the error symptoms (such as draw.io console atob errors) or attach the .drawio path.
  2. Request: “Follow the Visio Safe Diagrams Skill to fix the base64/atob issues and validate that it can be opened in draw.io.”

Clean up broken diagrams generated by other Agents

  1. Explain that the original diagram cannot be opened in Visio/draw.io.
  2. Request to fix the chaotic connection lines, convert XML to stable SVG, and perform openability validation.

After the above steps, you should obtain .drawio or SVG files that can be opened in the target tool; if it still fails, continue to provide the specific error information to the Agent, as the Skill focuses on locating encoding, connection line, and SVG text layout issues.

Use Cases and Considerations

Who is it for

  • Those who need to hand over Agent-generated architecture diagrams to colleagues using Visio or draw.io.
  • Those who frequently encounter atob/base64, connection line, or SVG overflow issues after AI generates diagrams, and want a fixed repair workflow.
  • Those who want to batch generate Visio-importable schematic diagrams in environments like Codex.

Limitations and Notes

  • This Skill does not rely on an API Key; the boundary of its capabilities is determined by the SKILL.md and workflow within the Skill, and it cannot replace the licensing and version differences of the Visio desktop application itself.
  • SkillHub Statistics (at time of scraping): Score 100000, Downloads 1709, Category dev-programming; installation counts etc. will change over time, please refer to the SkillHub page for the latest data.
  • Different Agents have different skills directories; --dir must be pointed to the current environment during installation, otherwise the issue of “installed but Agent does not load” will occur.

Conclusion

Visio Safe Diagrams pushes the capability from “can draw” to “can import, can open, and avoids encoding and layout pitfalls,” making it suitable for teams whose architecture diagram delivery pipeline relies on Visio/draw.io. For installation or updates, please refer to the SkillHub page above and https://skillhub.cn/install/skillhub.md.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye