Introduction¶
In design reviews, architecture explanations, and delivery documentation, UML diagrams often need to reside in Visio (.vsdx) to facilitate collaboration and modifications with non-development colleagues. Common practices involve manually dragging shapes, aligning connectors, or drawing in other tools, exporting, and then importing into Visio for fine-tuning, which incurs high back-and-forth costs. If you wish to have AI directly produce editable Visio files based on natural language descriptions, rather than just providing Mermaid screenshots or PlantUML source code, you can check out the community Skill UML-Visio-generate on SkillHub (Coordinate: @user_6090b166/visio-uml-generate).
The following section introduces what it is, what it can do, how to install it, and points to note when reproducing the workflow based on the official SKILL documentation.
What is this¶
UML-Visio-generate is an Agent Skill based on the universal SKILL.md format: it identifies UML diagram types and elements based on user text descriptions, generates structured JSON, and then calls the included Python script to output Microsoft Visio (.vsdx) files.
- Maintainer: SkillHub community publisher
user_6090b166, marked ascommunitysource. - Category:
dev-programming. - Version:
1.0.1(subject to the SkillHub page andskillhub searchresults). - Dependencies: Labeled as
requires_api_key=false, no additional API Key required. - Official Entry: SkillHub Skill Page; API Coordinate Page:
https://api.skillhub.cn/user_6090b166/visio-uml-generate.
The internal name in the Skill documentation is written as visio-uml-generator, referring to the same set of capabilities as the store display name UML-Visio-generate.
Core Functionality¶
According to the SKILL.md within the Skill package, the declared capabilities are as follows.
Supported UML Diagram Types¶
| Type | Description |
|---|---|
| Class Diagram | Classes, interfaces, attributes, methods, and relationships such as inheritance, composition, and dependency |
| Use Case Diagram | Actors, use cases, associations, includes, and extends relationships |
| Sequence Diagram | Participants, lifelines, sync/async/return messages |
| Activity Diagram | Action nodes, decisions, start/end, control flow |
Workflow (Agent Side)¶
- Analyze user text to determine the UML diagram type and elements.
- Generate a JSON definition conforming to the Schema in
references/uml-schema.md. - Run
scripts/generate_vsdx.pyto generate the.vsdxfile. - Deliver the file to the user.
Implementation Points (Documentation Notes)¶
.vsdxis ZIP + XML; the script builds the Visio XML structure from scratch.- Auto Layout: Grid for Class Diagrams, left-right distribution for Use Case Diagrams, vertical timeline for Sequence Diagrams, vertical flow for Activity Diagrams.
- Color Scheme: Class (Blue), Interface (Green), Use Case (Yellow), Activity (Cyan).
- Connectors: Arrows set according to relationship types (e.g., hollow triangle for inheritance, dashed line for dependency, diamond for composition).
- Generation Script:
scripts/generate_vsdx.pyis pure Python, and the documentation states there are no third-party dependencies.
Test results recorded in the documentation: All four types passed (Class Diagram: 5 classes, 5 relationships; Use Case Diagram: 2 actors, 4 use cases, 5 relationships; Sequence Diagram: 4 participants, 6 messages; Activity Diagram: 7 nodes, 7 flows). The package includes a sample input visio-uml-test/ecommerce-class-diagram.json, and the documentation also lists the corresponding sample output ecommerce-class-diagram.vsdx.
Installation and Enablement¶
SkillHub CLI must be present on the local machine before installation. If not installed, follow the SkillHub Installation Instructions:
command -v skillhub && skillhub --version
# Full installation (CLI + Default Skills, recommended by documentation)
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
# CLI Only installation
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/, and the Agent may not recognize it. The installation prompt given on the official page is: Install @user_6090b166/visio-uml-generate according to https://skillhub.cn/install/skillhub.md.
Command line installation example (consistent with skillhub search output):
skillhub install visio-uml-generate --namespace user_6090b166 --dir <your Agent skills directory>
Common client skills paths (excerpted from SkillHub installation documentation):
- Cursor:
~/.cursor/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project - Claude Code:
~/.claude/skills/
After installation, enable the Skill in the corresponding client so that the Agent reads the included SKILL.md and executes according to the workflow. The documentation does not separately distinguish trigger methods for Cursor and Claude Code; both are based on “skills directory + SKILL.md”.
Typical Usage¶
1. Natural Language Driven (Recommended)¶
In a conversation where the Skill is loaded, describe the system and relationships in Chinese or English, such as classes and repository interfaces in the e-commerce domain. The Agent should complete the JSON writing and call scripts/generate_vsdx.py according to SKILL.md, and finally provide the .vsdx path.
2. Reference to Package JSON Example¶
The structure of the e-commerce class diagram example JSON provided by the Skill is as follows (type is class_diagram, containing classes and relationships):
{
"title": "E-Commerce System - Class Diagram",
"type": "class_diagram",
"classes": [
{
"name": "User",
"attributes": ["- id: Long", "- username: String"],
"methods": ["+ login(password: String): Boolean"]
}
],
"relationships": [
{
"source": "User",
"target": "Order",
"type": "association",
"label": "places",
"multiplicity_source": "1",
"multiplicity_target": "0..*"
}
]
}
For complete fields, refer to visio-uml-test/ecommerce-class-diagram.json in the package. After writing the JSON in the Agent or locally according to the Schema, follow the Skill’s guidance to run scripts/generate_vsdx.py to generate the Visio file; specific command line parameters are subject to the script in the package (SKILL.md does not expand on CLI help).
Applicable Scenarios and Notes¶
Who is it for
- Developers or architects who need to deliver UML in the Visio ecosystem and want to replace extensive manual drawing with conversational descriptions.
- Users already using clients like Cursor, Claude Code, Codex that support SkillHub skills, and willing to use SkillHub CLI to manage skill packages.
Limitations and Pitfalls
- Output Format: The target is
.vsdx, not Mermaid/PlantUML rendered images; complex layouts may still require fine-tuning in Visio. - Package Integrity:
SKILL.mddeclares thatscripts/generate_vsdx.pyandreferences/uml-schema.mdshould exist. If your installed1.0.1package only contains documentation and sample JSON but lacks the script and Schema, the generation step cannot be executed locally. You need to report to the publisher on SkillHub or wait for a package update. - Community Source:
communityskills have no official vendor backing. Before using in a production environment, it is recommended to verify in a copy whether the generated file can be opened and edited normally with local Visio. - Statistics: SkillHub crawled data shows a rating of
100000,1268downloads, and0installations; page numbers fluctuate, so refer to real-time store data.
Conclusion¶
UML-Visio-generate integrates “Text Description → Structured UML JSON → Visio .vsdx” into the Agent workflow, covering four common diagram types: Class, Use Case, Sequence, and Activity, without requiring an API Key. If your deliverable must be an editable Visio file, you can install it into your current Agent’s skills directory using the commands above to try it out.
Official Address: https://www.skillhub.cn/skills/user_6090b166/visio-uml-generate