/fignimble:fignimble-from-notebookfrom fignimble
Converts Jupyter notebook plots or matplotlib/seaborn scripts into Fignimble panel functions for publication figures. Strips figsize, font sizes, savefig, and plt.show; shares data loading via @cached; lays out panels and checks results.
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). Find the
fignimble command first (command -v fignimble, else
/Applications/Fignimble.app/Contents/Resources/bin/fignimble).
The goal: each plot becomes a panel function the figure calls, drawing the same thing from the same data, so the figure stays reproducible from the analysis and the user can rearrange it on the canvas.
.ipynb cells in order (code and outputs). Note which cells load data, which compute, and
which draw each plot. Rendered outputs show what each plot should look like: keep them to compare against.plt.figure/plt.subplots ... savefig block and what it reads.Use the user's project (a folder with a fignimble.toml), or run fignimble new --journal KEY in the paper's folder,
which makes fignimble/ (ask which journal if unknown). Copy or link the data
the plots read into data/ (ask before copying large files; a panel may read an absolute path, but the project is
then not self-contained). Add the packages the code imports (pandas, seaborn, scanpy, ...) to requirements.txt.
Group related plots in one file (panels/qc.py, panels/clusters.py). For each:
# before (notebook)
fig, ax = plt.subplots(figsize=(4, 3))
sns.violinplot(data=df, x="group", y="score", ax=ax)
ax.set_title("Score by group", fontsize=12)
plt.tight_layout(); plt.savefig("score.pdf"); plt.show()
# after (panels/qc.py)
def score(fig):
ax = fig.add_subplot()
sns.violinplot(data=load(), x="group", y="score", ax=ax)
fig passed in: fig.add_subplot(), fig.subplots(1, 3). Replace plt.gca()/plt. calls with
the axes. Remove figsize, dpi, fontsize=, linewidth=, rcParams, sns.set_theme/set_context,
tight_layout, subplots_adjust, savefig, show: Fignimble sizes each panel and the style sets fonts and lines.style.py (palette={"WT": "#999999", "KO": "#d1495b"}) used as
color("KO"); drop colors that only restate matplotlib's defaults.@cached("data/file") functions at the top of the
file (or a panels/common.py the panels import). A computation the notebook did once in an early cell belongs
there, not repeated in each panel.fig.panel("panels/qc.py", function="score", args={"column": "n_genes"}).Place the panels in the figure file (a fig.layout(...) for a grid, fig.panel(...) by hand otherwise), literal
numbers, no letters. Then:
fignimble snapshot fig1.py # open the PNG
fignimble info fig1.py # panel errors with tracebacks, warnings
Compare each panel with the notebook's output: same data, same marks, same axes. Differences in font and size are
expected (that is the style); differences in the data are bugs. Fix preflight warnings (fignimble check fig1.py)
by resizing panels, not by setting font sizes.
List each panel (letter, file, function) next to the notebook cell or script it came from, what you removed (sizes, fonts, savefig), anything that didn't port (interactive widgets, plots whose data wasn't available), and the snapshot path.
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-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-figureMake a new multi-panel publication figure with Fignimble from data files and a description of what each panel should show: start a project if there is none, write one matplotlib panel file per kind of plot, place the panels (by hand or as a patchwork-style layout), annotate, then render a snapshot, look at it, and fix what preflight reports until the figure is clean. Use when asked to "make a figure", "build figure 2 from these CSVs", "add a volcano plot as panel c", "lay out these plots as a 3 by 2 grid", or "start a Fignimble project for my paper"./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