From an image-model draft to editable PowerPoint.
Compose, reconstruct and review research figures with Codex, Claude and Antigravity (CLI, App & IDE).
Quick start · See the output · Workflow · Color books · Docs
Stars, forks and watchers refresh daily; views show a dated GitHub 14-day snapshot. Badge details.
Codex & Antigravity (CLI / App / IDE): draft with the available host image capability (
generate_imageor Antigravity'simage-generatorsubagent), then reconstruct editable PowerPoint. Claude: start directly with native authoring. No provider-selection or registration step interrupts the default workflow. Host workflows.
Start with a visual direction. Finish with text, shapes, indices and connectors you can revise in PowerPoint.
| 01 Image-model draft | 02 Native PowerPoint reconstruction |
|---|---|
![]() |
![]() |
| Composition, visual hierarchy and color roles. | Native labels, math, matrix cells and arrows; one replaceable pictogram. |
Try the actual file: Editable PPTX · PDF · Full-size comparison · Generation record
This is an illustrative document-evidence example. The final preview was rendered from the saved PPTX; the full draft is not embedded in that file.
One independently generated source photograph, nine replaceable picture objects, and native patch IDs, masks, modules and arrows. The same four patch identities survive every stage. Predictions are symbolic; this is an illustrative training schematic, not a model result. Visual principles studied from MAE.
Editable PPTX · PDF · Image-model draft · Draft → PPTX comparison · Generation record
Every hull, node, edge, matrix cell and mathematical label is a native PowerPoint object. Cluster identity is encoded by both color and IDs, and the pooled adjacency is checked against the original graph. This hard-assignment toy example is inspired by DiffPool, which learns soft assignments.
Editable PPTX · PDF · Image-model draft · Draft → PPTX comparison · Generation record
These two examples were generated in Codex and previewed from the saved PPTX files. They demonstrate the workflow and output format; they are not end-to-end Claude execution tests.
Explore another example: microfluidic sorting
A hypothetical process figure with native channel paths, droplets, labels and control connections. Geometry and droplets are illustrative.
|
Explore a complete composition with an image model. Review the draft and carry its strongest layout decisions into the final figure. |
Revise native PowerPoint labels, modules, matrix cells and arrows. Keep illustrations separate and replaceable. |
|
Choose from 16 color books. Check visible relationships, grayscale readability, rendered fonts and mathematical scripts at the intended width. |
Make targeted changes to the latest saved PPTX. Preserve manual adjustments and inspect the result before delivery. |
Built for model architectures, methodology figures, process diagrams and conceptual explanations. Statistical plotting and general presentation decks are outside the skill's scope.
Codex and Claude use skills CLI, requiring Node.js 22.20+ and Git. Antigravity uses its plugin bundle (agy plugin install for CLI, or copying to the plugins directory for Antigravity App 2.0 / IDE). No ZIP download is needed. Run the command for your agent below.
Paper Figure is publicly available on GitHub. Install directly with the commands below; no GitHub sign-in or repository access request is required.
Codex
npx --yes skills@1.7.0 add https://github.com/JYS1025/paper-figure/tree/main/skills/paper-figure --agent codex --copyClaude Code
npx --yes skills@1.7.0 add https://github.com/JYS1025/paper-figure/tree/main/ports/claude/paper-figure --agent claude-code --copyAntigravity (CLI, App & IDE)
git clone https://github.com/JYS1025/paper-figure.git paper-figure
# Antigravity CLI (agy)
agy plugin install ./paper-figure/ports/antigravity/plugin
# Antigravity App 2.0 / IDE — user-wide (all workspaces)
mkdir -p ~/.gemini/config/plugins
cp -R ./paper-figure/ports/antigravity/plugin ~/.gemini/config/plugins/paper-figure
# Antigravity App 2.0 / IDE — project-scoped (current workspace only)
mkdir -p .agents/plugins
cp -R ./paper-figure/ports/antigravity/plugin .agents/plugins/paper-figureFor Antigravity CLI, install agy first, check agy plugin list, then invoke /paper-figure in a new session. For Antigravity App 2.0 / IDE, copy the plugin directory to either ~/.gemini/config/plugins/paper-figure (user-wide) or .agents/plugins/paper-figure (project-scoped); it activates automatically on the next turn and can be managed on the Customizations page. If you already cloned this repository, skip git clone and pass your checkout's ports/antigravity/plugin path. Google transitioned individual users from Gemini CLI to Antigravity CLI; legacy/enterprise Gemini CLI users who do not use plugin.json can copy ports/antigravity/plugin/skills/paper-figure/ directly into their Gemini CLI skills folder.
The edition-specific commands keep independent copies. Keep --copy on the Codex and Claude commands: the editions share the name paper-figure but use different authoring engines. For the Codex/Claude skills CLI commands, append --global to install for all projects, or --yes to skip the install confirmation. For updates, back up local edits and follow the edition-specific update steps.
| Scope | Codex | Claude Code | Antigravity (CLI / App & IDE) |
|---|---|---|---|
| Project | .agents/skills/paper-figure/ |
.claude/skills/paper-figure/ |
.agents/plugins/paper-figure/ (App / IDE) |
| User | ~/.agents/skills/paper-figure/ |
~/.claude/skills/paper-figure/ |
~/.gemini/antigravity-cli/plugins/paper-figure/ (CLI)~/.gemini/config/plugins/paper-figure/ (App / IDE) |
All three editions have SKILL.md entry points. The repository includes local Codex and Claude links; install the Antigravity plugin explicitly. Antigravity discovers workspace .agents/skills/ ahead of user-level plugins, so check for an existing Codex edition of paper-figure in your target project. Start a new session (or next turn in App/IDE) if the skill is not yet visible. Installation details and troubleshooting.
ZIP installation and claude.ai
Codex ZIP · Claude ZIP · Antigravity plugin ZIP
For Codex/Claude, extract the paper-figure folder into the appropriate skills directory above. For Antigravity, extract the plugin ZIP and either run agy plugin install /path/to/extracted/paper-figure (CLI) or copy the extracted paper-figure folder into ~/.gemini/config/plugins/paper-figure or .agents/plugins/paper-figure (App / IDE). For claude.ai, upload the Claude ZIP as a custom skill in an environment with code execution and file creation enabled; the CLI installs local agent skills, not cloud account skills.
The skill uses each host’s default workflow and retains choices you already made for the current task. It does not start with a service-selection menu or credential check.
| Capability | Codex | Claude | Antigravity |
|---|---|---|---|
| Default image workflow | Available host image tool → editable reconstruction | Direct native authoring | Built-in image capability (generate_image in CLI / image-generator subagent in App & IDE) → editable reconstruction |
| PPTX authoring | Bundled Artifact Tool and Presentations tooling | Public PptxGenJS and Python | Public PptxGenJS and Python |
| Structural checks | Python with lxml |
Python with lxml and Pillow |
Python with lxml and Pillow |
| Rendering | Bundled renderer or PowerPoint | Available saved-PPTX renderer | Available saved-PPTX renderer |
| Math review | Python with pdfplumber |
Python with pdfplumber |
Python with pdfplumber |
All routes retain reference, relationship, typography and saved-file review. Direct native authoring can use supplied images and pictograms; it does not claim an image-model draft. When a host tool is unavailable, the skill explains the limitation without silently switching services.
Local setup for the Claude / Antigravity authoring engine
Use Node.js 20+ and Python 3.10+. From a writable copy of either portable skill folder, check the existing environment first:
node scripts/preflight.mjsIf packages are missing and installation is allowed, these macOS/Linux commands install them locally:
npm install --omit=dev
python3 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
export FIGURE_PYTHON="$PWD/.venv/bin/python"
node scripts/preflight.mjsLibreOffice, Poppler and fonts are separate system dependencies. A skill-local .venv is auto-detected when FIGURE_PYTHON is unset. The default preflight checks authoring dependencies only; it does not inspect image credentials or contact a provider. See the Claude environment guide or Antigravity environment guide for shared package paths and rendering wrappers.
Invoke paper-figure in Codex, /paper-figure in Claude Code or Antigravity CLI, or ask Antigravity App / IDE directly (the plugin also exposes 3 starter prompts on its Customizations card), then provide the method, required relationships, notation and intended paper width. In claude.ai, ask the enabled Paper Figure skill to handle the request.
Create an editable methodology figure for a research paper, 178 mm wide.
Show input → encoder → latent representation → decoder, with a skip
connection from input to decoder. Preserve the notation in my description.
Follow this host’s default figure workflow. Keep text, shapes and connectors
editable in PowerPoint, with any illustrations as separate assets. Return
the PPTX, a preview rendered from the saved file, a concise validation note
and the selected visual draft when the workflow uses one.
For revisions, provide the latest PPTX:
In this saved PPTX, change “Decoder” to “Reconstruction head”.
Preserve my module positions, colors and all other edits. Save a new file.
Codex and Antigravity use the image-drafting workflow below when their host tool is available. Claude defaults to direct native authoring after reference and palette review. A user-selected direct authoring route follows the same saved-file checks.
| Stage | What happens |
|---|---|
| 1. Define the content | Record required labels, entities, directed relationships, notation and training/inference distinctions before drawing. |
| 2. Study the visual language | Inspect relevant reference figures, select the paper width and assign colors to meaningful roles. |
| 3. Draft the full composition | Generate a complete visual draft with an image model, inspect it and record what to preserve or correct. |
| 4. Rebuild for editing | Construct explanatory elements as native PowerPoint objects. Generate final pictorial assets separately when needed. |
| 5. Validate the saved result | Check content and connectors, render the PPTX, inspect typography and grayscale readability, and compare the reconstruction with the draft. |
The selected draft, actual prompt and transfer decisions remain part of the work record. The full raster draft is kept outside the final PPTX. Local edits preserve the latest file and do not restart composition drafting. An explicit request to skip drafting, or to reproduce a supplied image exactly, is recorded as a separate route.
See the complete drafting workflow.
| Output | Purpose |
|---|---|
Editable .pptx |
Continue editing text, shapes, groups and connectors in PowerPoint. |
| Saved-file preview | Review a PNG and, when supported by the renderer, a PDF of the actual PPTX output. |
| Selected visual draft | Included when image drafting was used. |
| Validation note | Understand which content, rendering and typography checks ran, with any unresolved limitations. |
| Supporting files | Retain prompts, transfer decisions, generated assets and inspection reports for later revisions. |
Simple formulas use editable text with deliberate script placement or formatting. Pictures can be moved, resized, cropped and replaced; their internal pixels remain raster content.
The collection includes 16 palettes with separate fill, stroke and accent levels, neutral colors and reference observations. Colors are assigned to scientific roles—such as shared modules, conditioning, selected evidence or pending states—and reviewed in the context of the figure.
The HEX values are authored adaptations informed by reference figures. They are not claimed to be the original papers' palettes.
Selection guide · Palette data · Individual cards · Reference studies
The project records structural checks, rendered review, native-application editing and independent model evaluation separately.
| Evidence | Recorded result |
|---|---|
| Automated regression tests | 239 cases across all three editions (including 32 new v1.3.0 cases, 39 package/XSD cases and 54 preservation cases). Locally re-verified: 235 passed; the 4 pdfplumber PDF-extraction cases retain their prior v1.2.1 pass record where pdfplumber was installed. |
| Engine & skill refinements (v1.3.0) | Fixed PptxGenJS text inset order ([left, right, bottom, top]), genuine <a:noFill/> shapes and fill-free <p:cxnSp> connectors, U-shaped same-side elbow routes, WebP-to-PNG asset conversion, automatic media deduplication, paper-scale typography (publicationWidthMm/f.pt(), bolder panel/module hierarchy, rich-text runs/subtitle on portable engine, pptx.py inspect --pub-width-mm small-text and flat-hierarchy checks), pptx.py <a:ln>/<a:br/>/boolean/zero-group guards, optional images contract checks, .venv auto-detection, UTF-8 I/O, MIT LICENSE packaging, progressive reference routing in SKILL.md, and full Antigravity (CLI, App 2.0 & IDE) plugin metadata (assets/logo.svg, plugin README.md, image-generator subagent support). |
| PPTX package validation (v1.2.1+) | New exports normalize presentation child order and ZIP layout, then run bundled offline Transitional/OPC XSD checks before saving. Existing files have an explicit, lossless-part normalization command. |
| Portable engine fixture checks | 33 passed on fresh fixtures, including missing/reversed edges, stale edits, picture crops and untouched-package preservation. |
| Complex figure replay through the Claude engine | 196 native shapes, 10 connectors, 16 groups and one independent picture preserved in the saved PPTX. |
| Rendered math checks on that replay | 14 regions checked with Liberation Serif explicitly selected; no flagged omissions, unexpected fonts or undersized scripts under the selected thresholds. The initial font-substitution diagnostic is retained. |
| All three packages | Extracted ZIPs generated fixtures and passed content, connector, reordered-slide and report-collision checks. |
A successful LibreOffice render does not prove that desktop PowerPoint can open a file. A reported open failure led to a reproducible presentation XML order defect and the v1.2.1 fix. The reporter's original file and PowerPoint environment have not yet been retested; that failure's root cause remains unconfirmed. See the compatibility fix and validation record and existing-file recovery commands.
These results establish local engine behavior. End-to-end figure creation by Claude Code, claude.ai or Antigravity agents and manual PowerPoint editing of the latest ports have not yet been verified. The recorded render path used LibreOffice → PDF → Poppler. The earlier fixture/replay results above are retained from the Claude port record. Prior integration checks, independent-review corrections, preservation validation and host-route validation retain their original scope and dates.
Advanced equation layout, complex connector rerouting and connected-group moves require an appropriate native editing path. Font availability and renderer differences can affect appearance. Review at the intended paper width; reducing the figure also reduces every label and subscript.
When requested, the skill provides a blind-review protocol that separates source recognition from visual quality. Existing qualitative comparisons are documented as diagnostics, with their limitations; they do not establish a general quality advantage over published figures.
| Topic | Guide |
|---|---|
| CLI installation | Commands, updates and troubleshooting |
| Repository badges | Counter sources and refresh |
| Skill entry points | Codex · Claude · Antigravity |
| Authoring and runtime | Codex · Claude |
| Claude installation | Setup guide · 한국어 설치 안내 |
| Antigravity installation | Plugin overview · Setup guide · 한국어 설치 안내 |
| Images and pictograms | Asset roles and generation |
| Mathematical notation | Editable typography and rendered checks |
| Scientific relationships | Endpoints, sets and identity across views |
| Existing PPTX files | Review and preservation |
| Evaluation | Controlled comparison protocol · Blind review |
skills/paper-figure/ Codex skill, reference studies and color books
ports/claude/paper-figure/ Claude skill and public authoring engine
ports/antigravity/plugin/ Antigravity plugin (CLI, App & IDE) with logo, README and synced portable skill
scripts/ Packaging and repository badge utilities
tests/ Engine and preservation checks
docs/ Design notes and validation records
output/ Skill ZIPs and generated examples
Useful contributions include reproducible rendering defects, scientific-relationship errors, font issues, reference studies and evidence-backed improvements to the skill. For a bug report, include the host environment, skill edition, a minimal brief or shareable PPTX, the expected behavior and the actual saved-file preview.
Changes to shared design guidance should be reflected in all editions. Run python3 scripts/sync-antigravity-port.py after changing the shared portable engine or guidance in the Claude port. Include the relevant content and rendering checks when changing the authoring engine, and preserve human edits when testing revision workflows.
Paper Figure is released under the MIT License, except where third-party notices apply (such as the bundled OOXML schemas in ooxml-xsd NOTICE). Attribution for bundled sample media and the color-book resources is recorded in asset sources. Reference papers are credited in the reference studies and palette data.
For the next revision of your research.
If Paper Figure helps your work, a star helps other researchers find it.
Contribute · Get started





