plantuml-image-generator
SKILL.md
PlantUML Image Generator
When to Apply
- When the user asks "draw a diagram for me" or "I need an architecture/flowchart/sequence/state-machine diagram".
- When the user requires inserting an illustration of business processes or structural diagrams into development documents, READMEs, or any Markdown files.
- When you need to visually explain complex code logic to the user for better understanding.
Execution Rules
-
Requirement Analysis & Code Generation:
- Extract the elements and relationships that need visualization based on the user's context.
- Write standard PlantUML syntax code (must start with
@startumland end with@enduml).
-
Core Encoding Logic (URL Generation): Convert the generated PlantUML code into
ENCODED_TEXTusing specific encoding rules:- First, encode the PlantUML source code into
UTF-8. - Compress it using the
zlib/Deflatealgorithm. - Re-encode the compressed result using PlantUML's specialized Base64 dictionary (variant:
0-9, A-Z, a-z, -, _).
- First, encode the PlantUML source code into