xenodium/emacs-skills/gnuplot

Claude Code and agent skill by xenodium/emacs-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

This skill should be used when the user invokes "/gnuplot" to plot data from the current context using gnuplot and output the resulting image path.

Install

npx vskill@latest install xenodium/emacs-skills/gnuplot

SKILL.md

Plot data with gnuplot

Plot data from the most recent interaction context using gnuplot. Generate a PNG image with a transparent background and output it as a markdown image so it renders inline.

How to plot

  1. Extract or derive plottable data from the current context.
  2. If the Emacs foreground color is not already known from a previous plot in this session, query it:

``sh emacsclient --eval ' (face-foreground (quote default))' ` This returns a hex color like "#eeffff"`. Reuse it for all subsequent plots.

  1. Write a gnuplot script to a temporary file using that color.
  2. Run gnuplot on the script.
  3. Output the result as a markdown image on its own line:

`` ![description](/tmp/agent-plot-XXXX.png) ``

sh
gnuplot /tmp/agent-plot-XXXX.gp

Gnuplot script template

gnuplot
set terminal pngcairo transparent enhanced size 800,500
set output "/tmp/agent-plot-XXXX.png"
FG = "#eeffff" # from emacsclient query
set border lc rgb FG
set key textcolor rgb FG noopaque nobox # transparent: Emacs bg shows through, FG text stays legible
set xlabel textcolor rgb FG
set ylabel textcolor rgb FG
set title textcolor rgb FG
set xtics textcolor rgb FG
set ytics textcolor rgb FG
# ... plot commands using the data ...

Rules

  • Query the Emacs foreground color once per session and reuse it for all subsequent plots. Only query again if the color is not already known.
  • Always use pngcairo transparent terminal for transparent background.
  • Always use a timestamp in the filename (e.g., /tmp/agent-plot-$(date +%s).png). Never use descriptive names like agent-plot-lorenz.png.
  • Use inline data ($DATA << EOD ... EOD) when practical. For large datasets, write a separate data file.
  • After gnuplot runs successfully, output a markdown image (![description](path)) on its own line.
  • Choose an appropriate plot type for the data (lines, bars, histogram, scatter, etc.).
  • Include a title, axis labels, and a legend when they add clarity.
  • Keep the legend transparent (noopaque, no box) so the Emacs background shows through and the FG-colored text stays legible. Never make the key opaque: on a transparent terminal it fills the key box with an opaque (often white) background, which hides the light FG text. If the legend would overlap dense or filled data, move it to an empty corner or use set key outside rather than making it opaque.
  • Keep plot fills semi-transparent (e.g. fs transparent solid 0.15) so any legend or labels drawn over them remain readable against the Emacs background.
  • Use enhanced text mode for subscripts/superscripts when needed.
  • If no plottable data exists in the recent context, inform the user.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
145
Repository forks
17
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/xenodium/emacs-skills/gnuplot/badge)](https://verified-skill.com/skills/xenodium/emacs-skills/gnuplot)

Something wrong with this skill or its page? Tell us.