Skip to content
Skillpedia
Images & icons18k Β· #10560

paper-figure

What it does

This skill makes charts and tables for a research paper directly from your experiment data. It is for authors who need clean data figures, not architecture diagrams.

When to use it

  • βœ“When you need training curves, bar charts, or heatmaps from experiment results.
  • βœ“When you want a LaTeX comparison table built from your results.
  • βœ“When you need several plots combined into one multi-panel figure.

Skill link

https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/paper-figure/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/paper-figure/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œI need clean figures and comparison tables made from my experiment results for the paper.”

5 new skills a week. 1 minute to read.

How it works

The agent reads your result files, produces the plots and tables with consistent styling, and saves them for the paper. Architecture diagrams are handled by other skills.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Paper Figure: Publication-Quality Plots from Experiment Data

Before each reviewer slot, follow Selectable Reviewers: resolve invocation β†’ .aris/reviewer.json β†’ Claude Code default (Codex MCP) with reviewer_route.py through the canonical helper resolver, preserving this slot's tier, fresh contexts, source/image inputs and deterministic gates. Codex examples/pins below apply only to backend=codex; other routes use their own first-call/reply contract. Save the route and actual returned identity; unavailable selections are REVIEW_UNAVAILABLE. Classify acceptance from actual families/completion/scope. Forward invocation reviewer/model/effort overrides to reviewer-bearing children. Generation workers are unchanged.

Generate all figures and tables for a paper based on: $ARGUMENTS

Scope: What This Skill Can and Cannot Do

Category Can auto-generate? Examples
Data-driven plots βœ… Yes Line plots (training curves), bar charts (method comparison), scatter plots, heatmaps, box/violin plots
Comparison tables βœ… Yes LaTeX tables comparing prior bounds, method features, ablation results
Multi-panel figures βœ… Yes Subfigure grids combining multiple plots (e.g., 3Γ—3 dataset Γ— method)
Architecture/pipeline diagrams ❌ No β€” manual Model architecture, data flow diagrams, system overviews. At best can generate a rough TikZ skeleton, but expect to draw these yourself using tools like draw.io, Figma, or TikZ
Generated image grids ❌ No β€” manual Grids of generated samples (e.g., GAN/diffusion outputs). These come from running your model, not from this skill
Photographs / screenshots ❌ No β€” manual Real-world images, UI screenshots, qualitative examples

In practice: For a typical ML paper, this skill handles ~60% of figures (all data plots + tables). The remaining ~40% (hero figure, architecture diagram, qualitative results) need to be created manually and placed in figures/ before running /paper-write. The skill will detect these as "existing figures" and preserve them.

Constants

  • STYLE = publication β€” Visual style preset. Options: publication (default, clean for print), poster (larger fonts), slide (bold colors)
  • DPI = 300 β€” Output resolution
  • FORMAT = pdf β€” Output format. Options: pdf (vector, best for LaTeX), png (raster fallback)
  • COLOR_PALETTE = tab10 β€” Default matplotlib color cycle. Options: tab10, Set2, colorblind (deuteranopia-safe)
  • FONT_SIZE = 10 β€” Base font size (matches typical conference body text)
  • FIG_DIR = figures/ β€” Output directory for generated figures
  • REVIEWER_MODEL = gpt-6-astra β€” Model used via Codex MCP for figure quality review.

Inputs

  1. PAPER_PLAN.md β€” figure plan table (from /paper-plan)
  2. Experiment data β€” JSON files, CSV files, or screen logs in figures/ or project root
  3. Existing figures β€” any manually created figures to preserve

If no PAPER_PLAN.md exists, scan for data files and ask the user which figures to generate.

Workflow

Step 1: Read Figure Plan

Parse the Figure Plan table from PAPER_PLAN.md:

| ID | Type | Description | Data Source | Priority |
|----|------|-------------|-------------|----------|
| Fig 1 | Architecture | ... | manual | HIGH |
| Fig 2 | Line plot | ... | figures/exp.json | HIGH |

Identify:

  • Which figures can be auto-generated from data
  • Which need manual creation (architecture diagrams, etc.)
  • Which are comparison tables (generate as LaTeX)

Step 2: Set Up Plotting Environment

Create a shared style configuration script:

# paper_plot_style.py β€” shared across all figure scripts
import matplotlib.pyplot as plt
import matplotlib
matplotlib.rcParams.update({
    'font.size': FONT_SIZE,
    'font.family': 'serif',
    'font.serif': ['Times New Roman', 'Times', 'DejaVu Serif'],
    'axes.labelsize': FONT_SIZE,
    'axes.titlesize': FONT_SIZE + 1,
    'xtick.labelsize': FONT_SIZE - 1,
    'ytick.labelsize': FONT_SIZE - 1,
    'legend.fontsize': FONT_SIZE - 1,
    'figure.dpi': DPI,
    'savefig.dpi': DPI,
    'savefig.bbox': 'tight',
    'savefig.pad_inches': 0.05,
    'axes.grid': False,
    'axes.spines.top': False,
    'axes.spines.right': False,
    'text.usetex': False,  # set True if LaTeX is available
    'mathtext.fontset': 'stix',
})

#
FAQ

Which chart types can it make?

Line plots, bar charts, scatter plots, heatmaps, and box or violin plots.

Can it draw system architecture diagrams?

No. The skill says those need other tools, such as the figure spec or illustration skills.

Can it make LaTeX tables?

Yes. It can create comparison tables for prior bounds, method features, and ablation results.

Details

Original description by the author

Generate publication-quality figures and tables from experiment results. Use when user says \"η”»ε›Ύ\", \"δ½œε›Ύ\", \"generate figures\", \"paper figures\", or needs plots for a paper.

repo: wanshuiyin/Auto-claude-code-research-in-sleep

Popularity

GitHub stars
18k
Ranking position
#10560
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills