plotting-agent
Step 2 of the PaperOrchestra pipeline (arXiv:2604.05018). Execute the visualization plan from outline.json — render plots and conceptual diagrams from experimental_log.md and idea.md, optionally refine via VLM critique loop, and produce context-aware captions.
Install / Use
npx skills add Ar9av/PaperOrchestra --skill plotting-agentInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
Our assessment of plotting-agent
plotting-agent scores 89/100 on our quality scale, 1316th of 2,855 Automation skills we index (top 47%).
Its SKILL.md is 9.1 KB long, well organised into 10 sections with 3 code examples: a thorough specification that gives an agent plenty to work with.
It has 664 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated 12 days ago, so plotting-agent is actively maintained.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
plotting-agent compared with similar skills
All 4 of these similar skills score higher than plotting-agent; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| plotting-agent (this skill)by Ar9av | 89 | 664 | 12d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 90.1k | 18d ago | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 85.6k | 1d ago | MCP Server |
| rufloby ruvnet | 100 | 73.8k | today | MCP Server |
| algorithmic-artby anthropics | 100 | 177.9k | 11d ago | SKILL.md |
Frequently asked questions
- How do I install plotting-agent?
- Run
npx skills add Ar9av/PaperOrchestra --skill plotting-agent. The install tabs above show the steps for each supported agent. - Which AI agents does plotting-agent work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is plotting-agent safe to use?
- It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is plotting-agent still maintained?
- The repository was last updated 12 days ago, so plotting-agent is actively maintained.
Skill content
View source on GitHubname: plotting-agent description: Step 2 of the PaperOrchestra pipeline (arXiv:2604.05018). Execute the visualization plan from outline.json — render plots and conceptual diagrams from experimental_log.md and idea.md, optionally refine via VLM critique loop, and produce context-aware captions. Runs in parallel with the literature-review-agent. TRIGGER when the orchestrator delegates Step 2 or when the user asks to "generate the figures for my paper" or "render the plots from this experiment log".
Plotting Agent (Step 2)
Faithful implementation of the Plotting Agent from PaperOrchestra (Song et al., 2026, arXiv:2604.05018, §4 Step 2 and App. F.1 p.45).
Cost: ~20–30 LLM calls. The paper uses PaperBanana (Zhu et al., 2026) as the default backbone with a closed-loop VLM-critique refinement. This skill expresses that loop in host-agent terms: you (the host agent) generate matplotlib code with your own LLM, render via your Bash/Python tool, optionally critique the rendered PNG with your vision model, redraw, and finally caption.
Inputs
workspace/outline.json— specifically theplotting_planarrayworkspace/inputs/idea.mdandworkspace/inputs/experimental_log.md— the source dataworkspace/inputs/figures/— optional pre-existing figures (PlotOnmode)
Outputs
workspace/figures/<figure_id>.png— one PNG perplotting_planentry (300 DPI, sized to the requested aspect ratio)workspace/figures/captions.json—{figure_id: caption_text}map
Workflow
Per figure (executed independently per figure_id)
-
Read the figure spec from
outline.json:{ "figure_id": "fig_main_results", "title": "Main Results on Dataset X", "plot_type": "plot", "data_source": "experimental_log.md", "objective": "Visual summary (Grouped Bar Chart) demonstrating ...", "aspect_ratio": "5:4" } -
Few-shot retrieval (visual planning): pick the matching pattern from
references/chart-patterns.md(forplot_type=="plot") orreferences/diagram-patterns.md(forplot_type=="diagram"). -
Extract data: parse
idea.mdand/orexperimental_log.md(data_sourcefield tells you which) to obtain the numeric values or conceptual entities the figure needs. Forexperimental_log.md, the## 2. Raw Numeric Datasection contains markdown tables. -
Render:
If
PAPERBANANA_PATHis set — use the PaperBanana backbone (Zhu et al., 2026). It runs a Retriever → Planner → Stylist → Visualizer → Critic loop and is especially good forplot_type == "diagram". Seereferences/paperbanana-cookbook.mdfor setup (needs a Gemini API key).python skills/plotting-agent/scripts/paperbanana_render.py \ --figure-id <figure_id> \ --caption "<objective from figure spec>" \ --content-file workspace/inputs/idea.md \ --task <diagram|plot> \ --aspect-ratio <aspect_ratio> \ --out workspace/figures/<figure_id>.pngOtherwise — write a matplotlib script and run it via your Bash tool, or use the bundled helper:
python skills/plotting-agent/scripts/render_matplotlib.py \ --spec spec.json \ --out workspace/figures/<figure_id>.pngThe script must apply the academic style from
chart-patterns.md, use the correct pixel size fromaspect-ratios.md, save at 300 DPI, and callplt.close()aftersavefig. -
VLM critique loop (optional, only if your host has vision):
- Reload the rendered PNG as a multimodal input to your LLM.
- Critique it against the figure's
objectivefrom the outline. Look for: visual artifacts, mislabeled axes, illegible text, color clashes, misleading scaling, missing legend, overlapping labels. - If problems are found, regenerate the matplotlib script with corrections and re-render. Cap at 3 critique iterations per figure.
- This is the closed-loop refinement step the paper inherits from
PaperBanana. See
references/plotting-pipeline.mdfor the full loop description. - If your host has no vision input, skip this step entirely. The figure will still render correctly, just without iterative refinement.
-
Generate the caption using the verbatim Caption Generation prompt at
references/caption-prompt.md. Inputs to the caption prompt:task_name— the section the figure belongs to (e.g., "Methodology", "Experiments")raw_content— the surrounding section text (or content_bullets from the section_plan if the section isn't drafted yet)description— theobjectivefield from the figure specfigure_desc— a 1-sentence description of what the rendered figure actually shows (from your VLM critique pass, or from the script's plan if no vision)
Write the caption to
workspace/figures/captions.jsonkeyed byfigure_id. Captions must NOT containFigure N:orCaption N:prefixes — the LaTeX template handles numbering. Plain text only, no markdown.
Conceptual diagrams
For plot_type == "diagram", prefer PaperBanana when available — its
Retriever grounds the Planner in real published paper diagrams. If
PAPERBANANA_PATH is unset, follow references/diagram-patterns.md.
Patterns include block diagrams, system overviews, flowcharts, and
algorithm-as-graph. The bundled helper:
python skills/plotting-agent/scripts/render_diagram.py \
--spec diagram_spec.json \
--out workspace/figures/<figure_id>.png
handles the simple cases (boxes-and-arrows). For complex Fig-1-style overview diagrams, write matplotlib patches code yourself.
Hard rules
- 300 DPI for every figure. Lower DPI gets rejected at the LaTeX compile step on conference templates.
- Aspect ratio is exact. The figure spec's
aspect_ratiois one of 12 enumerated strings. Use the pixel targets inreferences/aspect-ratios.md. - Hide top and right spines for plots. (Diagrams: no spines at all.)
- Muted academic colors only. The palette is in
chart-patterns.md. Never use matplotlib defaults (too saturated for print). - No 3D, no pie charts, no decorative visuals. The paper's evaluators penalize these.
- Every figure MUST have a caption in
captions.json. The Section Writing Agent will fail-stop if a caption is missing for any figure referenced from the outline. - No
Figure N:prefix in captions — LaTeX adds it. - Never describe data you didn't plot. The Plotting Agent must not
hallucinate axes, baselines, or trends. Source-of-truth is
experimental_log.mdoridea.md.
Verification gate (run before handing off to Step 3/4)
The hard rules above are stated everywhere and enforced nowhere. This gate makes the mechanical half checkable:
python skills/plotting-agent/scripts/figure_lint.py \
--figures workspace/figures \
--captions workspace/figures/captions.json
ERRORs: a rendered figure with no caption, a caption with no file, an empty
caption, a raster too small to print. WARNs: resolution under ~300 DPI at
single-column width, aspect ratios past 4:1, captions that number themselves
(Figure 3: ...), captions under eight words, and a figure set with no
architecture/pipeline/overview figure in it.
PNG geometry is read from the IHDR and pHYs chunks directly — no imaging library, consistent with the repo's deterministic-helpers-only rule.
After Step 4 has produced paper.tex, re-run with --paper to confirm the
draft uses every figure Step 2 rendered and references no file that does not
exist:
python skills/plotting-agent/scripts/figure_lint.py \
--figures workspace/figures \
--paper workspace/drafts/paper.tex
Fix ERRORs before continuing. A missing caption is the one failure that propagates silently: Step 4 splices the figure with whatever caption it invents, and Step 5 has no way to know the caption was never grounded.
Pre-existing figures (PlotOn mode)
If workspace/inputs/figures/ is non-empty, check whether any pre-existing
file matches a figure_id in the outline (by filename prefix). If so,
copy it into workspace/figures/ as-is and still generate a caption
using the caption prompt. Only generate from scratch the figure_ids that
have no pre-existing counterpart.
Resources
references/caption-prompt.md— verbatim Caption Generation prompt from App. F.1references/plotting-pipeline.md— the full few-shot → render → critique → caption loopreferences/chart-patterns.md— matplotlib style + chart type recipesreferences/diagram-patterns.md— conceptual diagram recipesreferences/aspect-ratios.md— pixel targets for each of the 12 allowed ratios at 300 DPIreferences/paperbanana-cookbook.md— NEW PaperBanana setup, usage, cost notes, attributionscripts/render_matplotlib.py— render a JSON plot spec → PNG (matplotlib fallback)scripts/render_diagram.py— render a JSON diagram spec → PNG (matplotlib fallback)scripts/paperbanana_render.py— NEW PaperBanana backbone wrapper (readsPAPERBANANA_PATHfrom env)scripts/figure_lint.py— NEW resolution / aspect / caption-coverage gate;--papercross-checks\includegraphics
Related Skills
Agent-Reach
90.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Scrapling
85.6k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
ruflo
73.8k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
