AgentSkillsCN

paper-figure-redraw

适用于需要重现纸质图表的场景。可生成scripts/make_figures.py脚本,读取聚合后的输出数据,以匹配的坐标轴、图例与平滑处理,重新绘制目标图表的每个面板。

SKILL.md
--- frontmatter
name: paper-figure-redraw
description: Use when recreating paper figures. Produces scripts/make_figures.py that reads aggregated outputs and redraws each target figure panel with matching axes, legends, and smoothing.

Redraw the paper’s figures from logged outputs.

Steps:

  1. For each target figure/panel, define in code:
    • input files (curves, summary stats)
    • axis labels + units
    • x-axis scale and limits
    • y-axis limits
    • smoothing (if any) and CI style
  2. Implement scripts/make_figures.py using matplotlib.
  3. Save outputs to figures/ with deterministic filenames:
    • figures/fig_<X>.png and figures/fig_<X>.pdf
  4. Add a “figure manifest” file:
    • figures/manifest.json describing exactly what data produced each figure.
  5. Update README with: python -m scripts.make_figures