figure-composer

figure-composer is a skill for Claude Code, Codex from poplarity/dsh-science-workbench. It costs 169 tokens per session (2,692 once invoked), scanned A, a copy of figure-composer, MIT.

A workflow for composing one publication-quality figure from a written claim and data files, or from an existing figure image. It plans a multi-panel layout, renders each panel, combines them, and reviews the result for problems.

In plain words
What is it for?
Use it to plan and render multi-panel research figures, reconstruct a figure’s layout from an image, combine panels, and perform an adversarial review before publication.
Why use it?
It turns a broad scientific result into a structured figure while providing checks for layout and presentation issues. The included helper code handles geometry and prompt preparation; the agent supplies the reasoning and review.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Claude Code.

Good fit Use it to plan and render multi-panel research figures, reconstruct a figure’s layout from an image, combine panels, and perform an adversarial review before publication.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/poplarity/dsh-science-workbench/figure-composer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add poplarity/dsh-science-workbench --skill figure-composer
Clone the repo
git clone --depth 1 https://github.com/poplarity/dsh-science-workbench

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for figure-composer

README.md
[![agentmods](https://agentmods.dev/badge/skills/poplarity/dsh-science-workbench/figure-composer/github.svg)](https://agentmods.dev/skills/poplarity/dsh-science-workbench/figure-composer)
Your own site
<a href="https://agentmods.dev/skills/poplarity/dsh-science-workbench/figure-composer"><img src="https://agentmods.dev/badge/skills/poplarity/dsh-science-workbench/figure-composer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for figure-composer

Your own site · 80×15
<a href="https://agentmods.dev/skills/poplarity/dsh-science-workbench/figure-composer"><img src="https://agentmods.dev/badge/skills/poplarity/dsh-science-workbench/figure-composer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 169 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,692 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00169 $0.02692
Opus 5.5 $0.00068 $0.01077
Sonnet 5.5 $0.00034 $0.00538
Haiku 4.5 $0.00017 $0.00269

Measured 3mo ago against content hash a496e22a9dae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

figure-composer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (kernel.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

92% identical to figure-composer — 12 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/figure-composer/SKILL.md · 201 lines

How it starts

The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bundled with dsh-science-workbench — adapted from Anthropic Claude Science's built-in skills (extracted via the AcademicForge project), Apache-2.0.

Integration in this workbench: compose publication-grade multi-panel figures as bio_run_cell output. The helper kernel.py ships beside this SKILL.md — copy it into the project's code/ once: cp <this-skill-dir>/kernel.py <project>/code/figure-composer-kernel.py, then in each cell exec(open("code/figure-composer-kernel.py").read()). Run the workflow below one panel at a time; figure-style (also bundled) is loaded alongside.

Figure Composer — narrative → panels → compose → adversarial loop

Compose ONE publication-grade multi-panel figure: turn a one-sentence claim plus data files into an outline, render each panel, tile them into a composite, and harden it through an adversarial self-review loop.

Setup (any agent, no API key)

This is a pure skill — kernel.py is deterministic Python (PIL geometry plus schema/prompt builders) and you (the base model) do all the reasoning: reverse-engineering an outline from a figure, rendering panels, and the adversarial composite review. There is no host runtime and no LLM API. Load the helpers once per session in a Python cell:

exec(open("figure-composer/kernel.py").read())

Nothing auto-loads it outside Claude Science. Then call the helpers (panel_task, compose_figure, compose_crops, composite_review_task, derive_outline_prompt, …) directly; if one raises NameError, you have not exec'd kernel.py. Dependencies: pip install pillow matplotlib.

Step 0. Load figure-style alongside this skill — that is the design rules (and apply_figure_style() + helpers). You need it in context to write the outline, render the panels, and review the composite. Each panel is rendered against those same rules — whether you draw it yourself or hand it to a sub-agent (see §2), the maker loads figure-style first.

Read the full file on GitHub · 201 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 201 lines · 169 tokens per session scan A a496e22a9dae

Subscribe to this mod's changes

figure-composer is a skill published in the GitHub repository poplarity/dsh-science-workbench (11 stars, last pushed 1mo ago), licensed MIT. It adds 169 tokens to every session and 2,692 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to figure-composer, differing in 12 lines, and is treated as a copy.

Related

figure-composer compared with skills from other repositories

figure-composer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
figure-composerpoplarity/dsh-science-workbenchSkill111mo agoMITA169Claude Code, Codex
healthcare-eval-harnessgongyijie85/dsh-eccSkill1313d agoMITA68Claude Code, Codex
healthcare-emr-patternsgongyijie85/dsh-eccSkill1313d agoMITA63Claude Code, Codex
healthcare-cdss-patternsgongyijie85/dsh-eccSkill1313d agoMITA68Claude Code, Codex
biopythonsynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A76Claude Code, Codex
scanpysynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A68Claude Code, Codex
medical-literature-reviewDevin-AXIS/iPolloWorkSkill7.6kyesterdaynoneA53Codex