Plots data from the current conversation context using matplotlib via uv, outputting a transparent-background PNG that renders inline. Useful for quick ad-hoc visualizations without leaving the chat.
Ships in emacs-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Plot data from the most recent interaction context using matplotlib. Generate a PNG image with a transparent background and output it as a markdown image so it renders inline.
emacsclient --eval '
(face-foreground (quote default))'
This returns a hex color like "#eeffff". Reuse it for all subsequent plots.uv run --with matplotlib.
uv run --with matplotlib /tmp/agent-plot-XXXX.py
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(10, 6))
fig.patch.set_alpha(0)
ax.set_facecolor('none')
FG = "#eeffff" # from emacsclient query
ax.spines['bottom'].set_color(FG)
ax.spines['left'].set_color(FG)
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)
ax.tick_params(colors=FG)
ax.xaxis.label.set_color(FG)
ax.yaxis.label.set_color(FG)
ax.title.set_color(FG)
# ... plot commands using the data ...
plt.tight_layout()
plt.savefig("/tmp/agent-plot-XXXX.png", dpi=150, transparent=True)
fig.patch.set_alpha(0) and ax.set_facecolor('none') for transparent background.transparent=True in savefig./tmp/agent-plot-$(date +%s).png). Never use descriptive names like agent-plot-lorenz.png.uv run --with matplotlib. Do not use pip install.) on its own line.ax.legend(facecolor='#1a1a2e', edgecolor=FG, labelcolor=FG) for dark backgrounds.ax.grid(True, alpha=0.2, color=FG) for subtle gridlines.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/emacs-skills:matplotlibfrom emacs-skills
npx claudepluginhub xenodium/emacs-skills --plugin emacs-skills19 skills in this plugin
/d2This skill should be used when the user invokes "/d2" to create a diagram from the current context using D2 and output the resulting image path./describeThis skill should be used when the user invokes "/describe" to look up Emacs documentation via emacsclient./diredThis skill should be used when the user invokes "/dired" to open files from the latest interaction in an Emacs dired buffer via emacsclient./emacsclientAlways 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./file-linksWhen referencing files, format them as markdown links with line numbers using GitHub-style #L syntax./github-activityThis skill should be used when the user invokes "/github-activity" to analyze a GitHub project's recent activity (PRs and issues) and produce a succinct, chart-backed health report.Other plugins' skills for the same job