Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By tomtommyyuanv0.1.0MITIn 1 marketplace
Author a publication figure as an editable vector artifact. One Python display list emits a layered SVG, a flat fully-editable PPTX, and a print PDF, with a render-and-look review loop and programmatic layout lint. Requires uv.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code skill for drawing a paper's flagship method figure — the custom-drawn Figure 1 — as something you can still edit afterwards. You describe the figure in Python; it emits a flat PPTX whose every box, arrow and label is a native shape you can drag in PowerPoint or Keynote, plus a layered SVG for Illustrator/Figma/Inkscape and a print PDF, all from one display list so they cannot drift apart.

The two obvious approaches both fail.
Matplotlib cannot produce an editable schematic. By default it converts every glyph
to outlines, so the SVG contains no text at all. Setting svg.fonttype='none' fixes
plain labels but never fixes maths: $\mathcal{L}$ is exploded into ~20 per-glyph
<tspan>s ordered by font rather than by reading order, and the script L itself is
emitted as U+E238 — a Private Use Area codepoint in STIXNonUnicode, a font bundled
inside matplotlib and not installed system-wide. Outside matplotlib it renders as a tofu
box. (Its default pdf.fonttype=3 also produces Type 3 subsets, which several venues
reject.)
Hand-written SVG fails differently: a language model cannot compute text advance width, so labels collide, boxes are too small, and you find out only after rendering.
figkit measures the real font file for every run and emits geometry rather than
trusting any renderer's text layout — which is also why the output survives cairo,
librsvg, WebKit and PowerPoint, all of which disagree about text in different ways.
references/renderers.md is the catalogue
of what each one breaks.
SKILL=~/.claude/skills/paper-figure
uv run "$SKILL/scripts/new_figure.py" figures/fig1.py # 1. scaffold
PYTHONPATH="$SKILL/scripts" uv run figures/fig1.py # 2. build -> .svg + .json
uv run "$SKILL/scripts/lint.py" figures/fig1.json # 3. check the geometry
uv run "$SKILL/scripts/render.py" figures/fig1.svg # 4. rasterize, then LOOK
uv run "$SKILL/scripts/to_pptx.py" figures/fig1.json # 5. editable deck
Steps 3 and 4 split the work by what each is good at.
lint.py does the arithmetic — no model, no API calls. It catches a label wider than
the box it sits in, two labels sharing pixels, an arrowhead pointing at empty space, an
element off the canvas, and fill pairs that collapse under red-green colour
blindness (simulated in CIELAB; it skips marks that already carry a label, since a
label is the second channel that fixes the problem).
render.py writes one PNG per available engine so Claude can look at the result and fix
what only shows up rendered — proportion, emphasis, whether the figure reads. A defect
present in one engine and absent in another is a portability bug, not a layout bug.
Personal skill (loads in every workspace):
git clone https://github.com/tomtommyyuan/paper-figure-skill.git ~/src/paper-figure-skill
mkdir -p ~/.claude/skills
ln -s ~/src/paper-figure-skill/skills/paper-figure ~/.claude/skills/paper-figure
Or as a plugin:
/plugin marketplace add tomtommyyuan/paper-figure-skill
/plugin install paper-figure@paper-figure-plugins
Full instructions, project-scoped and team installs, and troubleshooting: INSTALL.md.
uv is the only hard dependency — every script carries PEP 723 inline metadata, so
uv run provisions its dependencies per-run. Nothing is installed globally and there is
no virtualenv to activate.
You also need at least one SVG rasterizer, because step 4 is not optional:
| macOS | Debian/Ubuntu | |
|---|---|---|
| SVG → PNG | built-in qlmanage, or brew install librsvg | apt install librsvg2-bin |
| PDF → PNG | brew install poppler | apt install poppler-utils |
| PPTX preview | Keynote (built in) | LibreOffice |
uv run "$SKILL/scripts/render.py" --probe reports what you have. Two engines are
better than one: cross-engine disagreement is what surfaces portability bugs.
Two complete figures, both building in about a second.
fig1_transunet.py — argues by pipeline. An independent Figure 1 for TransUNet (Chen et al., arXiv:2102.04306): the two halves failing separately, a real U with skip arrows bound to the blocks they join, and an evidence panel plotting numbers the paper reports but never charts. 206 elements.
fig2_outcome_curve.py — argues by partition. One curve cut into named regimes where the coloured regions are the claim, after Liu et al., Delayed Impact of Fair Machine Learning (ICML 2018). Shows colour as an ordinal taxonomy, breakpoints derived and named on the axis, and an axis through the origin. 58 elements.
npx claudepluginhub tomtommyyuan/paper-figure-skill --plugin paper-figureBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground