Skip to main content
skill CX Codex

figure-generation — Claude Code skill: what it does, how to install

Builds publication-ready scientific plots through query expansion, code execution, and visual verification. Helps researchers format charts for papers.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add lingzhi227/agent-research-skills --skill figure-generation -a claude-code
Open on GitHub

What figure-generation does

The skill generates academic figures using matplotlib and seaborn across three stages. It turns a prompt into detailed specifications, writes a Python script, and runs it locally. If execution throws an error or fails to produce an image, the agent catches the traceback and retries up to 4 times.

Every run exports both a 300 DPI PNG preview and a vector PDF for final document assembly. The tool also prints a ready-to-use \begin{figure} LaTeX snippet. Pre-built templates from scripts/figure_template.py include formats such as heatmaps, radar plots, ablation graphs, and training curves.

A working Python environment is strictly required on your machine. The skill enforces paper publication standards automatically: labels remain at 8pt or larger, palettes avoid red-green confusion, and standard matplotlib titles are swapped for LaTeX captions.

What it helps with

  • create vector PDF plots matching academic paper standards
  • fix matplotlib script execution errors within 4 retries
  • generate accessible figures using colorblind-safe palettes
  • produce LaTeX figure snippets alongside rendered charts

Example prompts for the agent

  • Generate an ablation plot using results from results/ablation.csv
  • Create a training curve in vector PDF format for a conference paper
  • Plot an attention heatmap from attention_weights.npy with colorblind-friendly colors

How to install figure-generation

1Skills CLI (Vercel)

npx skills add lingzhi227/agent-research-skills --skill figure-generation -a claude-code

2Manually: put the files in place

~/.claude/skills/figure-generation/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/figure-generation/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about figure-generation

How to install figure-generation in Claude Code?

Run npx skills add lingzhi227/agent-research-skills --skill figure-generation -a claude-code in your terminal.

What does the figure-generation skill do?

It translates plot requests into executable matplotlib or seaborn code, tests it locally, and refines the visual output across up to 4 retries.

What data inputs and output formats does it handle?

It processes CSV, JSON, NPY, and PKL files. Outputs include 300 DPI PNG previews, vector PDFs, and LaTeX figure code.

Similar skills

Everything for Science and research →

From the same set23

literature-review Conducts academic literature reviews by simulating multi-persona expert dialogue. Organizes retrieved papers and identifies research gaps for new survey papers. CX Codex +1 4,000installs literature-search Find academic papers from several research indexes and prepare bibliography data. Use it when you need related work, source lists, or recent preprints. CX Codex +1 2,600installs math-reasoning Derives equations, writes proofs, formalizes research problems, and produces publication-ready LaTeX markup for research papers. CX Codex +1 2,200installs latex-formatting Sets up conference LaTeX templates, fixes formatting, and runs a pre-submission check. Handy when the deadline is close. CX Codex +1 2,200installs citation-management A skill that keeps citations in a LaTeX paper in order: harvests missing references via Semantic Scholar, validates cite keys against .bib, and formats the bibliography. CX Codex +1 2,100installs backward-traceability Connects every numeric value in a research PDF directly to the source code line that produced it. Helps verify data reproducibility across LaTeX documents. CX Codex +1 2,100installs deep-research Runs a systematic academic literature review on a topic: finds papers, reads them, builds a database and writes a final report. Useful when you need the state of a field, not a few search hits. CX Codex +1 1,900installs research-planning Turns a topic or idea into a structured research plan: methodology, paper sections, dependency-ordered tasks and diagrams. CX Codex +1 1,800installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor