paper-image-extractor
Skill738 starsChanged 8 months agoMITView on GitHub
Extract figures from papers — prioritizes arXiv source package for high-quality images
In this repository34 other files it gives its agents.
- academic-researcherSkill
- bioinformatics-init-analysisSkill
- biorxiv-databaseSkill
- claude-code-dispatchSkill
- codex-dispatchSkill
- dataset-discoverySkill
- gemini-deep-researchSkill
- inno-code-surveySkill
- inno-deep-researchSkill
- inno-experiment-analysisSkill
- inno-experiment-devSkill
- inno-figure-genSkill
- inno-grant-proposalSkill
- inno-idea-evalSkill
- inno-idea-generationSkill
- inno-paper-reviewerSkill
- inno-paper-writingSkill
- inno-pipeline-plannerSkill
- inno-prepare-resourcesSkill
- inno-rclone-to-overleafSkill
- inno-reference-auditSkill
- literature-pdf-ocr-librarySkill
- making-academic-presentationsSkill
- ml-paper-writingSkill
- paper-analyzerSkill
- paper-finderSkill
- Remote Experiment ExecutionSkill
- Research Experiment DriverSkill
- Research Idea ConvergenceSkill
- Research Literature TraceSkill
- research-newsSkill
- Research Paper HandoffSkill
- Research Pipeline PlannerSkill
- scientific-writingSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Use this skill when the user request matches its research workflow scope.
- Very specific: line 46
Treat scripts/ as optional helpers.
- Distinctive: line 51
Prefer inspection before mutation when invoking bundled scripts.
- Distinctive: line 52
If a required runtime, CLI, credential, or API is unavailable, explain the blocker and continue with the best manual fallback instead of …
- Distinctive: line 53
Do not write generated artifacts back into the skill directory.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
paper-image-extractor
Canonical Summary
Extract figures from papers — prioritizes arXiv source package for high-quality images
Trigger Rules
Use this skill when the user request matches its research workflow scope. Prefer the bundled resources instead of recreating templates or reference material. Keep outputs traceable to project files, citations, scripts, or upstream evidence.
Resource Use Rules
- Treat
scripts/as optional helpers. Run them only when their dependencies are available, keep outputs in the project workspace, and explain a manual fallback if execution is blocked.
Execution Contract
- Resolve every relative path from this skill directory first.
- Prefer inspection before mutation when invoking bundled scripts.
- If a required runtime, CLI, credential, or API is unavailable, explain the blocker and continue with the best manual fallback instead of silently skipping the step.
- Do not write generated artifacts back into the skill directory; save them inside the active project workspace.
Upstream Instructions
You are the Paper Image Extractor for Dr. Claw.
Goal
Extract all figures from a paper, prioritizing arXiv source packages for high-quality original images over PDF extraction.
Extraction Strategy (3-tier priority)
Priority 1: arXiv Source Package (Best)
- Download source:
https://arxiv.org/e-print/[PAPER_ID] - Extract and look for
pics/,figures/,fig/,images/,img/directories - Copy image files to output directory
- Convert PDF figures to PNG
Priority 2: PDF Figure Extraction (Fallback)
python scripts/extract_images.py "[PAPER_ID]" "[OUTPUT_DIR]" "[INDEX_PATH]"Priority 3: Direct PDF Image Extraction (Last Resort)
Extract embedded image objects from the compiled PDF using PyMuPDF.
Output
- Images saved to specified output directory
index.mdgenerated with image metadata and source labels (arxiv-source, pdf-figure, pdf-extraction)
Scripts
scripts/extract_images.py— Main extraction script with 3-tier strategy
Dependencies
- Python 3.8+, PyMuPDF (fitz), requests
- Network access (arXiv)
Based on evil-read-arxiv — an automated paper reading workflow. MIT License.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

