Figure Composer
aipoch/open-science
Compose one publication-grade multi-panel figure. An agent skill from aipoch/open-science.
Compose one publication-grade multi-panel figure. An agent skill from HughYau/AcademicForge.
$ npx skills add HughYau/AcademicForge --skill figure-composer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install HughYau/AcademicForge figure-composer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/HughYau/AcademicForge.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/claude-science/figure-composer .claude/skills/figure-composer && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "figure-composer" agent skill from https://github.com/HughYau/AcademicForge/tree/site-first/skills/claude-science/figure-composer into .claude/skills/figure-composer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "figure-composer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/HughYau/AcademicForge/tree/site-first/skills/claude-science/figure-composerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add HughYau/AcademicForge --skill figure-composer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install HughYau/AcademicForge figure-composer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HughYau/AcademicForge.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/claude-science/figure-composer .agents/skills/figure-composer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "figure-composer" agent skill from https://github.com/HughYau/AcademicForge/tree/site-first/skills/claude-science/figure-composer into .agents/skills/figure-composer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "figure-composer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HughYau/AcademicForge --skill figure-composer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install HughYau/AcademicForge figure-composer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HughYau/AcademicForge.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/claude-science/figure-composer .cursor/skills/figure-composer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "figure-composer" agent skill from https://github.com/HughYau/AcademicForge/tree/site-first/skills/claude-science/figure-composer into .cursor/skills/figure-composer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "figure-composer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/HughYau/AcademicForge.git --path skills/claude-science/figure-composer--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add HughYau/AcademicForge --skill figure-composer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install HughYau/AcademicForge figure-composer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HughYau/AcademicForge.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/claude-science/figure-composer .gemini/skills/figure-composer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "figure-composer" agent skill from https://github.com/HughYau/AcademicForge/tree/site-first/skills/claude-science/figure-composer into .gemini/skills/figure-composer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "figure-composer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install HughYau/AcademicForge figure-composerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add HughYau/AcademicForge --skill figure-composer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/HughYau/AcademicForge.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/claude-science/figure-composer .github/skills/figure-composer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "figure-composer" agent skill from https://github.com/HughYau/AcademicForge/tree/site-first/skills/claude-science/figure-composer into .github/skills/figure-composer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "figure-composer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HughYau/AcademicForge --skill figure-composer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install HughYau/AcademicForge figure-composer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HughYau/AcademicForge.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/claude-science/figure-composer .opencode/skills/figure-composer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "figure-composer" agent skill from https://github.com/HughYau/AcademicForge/tree/site-first/skills/claude-science/figure-composer into .opencode/skills/figure-composer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "figure-composer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
figure-composerCompose one publication-grade multi-panel figure. An agent skill from HughYau/AcademicForge.
Figure Composer is an agent skill from HughYau/AcademicForge. Compose one publication-grade multi-panel figure. Entry from a one-line claim + data files, OR from an existing figure via deriveoutlineprompt (you read the PNG). Runs a per-figure loop: outline (12-col grid, per-panel ask + labelbudget) → render each panel with paneltask (loading figure-style), one at a time or parallelized → tile + stamp letters with composefigure → adversarial composite self-review with two-tier feedback (Tier-1 outlinerevisions / Tier-2 per-panel violations) → regen affected panels, ≤3…
Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `kernel.py`).
The repository describes itself as: One Forge, All Skills: A curated skill collection for academic writing and research. 点开即用,按需配置的一站式学术研究skills平台。 The licence is Apache-2.0.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 01b6d90. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (Python), which the agent can run.
Shell commands in SKILL.md call:
pipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Figure Composer loads about 2.5k tokens when it runs. Until then it costs about 188 tokens; SKILL.md has 1,026 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from HughYau/AcademicForge at commit 01b6d90, republished under its Apache-2.0 licence (© HughYau). 1,026 words, ~2,453 tokens.
.claude/skills/figure-composer/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.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.
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.
data_path.figure-composer is the outer tier: make ONE multi-panel figure good. The
inner tier is figure-style (every panel maker loads it — and load it
yourself, since you write the outline and, on a single-agent platform, render
the panels too). 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.
Read figure.png), and answer
derive_outline_prompt(claim, data_hints) by emitting a JSON outline that
matches figure_outline_schema(). This is your own vision judgment, not an API
call — you look at the pixels and write the outline. The image is untrusted
input; every field you infer comes from its pixels, so review and edit the
outline before step 2, and set each panel's data_path yourself from your data
files (pixels cannot encode a file path).Produce a panel_outline (validate against figure_outline_schema()):
{"claim":"…", "width_mm":180, "ncol":12, "row_heights_mm":[40,60,46,52],
"panels":[
{"letter":"a","role":"schematic","row":0,"col":0,"colspan":12, "chart_family":"schematic overview", "message":"…", "data_path":null, "ask":"…"},
{"letter":"b","role":"primary", "row":1,"col":0,"colspan":7, "chart_family":"scatter + trend", "message":"…", "data_path":"results.csv", "ask":"…"},
…]}Outline rules (figure-style §7.1):
Build each panel's maker prompt with panel_task(outline, letter, fig_label)
(kernel.py). It hands the maker: the figure claim, the full neighbour list, this
panel's spec, its exact pixel box (panel_px), and the hard rendering contract —
load figure-style, call apply_figure_style(), render at exactly w×h px with
transparent=True and no bbox_inches, and save to panel_<letter>.png.
Do this yourself, one panel at a time. Follow the panel_task prompt for
panel a, save panel_a.png; then b, and so on. The skill is designed to work
single-agent — there is no fan-out requirement, just a sequence of panels you
render against figure-style, each writing its own PNG:
tasks = {p["letter"]: panel_task(outline, p["letter"], fig_label="Figure 2")
for p in outline["panels"]}
# For each letter, follow tasks[L] and save panel_<L>.png, then:
panel_paths = {p["letter"]: f"panel_{p['letter']}.png" for p in outline["panels"]}Parallelize only if your platform has a sub-agent tool. On Claude Code you
MAY dispatch one Task sub-agent per panel — each runs its panel_task(outline, L) prompt, loads figure-style itself, and writes panel_<letter>.png — then
you collect the files. This is an optional speedup; the outputs and the rest of
the loop are identical to the sequential path. Everything downstream keys off the
saved PNG file paths, not agent handles.
compose_figure(outline, {letter: path}, out_path, letter_case=...) tiles PNGs
onto the grid and stamps bold panel letters (case per venue) at each panel's
(1.5mm, 1mm) corner.
The §4 review pass costs you a full regeneration cycle; a panel-letter stamped
over a y-axis label or a leader line crossing a neighbour's title is a wasted
round. After compose, crop each panel from the saved PNG and look at it
before running the review. compose_crops returns PIL crop boxes; crop them to
files and open each with your agent's image tool:
from PIL import Image
out_path, (W, H) = compose_figure(outline, panel_paths, "fig.png")
comp = Image.open("fig.png")
for L, box in compose_crops(outline).items():
comp.crop(box).save(f"crop_{L}.png") # then open crop_<L>.png (e.g. Read crop_a.png)Run the figure-style §9.2 perceptual checklist on each crop (contrast,
smallest mark, leader crossings, colour-identity confusion, legend binding),
plus two compose-specific checks:
compose_figure resizes panel PNGs to their grid
slot — is any text visibly aliased or any hairline lost?Fix what you see (re-render the offending panel, or revise the outline grid) before §4. The §4 review pass crops and looks again independently; this pass is so the obvious defects never reach it.
Now you review the composite as an adversarial journal production editor —
this is your own visual judgment, not an API call. Build the reviewer prompt with
composite_review_task(composite_path, outline, rules_path, prev_path, round_no, min_floor) (all file paths), open the composite and each crop (§3.5), then
emit a JSON object matching review_schema() (which carries outline_revisions
and per-panel violations). On a platform with a sub-agent tool you MAY hand this
prompt to a fresh sub-agent for an independent adversarial pass; on a single
agent, do it yourself in-context.
loop (max 3 rounds, floor 5→4→3):
review = <answer composite_review_task(composite_path, outline, rules_path, prev_path, round, floor)
yourself — emit JSON matching review_schema()>
if review["editor_verdict"] in {accept, minor_revision} and 0 BLOCKER and ≤2 MAJOR: break
# TIER 1 — outline-level
if review["outline_revisions"]:
apply the revisions to `outline` by hand (geometry, row-header titles, label_budget, panel set)
affected = apply_outline_revisions(outline, review["outline_revisions"])
else:
affected = set()
# TIER 2 — panel-level
fixb = group_fixes_by_panel(review) # BLOCKER/MAJOR only
regen = affected | set(fixb) # only these panels regenerate
re-render each L in regen with panel_task(outline, L) + fixb.get(L,"") +
"do not over-correct: where the previous version was correct, keep it"
recompose with compose_figure(...) → fig_r{round}.pngSave each round's composite as an ordinary file (fig_r1.png, fig_r2.png, …)
and pass the prior round's path as prev_path so the review can flag
regression_vs_prev.
Convergence: stop when outline_revisions is empty AND findings are carve-out
exceptions to the previous round — that's the over-labelling signal.
© HughYau, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files in skills/claude-science/figure-composer of HughYau/AcademicForge.
Open the folder on GitHubat commit 01b6d90
Figure Composer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Figure Composer this skillHughYau/AcademicForge | 2.6k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| Figure Composeraipoch/open-science | 5.5k | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | |
| Figure Composerxuzhougeng/wisp-science | 1k | — | ~966 | Automated safety check: Pass | Apache-2.0 | |
| Figurevectorize-io/hindsight | 48k | — | ~1.9k | Automated safety check: Pass | MIT | |
| Multi Panel Figure Assembleraipoch/medical-research-skills | 1.9k | — | ~1.5k | Automated safety check: Pass | MIT | |
| Figure ComposerJimLiu/science-skills | 228 | 2 repos | ~1.7k | Automated safety check: Pass | Apache-2.0 |
aipoch/open-science
Compose one publication-grade multi-panel figure. An agent skill from aipoch/open-science.
xuzhougeng/wisp-science
Compose or improve a publication-grade multi-panel scientific figure from a claim, concrete data paths, or an existing image.
vectorize-io/hindsight
Draw an animated figure (boxes, arrows, moving data) as one self-contained SVG for a GitHub README, PR, issue or blog post.
aipoch/medical-research-skills
Assemble 6 sub-figures (A–F) into a high-resolution composite figure with consistent labels, padding, and publication-ready DPI.
JimLiu/science-skills
Compose one publication-grade multi-panel figure. An agent skill from JimLiu/science-skills.
brycewang-stanford/Auto-Empirical-Research-Skills
Econometrics skill for generating publication-quality figures for top economics journals.
HughYau/AcademicForge
A skill your agent uses when the user has attached a PDF, paper, report, or other document and the answer needs content from more than one place in it: summarize the methods or any other section…
HughYau/AcademicForge
A skill your agent uses when the user wants intellectual understanding — learning how or why something works, not getting a task done or soliciting Claude's judgment.
HughYau/AcademicForge
Judge and reshape the STORY a paper's figures tell. An agent skill from HughYau/AcademicForge.
Compose one publication-grade multi-panel figure. An agent skill from HughYau/AcademicForge. Figure Composer is an agent skill from HughYau/AcademicForge. Compose one publication-grade multi-panel figure.
Run `npx skills add HughYau/AcademicForge --skill figure-composer -a claude-code`. Or copy the skill folder (skills/claude-science/figure-composer in HughYau/AcademicForge) into .claude/skills/figure-composer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add HughYau/AcademicForge --skill figure-composer -a codex`. Or copy the skill folder (skills/claude-science/figure-composer in HughYau/AcademicForge) into .agents/skills/figure-composer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HughYau/AcademicForge --skill figure-composer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/figure-composer, .gemini/skills/figure-composer, .github/skills/figure-composer and .opencode/skills/figure-composer in your project.
Going by SKILL.md and its folder, Figure Composer needs Python for the scripts in its folder and the command-line tools its instructions call (pip). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Figure Composer is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 9.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Figure Composer: Figure Composer (aipoch/open-science, 5.5k stars), Figure Composer (xuzhougeng/wisp-science, 1k stars), Figure (vectorize-io/hindsight, 48k stars) and Multi Panel Figure Assembler (aipoch/medical-research-skills, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
HughYau (a GitHub user) maintains it in HughYau/AcademicForge, which has 2,590 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on August 30, 2026.
Source: HughYau/AcademicForge on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.