Logo de Codex Paper Figure Skill

Codex Paper Figure Skill

Comunidade
pengqianhan
codex-paper-figure-skill

Create editable academic-paper figures from natural-language figure descriptions, manuscript sections, methods/results text, graphical abstract ideas, or paper-specific visual concepts. Use when Codex needs to turn scientific text into a polished journal-style diagram by first generating a raster visual reference with the image generation tool, then recreating it directly as editable draw.io/.drawio mxGraphModel XML. Also use when a user asks for research figures, paper diagrams, mechanism figures, method overview figures, model architecture figures, workflow schematics, publication-ready editable diagrams, or Flaticon/icon-assisted paper figures using Codex's built-in Browser.

Visão geral

Publicado porpengqianhan
Repositóriocodex-paper-figure-skill
Nome da habilidadecodex-paper-figure-skill
Estrelas
27
Forks
1
Arquivos incluídos
1
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 1

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por pengqianhan no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Codex Paper Figure Skill no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/pengqianhan/codex-paper-figure-skill/tree/main/codex-paper-figure-skill
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pengqianhan/codex-paper-figure-skill.git /tmp/codex-paper-figure-skill
mkdir -p .claude/skills
cp -r /tmp/codex-paper-figure-skill/codex-paper-figure-skill .claude/skills/codex-paper-figure-skill
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Codex Paper Figure Skill em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Codex Paper Figure Skill automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Codex Paper Figure Skill não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Codex Paper Figure Skill

Overview

Transform paper text or a figure concept into a publication-style editable diagram. Use image generation to explore composition and visual style, then rebuild the figure as native draw.io XML so every label, shape, connector, and icon remains editable. This skill is self-contained: it embeds the draw.io generation rules it needs instead of depending on another local skill file.

Workflow

  1. Parse the user's text into a figure brief:

    • Scientific message: the single claim or workflow the figure should communicate.
    • Entities: molecules, cells, devices, models, datasets, modules, cohorts, assays, or variables.
    • Relationships: sequence, causality, comparison, hierarchy, feedback, input/output, or spatial organization. Convert these into a canonical dependency graph before layout: every required input, distinct branch, merge, loss, feedback path, and output gets an explicit node or edge. Trace each depicted edge back to the source; do not disconnect, collapse, reverse, or invent operations for visual convenience.
    • Required labels: paper terms, abbreviations, axes, panel letters, conditions, and units that must appear verbatim.
    • Constraints: target journal style, aspect ratio, color palette, number of panels, export format, and whether the output must be editable.
  2. Ask at most one concise clarification only when the missing detail changes the figure type or scientific meaning. Otherwise infer a sensible academic figure format from the source text.

  3. Generate a raster reference with the Codex image_gen tool:

    • Prompt for a clean academic-paper figure, not a marketing illustration.
    • Include the exact figure structure, panel layout, visual hierarchy, palette, and domain-specific objects.
    • Request simple legible labels only when needed, but treat labels in the generated image as approximate because raster text may be imperfect.
    • Use the generated image as a composition guide only; do not deliver it as the sole final figure when the user asked for editable output.
  4. Recreate the figure as draw.io:

    • Produce native .drawio mxGraphModel XML directly.
    • Use editable draw.io shapes, text, connectors, groups, and layers wherever possible.
    • Keep labels as real draw.io text, not embedded raster text.
    • If an exported PNG/SVG/PDF is requested, use the draw.io CLI export path below and embed the diagram XML where supported.
  5. Validate before finishing:

    • Check the .drawio XML is well-formed and contains the required root cells.
    • Confirm all scientific entities and relationships from the brief are represented.
    • Confirm text is editable, legible, and not overlapping.
    • Confirm arrows and panel order match the paper logic.
    • If draw.io CLI is available, export a preview and inspect it for blank canvas, clipping, and layout issues.

Figure Design Rules

  • Prefer restrained publication styling: white or very light background, 2-4 accent colors, thin strokes, consistent typography, clear grouping, and generous whitespace.
  • Prefer diagram-native compression over prose boxes: use domain-specific glyphs, compact repeated motifs, timelines, matrices, plots, or miniature examples for the scientific objects and reserve boxes for actual modules or boundaries. Keep labels to short terms or equations essential to the mechanism, make the main flow occupy the canvas evenly, and remove decorative callouts or dead whitespace that do not encode information.
  • Use panel labels A, B, C only when the figure has multiple panels.
  • Treat the supplied visual intent as an external caption, not canvas copy: omit a full figure title, subtitle, and caption unless the user explicitly requests them. Use only compact panel or stage headings needed to navigate the diagram.
  • Prefer left-to-right or top-to-bottom reading order unless the scientific process is cyclic.
  • Plan connector corridors before placing nodes. Route short orthogonal edges through whitespace, attach them to the nearest logical side, and keep every line and arrowhead outside text and node interiors; separate feedback lanes from the main flow and eliminate crossings by reordering nodes or using clearly labeled junctions.
  • Encode meaning with layout first, then color; do not rely on color alone.
  • Use colorblind-conscious palettes and avoid low-contrast text.
  • Keep visual detail low enough that the final draw.io file is easy to edit.
  • For biological figures, distinguish compartments, cells, molecules, and phenotypes with shape language and labels.
  • For AI/model figures, distinguish data, model blocks, training/inference paths, losses, outputs, and evaluation with consistent containers and arrows.
  • For workflow figures, use numbered steps or stage headings only when they improve scanability.

