paperbanana
What it does
This skill generates academic diagrams from a paper's methods section and figure caption, using several AI steps. It is for researchers who need a clean figure for a paper or talk.
When to use it
- ✓When you have a paper's methods text and want a matching pipeline figure.
- ✓When you need a figure in the style of an academic conference paper.
- ✓When you want an automated first draft of a method diagram.
Skill link
https://github.com/dwzhu-pku/PaperBanana/blob/main/skill/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Turn my methods section and this caption into a clean pipeline diagram for my paper.”
5 new skills a week. 1 minute to read.
How it works
The agent sends the method text and caption through a pipeline of AI steps that plan and draw the figure, then checks it. You provide an API key from the model service to run it.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
PaperBanana
Generate publication-quality academic diagrams and pipeline figures from a paper's methodology section and figure caption. PaperBanana orchestrates a multi-agent pipeline (Retriever, Planner, Stylist, Visualizer, Critic) to produce camera-ready figures suitable for venues like NeurIPS, ICML, and ACL.
Environment Setup
cd <repo-root>
uv pip install -r requirements.txt
Set your API key via environment variable or in configs/model_config.yaml.
Option 1 (Recommended): OpenRouter API key — one key for both text reasoning and image generation:
export OPENROUTER_API_KEY="sk-or-v1-..."
Option 2: Google API key — direct access to Gemini API:
export GOOGLE_API_KEY="your-key-here"
If both keys are configured, OpenRouter is used by default.
Usage
python skill/run.py \
--content "METHOD_TEXT" \
--caption "FIGURE_CAPTION" \
--task diagram \
--output output.png
Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
--content |
Yes* | Method section text to visualize | |
--content-file |
Yes* | Path to a file containing the method text (alternative to --content) |
|
--caption |
Yes | Figure caption or visual intent | |
--task |
No | diagram |
Task type: diagram |
--output |
No | output.png |
Output image file path |
--aspect-ratio |
No | 21:9 |
Aspect ratio: 21:9, 16:9, or 3:2 |
--max-critic-rounds |
No | 3 |
Maximum critic refinement iterations |
--num-candidates |
No | 10 |
Number of parallel candidates to generate |
--retrieval-setting |
No | auto |
Retrieval mode: auto, manual, random, or none |
--main-model-name |
No | gemini-3.1-pro-preview |
Main model for VLM agents. Provider auto-detected from configured API key |
--image-gen-model-name |
No | gemini-3.1-flash-image-preview |
Model for image generation. Also supports gemini-3-pro-image-preview |
--exp-mode |
No | demo_full |
Pipeline: demo_full (with Stylist) or demo_planner_critic (without Stylist) |
*One of --content or --content-file is required.
When --num-candidates > 1, output files are named <stem>_0.png, <stem>_1.png, etc.
Output
The absolute path of each saved image is printed to stdout, one per line.
Examples
Diagram
python skill/run.py \
--content "We propose a transformer-based encoder-decoder architecture. The encoder consists of 12 self-attention layers with residual connections. The decoder uses cross-attention to attend to encoder outputs and generates the target sequence autoregressively." \
--caption "Figure 1: Overview of the proposed transformer architecture" \
--task diagram \
--output architecture.png
Important Notes
- Runtime: A single candidate typically takes 3-10 minutes depending on model and network conditions. With the default 10 candidates running in parallel, expect ~10-30 minutes total. Plan accordingly.
- API calls: Each candidate involves multiple LLM calls (Retriever + Planner + Stylist + Visualizer + up to 3 Critic rounds). Candidates run in parallel for efficiency.
- Image generation: The Visualizer agent calls an image generation model (Gemini Image) to render diagrams.
About
PaperBanana is based on the PaperVizAgent framework, a reference-driven multi-agent system for automated academic illustration. It was developed as part of the research paper:
PaperBanana: Automating Academic Illustration for AI Scientists Dawei Zhu, Rui Meng, Yale Song, Xiyu Wei, Sujian Li, Tomas Pfister, Jinsung Yoon arXiv:2601.23265
The framework introduces a collaborative team of five specialized agents — Retriever, Planner, Stylist, Visualizer, and Critic — to transform raw scientific content into publication-quality diagrams. Evaluation is conducted on the PaperBananaBench benchmark.
FAQ
Which API key is needed?
An OpenRouter key is the recommended option, or a Google API key for direct access.
What inputs does it need?
The method text, either typed in or read from a file, plus a figure caption.
Where is the output saved?
To the output file path you choose, which defaults to output.png.
Details
Original description by the author
Generate publication-quality academic diagrams from paper methodology text
repo: dwzhu-pku/PaperBanana
Popularity
- GitHub stars
- 7.5k
- Ranking position
- #13213
- License
- Apache-2.0
- Updated
- 10/24/2026
Comments
- …
Similar skills
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
notcrawl
394kLets your agent search a saved copy of your Notion workspace, look up pages and databases, and export pages to Markdown files.
knowledge-entities
394kHelps your agent identify people, companies, and projects, then write sourced profile pages for them in your Knowledge vault.