plantuml
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:

More from xenodium/emacs-skills
emacsclient
Always use emacsclient instead of emacs. This applies to all Emacs operations: user requests, byte compilation, check-parens, running ERT tests, and any other elisp evaluation.
59describe
This skill should be used when the user invokes "/describe" to look up Emacs documentation via emacsclient.
43dired
This skill should be used when the user invokes "/dired" to open files from the latest interaction in an Emacs dired buffer via emacsclient.
42open
This skill should be used when the user invokes "/open" to open files from the latest interaction in Emacs buffers via emacsclient.
40select
This skill should be used when the user invokes "/select" to open one or more files in Emacs and select a region relevant to the current discussion via emacsclient.
39highlight
This skill should be used when the user invokes "/highlight" to highlight relevant regions in one or more files in Emacs via emacsclient.
39