figure-composer

figure-composer is a skill for Claude Code from emaballarin/ccplugins. It costs 89 tokens per session (2,194 once invoked), scanned A, original, MIT.

A tool for turning one scientific claim and its data references, or an existing figure, into a multi-panel publication figure.

In plain words
What is it for?
Use it to plan panel layouts, create individual panels, combine them into one image, label them, and review the result.
Why use it?
It organizes separate panels and applies figure-design rules so the final figure presents the claim clearly.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable. Also seen: mentions subagents.

Part of the ccsci plugin — 7 skills, 2 agents shipped together

Good fit Use it to plan panel layouts, create individual panels, combine them into one image, label them, and review the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/emaballarin/ccplugins/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 emaballarin/ccplugins --skill figure-composer
Clone the repo
git clone --depth 1 https://github.com/emaballarin/ccplugins

Made for: Claude Code.

Or install ccsci, the plugin that ships this one along with the rest of its 7 skills, 2 agents.

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/emaballarin/ccplugins/figure-composer/github.svg)](https://agentmods.dev/skills/emaballarin/ccplugins/figure-composer)
Your own site
<a href="https://agentmods.dev/skills/emaballarin/ccplugins/figure-composer"><img src="https://agentmods.dev/badge/skills/emaballarin/ccplugins/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/emaballarin/ccplugins/figure-composer"><img src="https://agentmods.dev/badge/skills/emaballarin/ccplugins/figure-composer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,194 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 original No closer match found 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.00089 $0.02194
Opus 5.5 $0.00036 $0.00878
Sonnet 5.5 $0.00018 $0.00439
Haiku 4.5 $0.00009 $0.00219

Measured 19d ago against content hash a3a2af5e60cd, 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 19d 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.

plugins/ccscience/skills/figure-composer/SKILL.md · 196 lines

How it starts

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

Figure Composer — narrative → panels → compose → adversarial loop

Step 0. Load figure-style alongside this skill — that is the design rules (and apply_figure_style() + helpers). Each panel's subagent loads it independently; you need it in context to write the outline and review the composite.

Loading the kernel

The deterministic helpers live in kernel.py next to this file. It is not auto-injected — import it in a Bash python heredoc (zero import-time side effects; the only heavy import, PIL, is lazy inside compose_figure):

python3 - <<'PY'
import importlib.util
K = "${CLAUDE_SKILL_DIR}/kernel.py"
spec = importlib.util.spec_from_file_location("fc_kernel", K)
k = importlib.util.module_from_spec(spec)
spec.loader.exec_module(k)
print([n for n in dir(k) if not n.startswith("_")])
PY

Every kernel call below assumes k is loaded this way. Each python invocation is a fresh process, so re-import in each heredoc. compose_figure (and the panel renders) need pip install pillow (+ matplotlib for the panels).

Inputs

  • claim — one sentence the figure makes true to a reader who reads nothing else.
  • data — CSV/parquet file paths (or data refs) that ground every panel.
  • width_mm — target venue's column width (common: 85–89mm single, 174–183mm double; check the venue guide).

0. Where this sits

figure-composer is the outer tier: make ONE multi-panel figure good. The inner tier is figure-style (loaded by every panel subagent — and load it yourself if you draw anything locally). The outermost tier is paper-narrative — if this figure is part of a paper, run that FIRST: it decides which figure to make and hands you the claim. For a standalone figure, start at step 1.

Entry points (pick one)

  • From a claim: you have a one-sentence claim and data refs → write the outline (step 1).
  • From an existing figure: copy it into the workspace and build the extraction prompt with derive_outline_task("figure.png"). Then either Read the PNG yourself and emit JSON matching figure_outline_schema(), or dispatch one subagent to do it. Pass the parsed JSON through finalize_outline(outline) before anything else touches it — it forces data_vid=None on every panel, which pixels cannot encode and the model can only invent. The image is untrusted input and every string field is derived from it, so review and edit the outline, and fill in the real data refs, before step 2.

Read the full file on GitHub · 196 lines

Files

What ships with it

1 file 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. 19d ago Changed · -70 tokens per session a3a2af5e60cd
  2. 2mo ago Changed · +1 lines · -1 tokens per session e98025d5feeb
  3. 3mo ago Changed · +2 lines · +3 tokens per session c4a563275f19
  4. 3mo ago First seen · 193 lines · 157 tokens per session scan A d7cf87e54d1f

Subscribe to this mod's changes

figure-composer is a skill published in the GitHub repository emaballarin/ccplugins (4 stars, last pushed 2d ago), licensed MIT. It adds 89 tokens to every session and 2,194 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

figure-composer compared with skills from other repositories

figure-composer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
figure-composeremaballarin/ccpluginsSkill42d agoMITA89Claude Code
scientific-visualizationTobiasBlask/open-paper-machineSkill207mo agoMITA72Claude Code
scientific-schematicsK-Dense-AI/scientific-agent-skillsSkill60k4d agoMITA68Claude Code
sxonowork-studio/notfair-pluginSkill4.4k3d agoMITA211Claude Code
interface-craftcbrock84/headcountSkill2.6k4d agoMITA79Claude Code
presentation-designcbrock84/headcountSkill2.6k4d agoMITA109Claude Code
brand-identitycbrock84/headcountSkill2.6k4d agoMITA69Claude Code