pdf-explore
Use this skill when the user has attached a PDF, paper, report, or other document and the answer needs its content: summarize a section, compare sections, read specific pages, check the table of contents, or read a value off a figure.
Install / Use
npx skills add xuzhougeng/wisp-science --skill pdf-exploreInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Content & MediaSupported Platforms
Our assessment of pdf-explore
pdf-explore scores 87/100 on our quality scale, 468th of 1,141 Content & Media skills we index (top 42%).
Its SKILL.md is 4.5 KB long, split into 7 sections with 4 code examples: a solid amount of guidance for an agent.
With 1,167 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 8 days ago, so pdf-explore is actively maintained.
- It is released under AGPL-3.0, a copyleft license: you can use it, but modified versions you distribute must carry the same license.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
pdf-explore compared with similar skills
All 4 of these similar skills score higher than pdf-explore; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| pdf-explore (this skill)by xuzhougeng | 87 | 1.2k | 8d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 88.6k | 17d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.3k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 85.2k | 2d ago | MCP Server |
| crawl4aiby unclecode | 100 | 84.6k | 7d ago | MCP Server |
Frequently asked questions
- How do I install pdf-explore?
- Run
npx skills add xuzhougeng/wisp-science --skill pdf-explore. The install tabs above show the steps for each supported agent. - Which AI agents does pdf-explore work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is pdf-explore safe to use?
- It is AGPL-3.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is pdf-explore still maintained?
- The repository was last updated 8 days ago, so pdf-explore is actively maintained.
Skill content
View source on GitHubname: pdf-explore
description: "Use this skill when the user has attached a PDF, paper, report, or other document and the answer needs its content: summarize a section, compare sections, read specific pages, check the table of contents, or read a value off a figure. The read tool cannot parse PDF binary — python is the extraction path. Provides pdf_pages (pages as text or rendered PNGs, cached) and pdf_outline (embedded-bookmark TOC) in the persistent python kernel; load them once via the Runtime Sidecar exec line that use_skill appends. For PDF creation/manipulation, use reportlab/pypdf directly."
fold_cue: "instead_of=read use=pdf_pages/pdf_outline for PDFs — read cannot parse PDF binary; print ≤5 pages, else write to a file and read that"
license: Apache-2.0
Read PDFs page-by-page, not wholesale
read chokes on PDF binary, and pasting a 50-page document costs 40K+
tokens. The sidecar parses once into the persistent Python kernel (memory +
disk cached), after which you pull exactly the pages the question needs.
Setup, once per session: run the exec(...) line from the "Python
Runtime Sidecar" section at the end of this skill's use_skill output.
Definitions survive across cells until the kernel restarts. pypdfium2 is
required (pillow too for image mode); if the first call raises
ImportError, follow its hint and re-run.
Pick the entry point
| call | use for | gives |
|---|---|---|
| pdf_outline(path) | any structured document — start here | [{page, heading, level}] from embedded bookmarks, [] + hint when absent |
| pdf_pages(path, pages=[...], mode="text") | the specific pages you need | [{page, text, n_chars}] |
| pdf_pages(path, mode="image", dpi=200, pages=[N]) | figures, scans | one PNG per page in .cache/pdf-explore/, for view_image |
| default mode="auto" | unknown file | text, auto-switching to images when pages have no text layer |
Map the document first
toc = pdf_outline("report.pdf")
for entry in toc:
indent = " " * (entry["level"] - 1)
print(f'p{entry["page"]:>3} {indent}{entry["heading"]}')
Costs nothing when bookmarks exist (LaTeX-compiled papers almost always
have them). On [], there is no LLM fallback here — print the opening
lines of each page from pdf_pages(path, mode="text") and build the map
yourself. Watch for the [pdf_outline] offset warning: some PDFs bookmark
logical page numbers, which are shifted from file page numbers by the
front matter.
A handful of pages: print them
hits = pdf_pages("report.pdf", pages=[12, 13], mode="text")
for h in hits:
print(f'\n[page {h["page"]}]\n{h["text"]}')
Fine up to roughly five pages (~2–4KB each). Kernel output past the ~16KB context budget is head/tail-truncated at ingestion, so anything larger goes through a file instead.
Whole sections: go through a file
For "summarize the methods", cross-section comparisons, or any multi-range
pull, write all wanted pages in one call and read the result — read
output enters context untruncated:
section_pages = [5, *range(21, 26), 62, 63, 64] # from the outline
chunks = pdf_pages("report.pdf", pages=section_pages, mode="text")
open("pull.txt", "w").write(
"".join(f'\n[page {c["page"]}]\n{c["text"]}' for c in chunks))
print("bytes:", __import__("os").path.getsize("pull.txt"))
Then read pull.txt, with offset/limit when it's long. As text a
page runs ~800 tokens; as an attached image ~8K — and the parse is paid
once.
Figures: render high, crop tight
A whole-page render can't resolve axis labels on a dense figure. Render at high dpi, crop to the figure with PIL, and view the crop:
import os
from PIL import Image
page = pdf_pages("report.pdf", mode="image", pages=[7], dpi=200)[0]
crop = os.path.join(os.path.dirname(page["image_path"]), "panel7.png")
Image.open(page["image_path"]).crop((x0, y0, x1, y1)).save(crop)
view_image the crop (or the full image_path once, to locate the
figure). Every viewed image stays in context until /compact ages it out —
view the few crops that matter, never the whole render set. Crops belong
beside the renders under .cache/, never in the project's output
directories: they are reading aids, not products.
Boundaries
The reference host's LLM helpers (pdf_scan page ranking, pdf_extract
sweeps, pdf_map per-page summaries) require an in-kernel model bridge
Wisp doesn't provide, so they don't exist here. For an exhaustive pass,
dump pages to files in chunks (recipe above) and work through them, or hand
the on-disk text to the explore subagent.
Related Skills
Agent-Reach
88.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Scrapling
85.2k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
crawl4ai
84.6kOpen-source web crawler and scraper for LLMs and AI agents: any website into clean, LLM-ready Markdown. Run it yourself, or use Crawl4AI Cloud with one key.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
