Individual skill
ts-figure-svg
PaperBanana+ — turn a paper's figure brief into a native, editable, publication-grade SVG. Stage 1 runs the OFFICIAL PaperBanana (dwzhu-pku/PaperBanana, pulled by `setup_paperbanana.py`, its own Retriever→Planner→Stylist→Visualizer→Critic pipeline) to produce candidate PNGs. Stage 2 is the "+": Claude LOOKS at the chosen PNG, extracts its DESIGN LANGUAGE (palette, type scale, spacing, idiom) into a style sheet, then redraws the figure FROM THE PAPER'S FACTS as real <rect>/<path>/<text> objects — never tracing pixels, never embedding the PNG. Stage 3 is a measured repair loop: `audit_svg.py` (stdlib, no renderer needed) catches overflow, text-on-text, icons cutting labels, stroke-scaled and canvas-clipped arrowheads, dangling connectors, sub-legible type, font-fallback glyphs, CSS-cascade colour traps and traced path-soup; ≥4 rounds, no upper bound while defects remain. Ends on a vector PDF verified on the real compiled page. Use when a figure must be editable and correct, not merely pretty.
skills/ts-figure-svg/SKILL.md
Source commit c17149def034bc777462de612926c8e3b6d01b8c
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 10, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,200
- Repository last updated
- Aug 22, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- design Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 17,765 bytesSKILL.mdcore · 17,765 bytesSKILL.mdcore · 17,765 bytesSKILL.mdcore · 17,765 bytesSKILL.mdcore · 17,765 bytesSKILL.mdcore · 17,765 bytesreferences/svg-craft.mddoc · 8,225 bytesscripts/audit_svg.pyruns · 37,324 bytesscripts/setup_paperbanana.pyruns · 4,436 bytesscripts/svg_to_pdf.pyruns · 4,122 bytes
Read excerpt
# ts-figure-svg — PaperBanana+ : design language in, native SVG out
An image model draws a *picture of* a figure. This skill turns that picture into an actual figure: every
label live text, every edge traceable to the method, every box measured.
Two things it is not, both learned the hard way:
- **Not a pixel replica.** Auto-tracing one figure produced 59,430 paths, 10 MB, no editable text — and
it was *still blurry when zoomed*. "No `<image>` element" does not mean "vector".
- **Not the PNG's logic.** Generated figures invent sequential links, fabricate numbers, and garble
labels. Take the PNG's *look*; take the paper's *content*.
## Setup (once)