Draw.io Generation Rules

  • Always create a native .drawio file in mxGraphModel XML. Do not use Mermaid or CSV as the final editable format.
  • Every diagram must include root cells:
xml
<mxGraphModel adaptiveColors="auto">
  <root>
    <mxCell id="0"/>
    <mxCell id="1" parent="0"/>
  </root>
</mxGraphModel>
  • Add all normal diagram elements with parent="1" unless deliberately using multiple layers.
  • Use unique id values for every mxCell.
  • Escape special characters in XML attributes: &amp;, &lt;, &gt;, and &quot;.
  • Do not include XML comments in generated .drawio files.
  • Edges must contain a child geometry element such as <mxGeometry relative="1" as="geometry"/>.
  • Use descriptive lowercase hyphenated filenames, for example cell-state-pipeline.drawio.
  • If the user requests PNG, SVG, or PDF, first create the .drawio file, then export with draw.io CLI using embedded diagram XML when available.
  • If draw.io CLI is not installed or cannot be found, keep the .drawio file and clearly report that export was skipped.

Common draw.io CLI locations:

  • Windows: C:\Program Files\draw.io\draw.io.exe
  • macOS: /Applications/draw.io.app/Contents/MacOS/draw.io
  • Linux: drawio on PATH

Export command pattern:

bash
drawio -x -f <png|svg|pdf> -e -b 10 -o <output> <input.drawio>

Icon Workflow

Use icons only when they improve recognition or reduce clutter. If icons are needed, use Codex's built-in Browser plugin as the default Flaticon workflow so users do not need extra tools.

  1. Use Browser to open https://www.flaticon.com/ and search the exact concept plus a style term such as line, outline, filled, flat, or science.
  2. Inspect candidate results in the browser. Prefer free, non-premium icons from one style family or author so the figure feels coherent.
  3. Open the icon detail page and extract:
    • Icon page URL.
    • Icon title or concept.
    • Designer/author.
    • License and attribution requirement visible on the page.
    • Download URL or CDN image URL, if available.
  4. Download the icon only after the license and attribution requirement are clear:
    • Prefer SVG/vector when available and permitted.
    • Use the browser download flow when the current Browser runtime can save the file.
    • If Browser can verify the icon page but cannot directly save the download, extract the official image/CDN URL and download it locally with a normal HTTP request.
    • Save project-bound icon files under the current figure output folder, preferably icons/, with descriptive lowercase filenames.
  5. Avoid premium, locked, login-required, or unclear-license icons. If licensing is not usable or the icon cannot be downloaded reliably, create a simple editable draw.io shape instead.
  6. In draw.io, keep each icon as a distinct movable image element. Do not flatten icons into a background image.
  7. Record icon source URLs, author, and attribution/license notes in the final response and any README/example output that uses external icons.

Output Contract

Deliver the editable .drawio file unless the user asks for another format. When helpful, also provide:

  • The generated raster reference image path.
  • An exported preview path such as .drawio.png or .drawio.svg.
  • A short note listing assumptions, icon sources, and any unresolved fidelity limits.

Never present a raster-only image as complete when the user requested an editable academic figure.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Codex Paper Figure Skill faz?

Create editable academic-paper figures from natural-language figure descriptions, manuscript sections, methods/results text, graphical abstract ideas, or paper-specific visual concepts. Use when Codex needs to turn scientific text into a polished journal-style diagram by first generating a raster visual reference with the image generation tool, then recreating it directly as editable draw.io/.drawio mxGraphModel XML. Also use when a user asks for research figures, paper diagrams, mechanism figures, method overview figures, model architecture figures, workflow schematics, publication-ready e...

Por que usar Codex Paper Figure Skill no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Codex Paper Figure Skill é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Codex Paper Figure Skill no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/pengqianhan/codex-paper-figure-skill/tree/main/codex-paper-figure-skill. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Codex Paper Figure Skill?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Codex Paper Figure Skill?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Codex Paper Figure Skill com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Codex Paper Figure Skill é gratuita?

Sim. A habilidade é publicada no GitHub por pengqianhan sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