figure-composer
它能做什么
这项技能教智能体如何为科学论文制作完整的多面板图表。它根据一句话论点和数据规划布局,制作每个面板,检查结果并进行优化。
适用场景
- ✓当研究人员需要为论文、报告或导出文件制作一张多面板图表时。
- ✓当研究人员有论点和数据,需要排版图表以支持该论点时。
- ✓当研究人员希望为审阅草拟现有图表的大纲时。
技能链接
https://github.com/aipoch/open-science/blob/main/resources/skills/figure-composer/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为论文制作一张三面板图表,用我的数据文件支持“治疗可以缩小肿瘤”这一论点。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会规划一个十二列的面板布局,分别制作每个面板,然后合并成一张图表。随后它会审阅合成图,并只重新生成需要修改的面板,最多进行三轮审阅。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Figure Composer — narrative → panels → compose → adversarial loop
figure-composer is the outer workflow for one multi-panel figure. Use the
figure-style rules while planning and reviewing; every panel worker uses those
rules independently. Run paper-narrative first when the paper-level figure
sequence is still undecided.
Open-Science Notebook call
Every notebook_execute request whose code uses a function named in this skill
includes this skill ID:
{ "kernelSkillIds": ["figure-composer"], "code": "print(figure_outline_schema())" }
kernelSkillIds contains the skill ID; function calls belong in code. Call the
named functions directly without an import or discovery step.
Inputs
claim: the one sentence the figure makes true without surrounding prose.dataVersionIds: immutable Upload or Artifact Version identities grounding the panels.width_mm: venue column width, commonly 85–89 mm single or 174–183 mm double.rulesVersionId: immutable Artifact Version containing the design rules used by the composite reviewer.delegatePrefix: short branch-unique prefix for panel and reviewer child names.
Run this workflow only in the Main/root agent. Delegated children cannot call
host.delegate, so the whole composer cannot itself be delegated.
Entry points
- From a claim: Main writes the outline in step 1 from the claim, data, and
figure-stylerules. - From an existing figure: inspect it with
host.viewImage, then have Main draft and review the outline directly. Currenthost.llmcalls do not accept images, so do not add a second hidden inference step. Pixels cannot supply Artifact Version identities; filldata_vidfrom the provided data.
1. Narrative → panel outline
Main produces a panel_outline matching figure_outline_schema():
{
"claim": "…",
"width_mm": 180,
"ncol": 12,
"row_heights_mm": [40, 60, 46, 52],
"panels": [
{
"letter": "a",
"role": "schematic",
"row": 0,
"col": 0,
"colspan": 12,
"chart_family": "schematic overview",
"message": "…",
"data_vid": null,
"ask": "…"
},
{
"letter": "b",
"role": "primary",
"row": 1,
"col": 0,
"colspan": 7,
"chart_family": "scatter + trend",
"message": "…",
"data_vid": "…",
"ask": "…"
}
]
}
Outline rules:
- A is the context-free hook: schematic or hero, normally full width.
- B carries the claim: it should make the sentence true on its own.
- Remaining panels add evidence in descending importance.
- Use one row per sub-claim, normally 5–10 panels, and a 12-column grid.
- Every non-schematic
data_vidmust be one of the supplied immutable Version identities. Do not invent or rewrite Version IDs. - Set
fixed_panel_set: trueonly when the user explicitly requires the exact listed panels.
Geometry helpers reject duplicate panel letters (case-insensitive), overlapping grid spans, panels outside the grid, and invalid or subpixel grid dimensions. Use unique panel identifiers and non-overlapping positive spans within the grid.
Review the outline before fan-out. Use the schema as a contract; Main does the
reasoning and does not call host.llm to generate the outline again.
2. Fan out panel workers
Generate each task in Python with panel_task(outline, letter, fig_label). The
returned task contains the complete panel procedure. Pass it unchanged on the
first render and supply the panel's data Version in inputs.
Dispatch from repl_execute. host.delegate accepts at most four children per
atomic call, so send ordered waves of no more than four. Each request uses this
output schema:
const panelOutputSchema = {
type: 'object',
additionalProperties: false,
required: ['panelVersionId', 'labelsUsed'],
properties: {
panelVersionId: { type: 'string', minLength: 1 },
labelsUsed: { type: 'array', items: { type: 'string' } }
}
}
Use wait: false, then collect the exact { frameId, attemptId } receipt
handles. A collect timeout ends observation, not the child Attempt: collect
the same handles again while any remain running. Retry only after a terminal
failure or an explicitly rejected output, using a fresh child name. Panel
workers must submit their structured result with host.submitOutput before
finishing. Reject a non-completed/error child, missing or unsatisfied structured
output, a missing or duplicate e
常见问题
子智能体能运行整个流程吗?
不能。技能说明,应由主智能体运行该流程,因为被委派的子任务无法再发起新的委派。
它使用什么宽度?
它使用期刊的栏宽,例如单栏为 85 到 89 毫米。
它需要单独的样式技能吗?
需要。规划和审阅时,技能会使用图表样式规则。
详情
作者的原始描述
Compose one publication-grade multi-panel figure. Start from a one-line claim plus immutable data Artifact Version references, or inspect an existing figure and draft its outline directly. Plan a 12-column panel outline, delegate one worker per panel, compose and inspect the result, then run at most three adversarial review rounds while regenerating only affected panels. For a standalone plot use `figure-style`; for whole-paper figure ordering use `paper-narrative`.
repo: aipoch/open-science
热度
- GitHub 星标
- 5.4k
- 排名
- #14861
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
alphafold2
5.4k帮你的智能体通过 ColabFold 运行器,使用 AlphaFold2 根据蛋白质序列预测其三维结构,包括蛋白质复合物。
boltz
5.4k帮你的智能体使用开源的 Boltz-2 模型预测蛋白质、DNA、RNA 和小分子复合物的结构,并可选择估算结合亲和力。
borzoi
5.4k帮你的智能体根据 DNA 序列预测全基因组的活性轨迹,例如表达和可及性,并通过预测效果比较变异。
chai1
5.4k帮你的智能体通过一个 FASTA 文件,使用 Apache 许可的 Chai-1 模型预测蛋白质、核酸和配体复合物的结构。