figure-extractorlisted
Install: claude install-skill Sunrich-HT/figure-extractor
# Figure Extractor Skill
Use this skill when the user needs complete figures or images extracted from PDFs, arXiv papers, or HTML article pages.
## What this skill actually is (read first)
`figure-extractor` is a **command-line tool** (Python + PyMuPDF). "Using it" means
running it in a shell — e.g. `figure-extractor extract paper.pdf`. It is **not**
an in-agent callable, a hosted service, or a "page" you activate.
It does **not** require installation or network. **PDF and HTML sources both**
need a Python interpreter with **PyMuPDF and nothing else** — no pip, no PyPI,
no GitHub, no Pillow, no beautifulsoup4. If you cannot install packages, use the
single-file build, or the reduced extractor printed in this file (Step 0 below).
Only URL sources need network.
If the user gives you a **browser PDF-viewer URL** (`.../viewer.html?file=...`,
Chrome's built-in viewer, Google Docs viewer), pass it in as-is: the real
document is unwrapped from `?file=` / `#file=` / `?url=` before anything is
fetched. If they give you a **saved HTML page**, pass the local file: images
stored as inline `data:` URIs are decoded without touching the network.
**Invocation contract**
- **Mechanism:** a shell command — installed CLI, `python -m figure_extractor`, or the single file.
- **Input:** a local PDF/HTML path or a PDF/arXiv/HTML URL.
- **Output:** PNG files + `manifest.json` + `contact_sheet.jpg` (+ optional `figures.zip`) written to `--out`.
## Step 0 — precondition check (always do this fi