npx skills add ...
npx skills add lingzhi227/agent-research-skills --skill figure-generation
Generate publication-quality scientific figures using matplotlib/seaborn with a three-phase pipeline (query expansion, code generation with execution, VLM visual feedback). Handles bar charts, line plots, heatmaps, training curves, ablation plots, and more. Use when the user needs figures, plots, or visualizations for a paper.
npx skills add lingzhi227/agent-research-skills --skill figure-generation
Generate publication-quality figures for research papers.
$0 — Description of the desired figure$1 — (Optional) Path to data file (CSV, JSON, NPY, PKL) or results directoryAvailable types: bar, training-curve, heatmap, ablation, line, scatter, radar, violin, tsne, attention
Expand the user's figure description into step-by-step coding specifications using the prompts in references/figure-prompts.md. Determine: figure type, data mapping (x/y/color/hue), style requirements, paper conventions.
scripts/figure_template.py as a starting pointpython figure_script.py.png produced: add explicit save instruction, retryRead the generated PNG file and visually inspect using the VLM feedback prompts from references/figure-prompts.md:
If improvements needed: generate corrective instructions and re-execute.
~/.claude/skills/figure-generation/references/figure-prompts.md~/.claude/skills/figure-generation/scripts/figure_template.pyBoth PNG (preview, 300 DPI) and PDF (vector, for paper) formats. Plus the LaTeX include code: