figure-generation
Skill14 starsChanged 11 days agoApache-2.0View on GitHub
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.
6 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- hua695/MathModeling-Skills-Arsenalword for word, first seen Oct 25, 2026
- willlee1995/skillsword for word, first seen Oct 13, 2026
- dongzhigang13305312738-art/paper-skillsword for word, first seen Jul 21, 2026
- sergeeey/Claude-cod-top-2026edited, first seen May 13, 2026
- Chanw-research/claude-code-paper-writingword for word, first seen May 10, 2026
- lingzhi227/agent-research-skillsword for word, first seen Feb 20, 2026
Other versions6 projects use a version of this.
Word for word · 5
- lingzhi227/agent-research-skills★ 350100% same
- Chanw-research/claude-code-paper-writing★ 42100% same
- hua695/MathModeling-Skills-Arsenal★ 12100% same
- dongzhigang13305312738-art/paper-skills★ 1100% same
- willlee1995/skills★ 1100% same
Edited · 1
- sergeeey/Claude-cod-top-2026★ 996% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/01-core/contest-orchestrator/AGENTS.mdAGENTS.md
- skills/04-figures/tech-route-maker/AGENTS.mdAGENTS.md
- skills/03-writing/bzd-review-paper/CLAUDE.mdCLAUDE.md
- skills/04-figures/tech-route-maker/CLAUDE.mdCLAUDE.md
- contest-orchestratorSkill
- data-science-stackSkill
- heuristic-algorithmsSkill
- math-model-selectorSkill
- pyomoSkill
- academic-writingSkill
- bzd-review-paperSkill
- mathmodel-latex-skillSkill
- 论文辅助Skill
- drawio-diagramSkill
- fireworks-tech-graphSkill
- modelviz-skillSkill
- scipilot-figure-skillSkill
- tech-route-makerSkill
- tikz-scientific-figuresSkill
- browser-cdpSkill
- humanizer-zhSkill
- markitdown-skillSkill
- web-accessSkill
- darwin-skillSkill
- self-improvementSkill
- skill-audit-cleanupSkill
- story-coverSkill
- story-deslopSkill
- story-importSkill
- story-long-analyzeSkill
- story-long-scanSkill
- story-long-writeSkill
- story-reviewSkill
- story-setupSkill
- story-short-analyzeSkill
- story-short-scanSkill
- story-short-writeSkill
- storySkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Write script to a temp file and execute: python figure_script.py
- Very specific: line 34
If error: capture traceback, feed back, regenerate (see ERROR_PROMPT in references)
- Very specific: line 35
If no .png produced: add explicit save instruction, retry
- Very specific: line 39
Read the generated PNG file and visually inspect using the VLM feedback prompts from references/figure-prompts.md:
- Distinctive: line 45
If improvements needed: generate corrective instructions and re-execute.
- Very specific: line 49
All MatPlotAgent prompts: ~/.claude/skills/figure-generation/references/figure-prompts.md
- Distinctive: line 68
All text ≥ 8pt at print size
- Distinctive: line 70
No matplotlib default title — use LaTeX caption
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Scientific Figure Generation
Generate publication-quality figures for research papers.
Input
$0— Description of the desired figure$1— (Optional) Path to data file (CSV, JSON, NPY, PKL) or results directory
Scripts
Generate figure template
python ~/.claude/skills/figure-generation/scripts/figure_template.py --type bar --output figure_script.py --name comparison
python ~/.claude/skills/figure-generation/scripts/figure_template.py --list-typesAvailable types: bar, training-curve, heatmap, ablation, line, scatter, radar, violin, tsne, attention
Three-Phase Pipeline (from MatPlotAgent)
Phase 1: Query Expansion
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.
Phase 2: Code Generation with Execution Loop (up to 4 retries)
- Generate a self-contained Python script using the template from
scripts/figure_template.pyas a starting point - Write script to a temp file and execute:
python figure_script.py - If error: capture traceback, feed back, regenerate (see ERROR_PROMPT in references)
- If no
.pngproduced: add explicit save instruction, retry - On success: report the generated figure path
Phase 3: Visual Refinement
Read the generated PNG file and visually inspect using the VLM feedback prompts from references/figure-prompts.md:
- Does the figure type match the request?
- Are labels, titles, and legends correct?
- Is the color scheme appropriate and consistent?
- Are axis scales sensible? Is text readable at publication size?
If improvements needed: generate corrective instructions and re-execute.
References
- All MatPlotAgent prompts:
~/.claude/skills/figure-generation/references/figure-prompts.md - Figure templates:
~/.claude/skills/figure-generation/scripts/figure_template.py
Output
Both PNG (preview, 300 DPI) and PDF (vector, for paper) formats. Plus the LaTeX include code:
\begin{figure}[t]
\centering
\includegraphics[width=\linewidth]{figures/figure_name.pdf}
\caption{Description. Best viewed in color.}
\label{fig:figure_name}
\end{figure}Quality Requirements
- DPI ≥ 300, or vector PDF
- Colorblind-friendly palette (no red-green only)
- All text ≥ 8pt at print size
- Consistent styling across all paper figures
- No matplotlib default title — use LaTeX caption
Related Skills
- Upstream: data-analysis, experiment-code
- Downstream: paper-writing-section, paper-compilation, slide-generation
- See also: table-generation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

