Pular para o conteúdo
Skillpedia
Análise e planilhas5,4 mil · #14861

figure-composer

O que ela faz

Esta skill ensina um agente a criar uma figura completa de vários painéis para um artigo científico. Planeja o layout a partir de uma afirmação de uma linha e dos dados, monta cada painel, verifica o resultado e o refina.

Quando usar

  • ✓Quando um pesquisador precisa de uma figura de vários painéis para um artigo, relatório ou exportação.
  • ✓Quando um pesquisador tem uma afirmação e dados e precisa que a figura seja montada para sustentá-la.
  • ✓Quando um pesquisador quer um esboço de uma figura existente para revisão.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/aipoch/open-science/blob/main/resources/skills/figure-composer/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Monte uma figura de três painéis para o meu artigo que sustente a afirmação de que o tratamento reduz o tamanho do tumor, usando meus arquivos de dados.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente planeja um layout de painéis em doze colunas, monta cada painel separadamente e combina tudo em uma única figura. Depois revisa o conjunto e regenera apenas os painéis que precisam de mudanças, com no máximo três rodadas de revisão.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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-style rules.
  • From an existing figure: inspect it with host.viewImage, then have Main draft and review the outline directly. Current host.llm calls do not accept images, so do not add a second hidden inference step. Pixels cannot supply Artifact Version identities; fill data_vid from 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_vid must be one of the supplied immutable Version identities. Do not invent or rewrite Version IDs.
  • Set fixed_panel_set: true only 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

Perguntas frequentes

Um subagente pode rodar este fluxo inteiro?

Não. A skill afirma que o agente principal roda o fluxo, já que os filhos delegados não podem iniciar novas delegações.

Quais larguras ela usa?

Usa a largura da coluna da revista, como de 85 a 89 mm para uma coluna única.

Precisa de outra skill de estilo?

Sim. A skill usa as regras de estilo de figura durante o planejamento e a revisão.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
5,4 mil
Posição no ranking
#14861
Licença
Apache-2.0
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas