paperFig
它能做什么
这项技能根据绘图代码和真实的项目数据,为论文制作科学图表,并检查其输出。适合需要为手稿准备清晰、准确图表的研究人员。
适用场景
- ✓当你需要根据绘图代码和数据制作可用于发表的图表时。
- ✓当你想用自己的数据重现某个参考图表的版式时。
- ✓当你需要为论文制作多面板图表或模型架构图的时候。
技能链接
https://github.com/WUBING2023/PaperSpine/blob/main/paperspine5/core/02_PaperFigure/02_paperFig_skill/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请根据我的结果 CSV 制作一张可用于发表的图表,用不同面板展示三个模型的准确率,并输出为 PDF 和 SVG。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能先盘点你的代码和数据,规划图表的叙事和版式,然后用统一的视觉风格进行制作。它会把输出渲染为 PDF、SVG 和 PNG,并在交付前进行检查。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
paperFig
Create scientifically faithful, publication-quality figures through a repeatable process from evidence inventory to final render QA.
This skill governs the research-figure process only. It does not include anonymization, data perturbation, synthetic replacement, identifier removal, or privacy guarantees. If the user separately requests those operations, treat them as an additional workflow with an explicit data-release contract; do not silently mix them into ordinary scientific plotting.
Mandatory routing
Read the following references before acting:
references/research-figure-process.mdfor the phase-by-phase workflow.references/reference-deconstruction.mdbefore imitating or adapting a reference figure.references/architecture-and-multipanel-design.mdfor model diagrams or compound figures.references/scientific-visual-qa.mdbefore final generation and delivery.
Use the PDF skill whenever a PDF is read, created, or reviewed. Use the spreadsheets skill when the main source is an XLSX workbook requiring inspection or transformation.
Trigger conditions
Use this skill when the user asks to:
- create or improve scientific, academic, or paper figures;
- locate the plotting code and data behind figures in a PDF or directory;
- reproduce the visual logic of public reference figures with project data;
- build a model architecture, Transformer diagram, mechanism schematic, or evidence-backed workflow panel;
- redesign benchmark, ablation, transfer, interpretability, or mechanism figures;
- assemble a consistent multi-figure suite or reference-vs-redraw atlas;
- standardize an existing plotting project into a reusable process.
Do not use it for generic illustration, ordinary photo editing, UI design, or privacy/anonymization as the primary objective.
Core principles
- Scientific truth before aesthetics. Preserve actual data, statistics, units, pairing, uncertainty, sample size, ordering, and analysis logic.
- Reference mechanism, not superficial copying. Identify why the reference persuades and transfer that mechanism to the new scientific claim.
- Source traceability. Every final panel must map to plotting code and data inputs, or be explicitly marked as a schematic.
- One panel, one job. Each panel answers a distinct scientific question.
- Complexity must be earned. Dense figures need a clear reading path and evidence hierarchy; decorative complexity is not rigor.
- Render verification is mandatory. A script that runs is not a finished figure until the exported artifact has been visually inspected.
Inputs
Discover these from the project before asking the user:
- reference PDF/images and local citation/index notes;
- existing paper figures, drafts, and rejected variants;
- plotting scripts, notebooks, helper modules, and style files;
- CSV/TSV/XLSX/JSON/NPY/NPZ inputs and generated caches;
- model source code for architecture details;
- paper section, claim, or result that the figure must support;
- target venue, column width, page size, and output formats.
Ask only when a missing choice materially changes the scientific story, such as which result is primary or whether a panel is schematic versus measured.
Workflow
1. Inventory figures, code, and data
Run:
python scripts/inspect_figure_project.py --root "<project-root>" --output "<work-dir>/source-map.md"
Manually verify important mappings. Filename similarity is only a candidate;
imports, data reads, savefig paths, and visual comparison are stronger
evidence.
Create or update a figure manifest based on
assets/figure_manifest.example.json. Every requested figure records:
- figure/panel ID;
- scientific question and intended conclusion;
- public reference(s);
- existing figure(s);
- plotting source;
- data inputs;
- statistical transformation;
- output files;
- verification status.
For tabular medical sources that match the FigMirror clinical-cbc contract,
run figmirror.py render-data-study before candidate finalization. Treat its
data_profile.json, analysis_summary.csv, and data_binding.json as derived
evidence, not replacements for the read-only source workbook. Never infer
units, reference intervals, clinical thresholds, or repeated-person identity
when the workbook does not provide them.
2. Deconstruct the references
Follow references/reference-deconstruction.md.
For each reference, document:
- what cl
常见问题
它能把图表追溯到我的数据吗?
可以。技能会把每张图表追溯到其源代码和输入。
它能输出哪些文件类型?
它可以渲染 PDF、SVG 和 PNG 格式的输出。
它包括数据匿名化吗?
不包括。描述中说明,这项技能只涵盖研究图表的制作过程,不涉及数据匿名化。
详情
作者的原始描述
Design, implement, revise, and validate publication-quality scientific figures from references, existing plotting code, and real project data. Trace every figure to source code and inputs; deconstruct reference figures; plan the scientific story and multi-panel structure; build complex model architecture and statistical panels; enforce a consistent visual system; and render-verify PDF/SVG/PNG outputs. Use for 科研配图, 论文配图, 找图的源代码, 参考图复刻与改造, 模型框架图, 多面板主图, figure redesign, or standardizing a research-figure process.
repo: WUBING2023/PaperSpine
热度
- GitHub 星标
- 6.2k
- 排名
- #14409
- 许可证
- MIT
- 更新时间
- 2026/10/14
评论
- …