/fignimble:fignimble-new-figurefrom fignimble
Creates multi-panel publication figures using Fignimble from data files and panel descriptions. Writes matplotlib panel files, arranges layouts, annotates, renders snapshots, and iterates until clean.
Ships in fignimble. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Follow the fignimble skill for the figure language and its rules (load it if it is installed). The ones that matter
most here: literal millimeter positions, never draw panel letters, no font sizes or line widths in panel code, look at
the snapshot after each step.
fignimble (command -v fignimble, else /Applications/Fignimble.app/Contents/Resources/bin/fignimble or the
same under ~/Applications). If it is missing, tell the user to install Fignimble and use Fignimble ▸ Install
Command Line Tool….fignimble.toml (older ones: style.py and figure files), usually called
fignimble. If the user names one, work there; otherwise look for a fignimble.toml in this folder, above it or
just below it. If there is none, ask which journal the paper is for (or use the one they named), then run
fignimble new --journal KEY in the paper's folder (it makes fignimble/; fignimble new FOLDER names it) (fignimble journals lists the keys: nature, cell, science,
plos-computational-biology, bioinformatics, elife, ...). It writes fignimble.toml, style.py and an empty fig1.py at the
journal's double-column width.style.py, the figure file and the panels it already uses before adding anything, so
new panels match how the others are written.From the user's description and the data, list the panels: what each shows, which data file it reads, and its rough
size. Panels of the same kind with different data are one function with arguments in one file
(fig.panel("panels/expression.py", args={"gene": "CD3E"})), not copies. If what a panel should show is not clear
from the request and the data, ask once with your plan rather than guessing.
Choose the arrangement:
fig.layout(...) with |, /, Grid or a Design string, and guides="collect" when
panels share a legend.fig.panel(...) / fig.image(...) placed by hand, a few mm
apart, inside the figure's width.One file per kind of plot in panels/, each with draw(fig, ...) (or named functions). Read data with paths relative
to the project. Put loading and slow computation in a @cached("data/file.csv") function shared by the panels.
Add every package beyond matplotlib and numpy to requirements.txt. Use color("name") for colors that mean
something (conditions, genotypes) and define them once in style.py's palette. Axis labels with units; no titles that
repeat the caption; no panel letters.
Write the calls into the figure file, one per element, literal numbers. Set the figure's height to what the panels
need (the width comes from the journal). Add only the annotations asked for (fig.text, fig.arrow,
fig.bracket(x1, x2, y, "**") for significance).
fignimble snapshot fig1.py # open the PNG it prints
fignimble info fig1.py # boxes, letters, warnings, panel errors
Open the picture and check: every panel drew (none red), letters in reading order, nothing overlapping or clipped,
legends not covering data, text readable. Fix panel errors from the traceback info prints. Then fix every preflight
warning (fignimble check fig1.py): text below the minimum size usually means the panel is too small for what it
draws, so make the panel bigger or simplify it rather than setting a font size. Repeat until the snapshot looks right
and check passes.
Tell the user which panels you made (by letter, with their files), what data each reads, the snapshot path, and anything you could not decide. If Fignimble is open on the project, the figure is already on their screen; they can drag panels to adjust it, and that edits the same numbers you wrote.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pachterlab/fignimble --plugin fignimble6 skills in this plugin
/fignimbleEdit, build and check publication figures and conference posters in a Fignimble project, where every figure is a Python file that places panels, pictures, text and arrows in millimeters and every panel is matplotlib code. Covers how a project is laid out, the figure language (fig.panel, fig.image, fig.layout with patchwork-style | / + composition, fig.text, fig.arrow, fig.figure, Style, Labels), the rules that keep a figure draggable on the Fignimble canvas, and how to look at your own work (fignimble snapshot, info, check, export). Use whenever you work in a folder with a fignimble Figure (a .py file with `from fignimble import *`), or the user asks to make, change, restyle, lay out, check or export a figure, table or poster with Fignimble./fignimble-from-notebookTurn the plots of a Jupyter notebook, a Python analysis script, or a folder of matplotlib/seaborn scripts into Fignimble panels and assemble them into a publication figure: move each plot's code into a panel function that draws into the figure Fignimble gives it, strip figsize, font sizes, savefig and plt.show, share data loading through @cached, then lay the panels out and check the result. Use when asked to "turn this notebook's plots into a figure", "make figure 2 from analysis.ipynb", "convert my plotting scripts to Fignimble panels", or "rebuild this published figure from the authors' code"./fignimble-journalGet a Fignimble project's figures ready for a journal: restyle them for the journal (column widths, font, minimum text size, panel label style, resolutions), fix everything Fignimble's preflight reports (text below the minimum size inside panels, low-resolution pictures, elements outside the figure, widths that miss the columns, colors color-blind readers can't tell apart), and export files that meet the journal's rules (PDF/EPS/TIFF at the required dpi, CMYK or outlined text if asked, dark versions for talks). Use when asked to "restyle for Cell", "make my figures meet Nature's guidelines", "fix what fignimble check reports", "export my figures for submission", or "transfer my figures to another journal"./fignimble-new-tableMake a table of a paper (Table 1, Supplementary Table 2) with Fignimble: a Table file of its own whose cells come from a data file, from rows written in the code, or from a function that computes them from the analysis (a pandas DataFrame works), with a title, units in the headers, consistent decimals and footnotes; check it with preflight and export it as the editable Word (or Excel) table journals ask for. Use when asked to "make table 1", "make a table of the top 20 genes", "turn this DataFrame into a table for the paper", "add a supplementary table", or "export my tables as Word"./fignimble-posterMake a conference poster with Fignimble from a paper's own figures: a poster is a Fignimble figure at a poster size (A0, A1, 48x36, 36x48, ...) that places the paper's figures whole with fig.figure, so it is drawn from their code and keeps up with them, plus a title band, text sections from Markdown files, and a QR code; then checks it at printed size and exports a PDF with bleed and crop marks or a PowerPoint slide. Use when asked to "make a poster", "make an A0 poster from fig1 and fig2", "turn my paper into a poster", or "export my poster for the print shop".Other plugins' skills for the same job