plantuml
Installation
SKILL.md
Create diagrams with PlantUML
Create a diagram from the most recent interaction context using PlantUML. Generate a PNG image with a transparent background and output it as a markdown image so it renders inline.
How to create a diagram
- Extract or derive diagrammable data from the current context.
- If the Emacs foreground color is not already known from a previous diagram in this session, query it:
This returns a hex color likeemacsclient --eval ' (face-foreground (quote default))'"#eeffff". Reuse it for all subsequent diagrams. - Write a PlantUML file to a temporary file using that color.
- Run PlantUML on the file.
- Output the result as a markdown image on its own line:
