pdf-figure-extract

pdf-figure-extract is a skill for Claude Code, Codex from jimezsa/opencolab. It costs 40 tokens per session (2,086 once invoked), scanned A, original, MIT.

A tool workflow for extracting figures and other visual material from research-paper PDFs already stored locally. It uses PyMuPDF, a Python library for working with PDFs.

In plain words
What is it for?
Use it to extract architecture diagrams, pipeline illustrations, result panels, and other requested figures, with optional page selection from existing indexing data.
Why use it?
It helps locate and deliver the correct diagram or image without manually searching and cropping an entire paper.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to extract architecture diagrams, pipeline illustrations, result panels, and other requested figures, with optional page selection from existing indexing data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jimezsa/opencolab/pdf-figure-extract
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jimezsa/opencolab --skill pdf-figure-extract
Clone the repo
git clone --depth 1 https://github.com/jimezsa/opencolab

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pdf-figure-extract

README.md
[![agentmods](https://agentmods.dev/badge/skills/jimezsa/opencolab/pdf-figure-extract/github.svg)](https://agentmods.dev/skills/jimezsa/opencolab/pdf-figure-extract)
Your own site
<a href="https://agentmods.dev/skills/jimezsa/opencolab/pdf-figure-extract"><img src="https://agentmods.dev/badge/skills/jimezsa/opencolab/pdf-figure-extract/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pdf-figure-extract

Your own site · 80×15
<a href="https://agentmods.dev/skills/jimezsa/opencolab/pdf-figure-extract"><img src="https://agentmods.dev/badge/skills/jimezsa/opencolab/pdf-figure-extract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,086 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.02086
Opus 5 $0.00020 $0.01043
Sonnet 5 $0.00008 $0.00417
Haiku 4.5 $0.00004 $0.00209

Measured 9d ago against content hash c454a3d9aead, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pdf-figure-extract scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/pdf_figure_extract.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

projects/SKILLS/pdf-figure-extract/SKILL.md · 241 lines

How it starts

The opening of the file, as written. The whole thing — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PDF Figure Extract Skill

Use this skill when the user wants a figure, architecture image, pipeline diagram, qualitative result panel, or other visual artifact extracted from a paper that already exists locally under the current project.

Typical use cases:

  • "send me the architecture figure from this paper"
  • "extract Figure 3 from the local PDF"
  • "return the pipeline overview image"
  • "find the model diagram from the paper and send it back"
  • "pull out the qualitative comparison panel on page 7"

This skill complements pageindex-grounded, not replaces it. When cached PageIndex artifacts already exist, reuse them to narrow candidate pages before extraction. When PageIndex is missing or inactive, continue in standalone PyMuPDF mode instead of blocking the run.

Mission

Given a request for a figure in an already-downloaded local PDF:

  1. Select a bounded local paper set.
  2. Reuse PageIndex artifacts when available to narrow likely pages, otherwise shortlist pages directly from the PDF.
  3. Extract or render 1-3 figure candidates with PyMuPDF.
  4. Inspect those candidates with the agent's multimodal capability when available to confirm which image best matches the user's request.
  5. Save the exported artifacts and manifest data under the active research run folder, normally <RUN_ROOT>/figures/.
  6. Return the best figure with paper and page context, plus explicit limitations when confidence is reduced.

Prerequisites

  • Local PDFs already exist under an active research run folder, normally research/<YYYY-MM-DD>-<topic-slug>/pdf/, or under the legacy flat research/pdf/ layout.
  • python3 is installed and available in PATH.
  • PyMuPDF is installed:
python3 -m pip install PyMuPDF

Optional but recommended:

  • <RUN_ROOT>/pageindex/manifest.json and cached PageIndex trees already exist.
  • paper summaries exist under <RUN_ROOT>/pdf/*.md.

If PyMuPDF is missing, only install it when the user explicitly asks for installation or setup work.

Read the full file on GitHub · 241 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 241 lines · 40 tokens per session scan A c454a3d9aead

Subscribe to this mod's changes

pdf-figure-extract is a skill published in the GitHub repository jimezsa/opencolab (11 stars, last pushed 26d ago), licensed MIT. It adds 40 tokens to every session and 2,086 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.