plantuml-skill: Generate PlantUML in uml-diagrams.org style from natural language and export

Introduction

When writing design documents or reviewing interfaces, it is often necessary to include a UML diagram. Hand-writing PlantUML requires memorizing syntax and layout rules; simply asking a general AI model to “draw a diagram” often results in inconsistent styles and outputs that may not be directly suitable for rendering into SVG, PNG, or PDF. The following introduces the plantuml-skill on SkillHub: when a user requests a UML diagram, it converts natural language descriptions into PlantUML code that conforms to the uml-diagrams.org style, while supporting rendering and export.

What is this?

plantuml-skill (coordinate @user_15292d5a/yjkj-plantuml-skill, version 1.0.0) is a skill from the SkillHub community source. It is categorized under dev-programming and maintained by the publisher user_15292d5a. The official description states: it converts natural language into PlantUML diagrams styled after uml-diagrams.org, and this skill should be used when a user requests to draw a UML diagram. The page tag indicates requires_api_key=false, meaning it does not rely on additional API Key configuration.

Core Features

Based on the SkillHub page and store metadata, the verifiable capabilities are as follows:

  1. Diagram Types: Supports sequence diagrams, class diagrams, activity diagrams, use case diagrams, component diagrams, state diagrams, etc. (The ellipses in the description imply coverage of similar types).
  2. Syntax Style: The generated code aligns with the common UML / PlantUML conventions represented by uml-diagrams.org, facilitating comparison with existing documentation and examples.
  3. Export Formats: Diagrams can be rendered as SVG, PNG, and PDF.
  4. Trigger Method: When a user expresses a need to draw a UML diagram in a conversation, the Agent selects this skill according to Skill guidance to complete generation and export.

Installation and Activation

The installation process follows the official SkillHub instructions: First, prepare the skillhub CLI according to SkillHub Installation and Priority Source Configuration, then install the skill into the skills directory recognizable by the current Agent (installing with --dir is mandatory, otherwise it defaults to ./skills/ which might not be recognized).

1. Check or Install skillhub CLI

command -v skillhub && skillhub --version

If not installed, you can use the official script (the full installation includes the CLI and default Skills):

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

If only the CLI is needed:

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

2. Install plantuml-skill

Replace <skills directory> with the corresponding path for your current environment. For example, Cursor is ~/.cursor/skills/, Claude Code is ~/.claude/skills/, Codex is ~/.codex/skills/ or .agents/skills/ under the project (see section 4 of the installation documentation for a full list).

skillhub install @user_15292d5a/yjkj-plantuml-skill --dir <skills directory>

Alternatively, in clients that support Skills, you can ask the AI to install this coordinate following the same installation documentation (the prompt provided on the SkillHub page points to https://skillhub.cn/install/skillhub.md and @user_15292d5a/yjkj-plantuml-skill).

After installation is complete, refresh or restart the Agent as required by your client to ensure the new Skill is loaded.

Typical Usage

The public page does not include fixed example repositories or scripts; usage aligns with the official description. The reproducible interaction method is as follows:

  1. In a conversation with an Agent where plantuml-skill is enabled, clearly state the UML type to be drawn (e.g., sequence diagram, class diagram) and key points such as participating objects, messages, or states.
  2. Specify whether export to SVG, PNG, or PDF is required (can select one or more).
  3. The Agent generates the PlantUML source code and completes rendering based on the Skill; you can request adjustments to element naming or relationships in the conversation and then re-export.

Example expression (explains input format only, not an official fixed template):

Please use plantuml-skill to draw a sequence diagram: a client calls an API gateway, and the gateway calls a user service; finally export as PNG.

Scenarios and Notes

Who it is for: Developers who need to quickly produce standard UML diagrams in documentation, reviews, or communication, and want to minimize hand-writing PlantUML; teams that prefer output styles resembling common examples on uml-diagrams.org.

Usage Notes:

  • For complex diagrams, it is still recommended to manually verify semantics and layout after generation; the more specific the natural language description, the more stable the result.
  • Rendering depends on the process and environment defined within the Skill (e.g., local or built-in PlantUML toolchain); if export fails, check whether the client allows executing the rendering steps within the Skill.
  • SkillHub metadata shows this skill has a rating of 100000, 904 downloads, and 0 installs (statistics vary with store updates; refer to the page at the time of writing).

Conclusion

plantuml-skill condenses “drawing UML” into a single step within a conversation: Natural language description → uml-diagrams.org style PlantUML → SVG / PNG / PDF. To install or view details, you can open the SkillHub page:

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

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

Xiaoye