跳到正文
Skillpedia
分析与电子表格5.4k · #14862

figure-style

它能做什么

这项技能教智能体为将出现在论文或报告中的科学图表制定标准。内容包括准确性、标签清晰度、颜色一致性,以及检查渲染后的图表,但不设定特定的视觉风格。

适用场景

  • ✓当研究人员需要一张将出现在论文、报告或保存导出文件中的图表时。
  • ✓当图表必须与数据完全一致,并且标签清晰易读时。
  • ✓当图表的颜色或标签有问题,需要进行质量检查时。

技能链接

https://github.com/aipoch/open-science/blob/main/resources/skills/figure-style/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/aipoch/open-science/blob/main/resources/skills/figure-style/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请根据这些数据为我的报告制作最终图表,标签要清楚,各面板的颜色要保持一致。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会把图表规则应用到绘图代码中,包括数据检查、标签精简和颜色规则。它会渲染图表并检查图像,然后再交付图表。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Publication-Grade Figure Rules

A checklist for correct, legible, internally-consistent scientific figures. This skill does not impose a visual house style — frame, font, and palette are parameters. Before plotting, follow the Notebook call below and invoke apply_figure_style().

Open-Science Notebook call

Every notebook_execute request whose code uses a function named in this skill includes this skill ID:

{ "kernelSkillIds": ["figure-style"], "code": "apply_figure_style()\n..." }

kernelSkillIds contains the skill ID; function calls belong in code. This request is complete as written: call the named functions directly and do not add an import or discovery step.

§0 Scope

Load trigger (same rule as the system prompt's "Publication-grade plots" section): this skill is for final-deliverable figures — those shipping in a report, paper, or export, or saved as an artifact the user will keep — not for exploratory/intermediate plots (quick looks, EDA, sanity checks), which are drawn plainly without it. Once loaded, "every plot" below means every plot you render toward the deliverable.

§1–§3, §8, and §9 are correctness — they apply to every plot, in every context, and have no aesthetic content. §4–§7 are guidance — defaults that produce a clean result but that a deliberate alternative can override (individual rules inside §4–§7 that state a factual/perceptual invariant — e.g. §4.4 semantic-zero centering, §4.5 CVD, §6.9 leader anchoring — still bind). On its own, this skill is the inner tier (make one plot good); figure-composer and paper-narrative supply multi-panel and whole-paper context.


§1 Data fidelity & self-consistency

1.1 Excluded rows. A row marked excluded or flagged in the source data is either omitted entirely or drawn with a visually distinct open/hatched marker and named in the key. It never enters a summary statistic plotted alongside the included rows.

1.2 Comparable conditions only. Arms measured under non-comparable conditions (different N, epoch budget, initialization, protocol) are not plotted as visual peers. Separate them with a facet break or a marker on the label, and state the difference once in the caption.

1.3 Self-consistency. Every key, threshold, and title inside the figure must be satisfied by every plotted row. Before saving, walk each categorical outcome label back to the rule that defines it; if a row's value contradicts its label or the title, the figure is wrong, not the data.

1.4 Claim-titles must be true. A sentence-title (§5.1) is tested against every category on the axis before rendering. If any contradicts it, qualify the title ("on 3 of 4 pairs") or downgrade it to a description.

1.5 State n and what was held fixed. Every panel that draws a summary mark states n and the unit of replication, and every small-multiple that holds a variable fixed states the fixed value — in the panel or, when §2 budget is tight, in the caption.

1.6 Reference structure is reference. A tree, ordering, or topology drawn as context (a scale bar, a category strip) uses an established reference, not one inferred from the plotted data. Infer the structure only when the structure is the result.

1.7 One number per claim. A quantitative claim (runtime, accuracy, count) has exactly one canonical value across every panel, caption, and the abstract. Define what it measures and use that value everywhere.


§2 Label economy — floor and ceiling

The figure shows the pattern; the caption carries the context. Design for a general scientific reader, not the author.

2.1 Floor (non-removable). Every distinct mark, series, glyph, or comparator must be identifiable from the figure alone. The caption explains why it matters, not what it is. A label is non-removable if deleting it leaves a reader asking "what is that?"; it is removable only if the question becomes "why is that there?". Comparator labels name the thing ("prior method", "no joint training"), never a bare role word ("baseline", "previous"). Any term a general scientist can't parse gets a one-word gloss.

2.2 Ceiling. Per panel: title + axis labels + tick labels + series identity (labeled once per row of small multiples) + at most 2–3 result annotations. Count the strings; >6 beyond axes/ticks means you're over. The ceiling counts narrative annotations (callouts, value labels, brackets) — identity labels are floor, not budget.

**2

常见问题

它适用于快速绘图吗?

不适用。技能是为最终成果制定的,快速探索性的绘图会保持简单。

它规定了统一的版式风格吗?

没有。技能说明,边框、字体和配色都是用户可以设置的参数。

笔记本调用做了什么?

它会先调用技能指定的样式函数,应用图表样式设置,再开始绘图。

详情

作者的原始描述

Publication-grade correctness and legibility rules for final-deliverable scientific figures, not exploratory plots. Use for a figure that will ship in a report, paper, export, or kept artifact. Covers data fidelity, label economy, color threading, chart choice, layout, and render-then-verify QA without imposing a visual house style. For multi-panel composition use `figure-composer`; for whole-paper ordering use `paper-narrative`.

repo: aipoch/open-science

热度

GitHub 星标
5.4k
排名
#14862
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能