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.
npx skills add cxcscmu/SkillLearnBench --skill pdf-text-extractiongit clone --depth 1 https://github.com/cxcscmu/SkillLearnBenchWrote 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.
[](https://agentmods.dev/skills/cxcscmu/skilllearnbench/pdf-text-extraction)<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/pdf-text-extraction"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/pdf-text-extraction/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.
<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/pdf-text-extraction"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/pdf-text-extraction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00015 | $0.00361 |
| Opus 5.5 | $0.00006 | $0.00144 |
| Sonnet 5.5 | $0.00003 | $0.00072 |
| Haiku 4.5 | $0.00002 | $0.00036 |
Grade A, and why
pdf-text-extraction 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 1mo ago.
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.
What it actually says
PDF Text Extraction
Overview
Extract text content from PDF files to analyze their content and classify them by subject.
Installation
pip install pdfplumber PyPDF2
Usage Examples
Using pdfplumber (Recommended)
import pdfplumber
def extract_pdf_text(pdf_path, max_chars=5000):
"""Extract text from PDF with character limit for efficiency"""
try:
with pdfplumber.open(pdf_path) as pdf:
text = ""
# Read first few pages to get representative content
for page_num in range(min(3, len(pdf.pages))):
text += pdf.pages[page_num].extract_text() or ""
if len(text) > max_chars:
break
return text[:max_chars]
except Exception as e:
return f"Error reading PDF: {str(e)}"
Using PyPDF2 (Fallback)
from PyPDF2 import PdfReader
def extract_pdf_text_pypdf(pdf_path):
"""Alternative PDF text extraction"""
try:
reader = PdfReader(pdf_path)
text = ""
for page in reader.pages[:3]: # First 3 pages
text += page.extract_text()
return text
except Exception as e:
return f"Error: {str(e)}"
Best Practices
- Extract from first 2-3 pages only (faster, usually contains abstracts/titles)
- Handle errors gracefully for corrupted PDFs
- Cache extracted text to avoid re-processing
- Use reasonable character limits (3000-5000 chars) for classification
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.
- 1mo ago First seen · 58 lines · 15 tokens per session scan A 85e63d606a0e
pdf-text-extraction is a skill published in the GitHub repository cxcscmu/SkillLearnBench (91 stars, last pushed 18d ago), licensed MIT. It adds 15 tokens to every session and 361 once invoked, about $0.0001 per session on Opus 5.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.
Other skills, from other repositories
PDF manipulation toolkit. Extract text/tables, create PDFs, merge/split, fill forms, for programmatic document processing and analysis.
pdf-editing
Complete guide for reading and editing PDF documents with PyMuPDF.
academic-pdf-redaction
Redact text from PDF documents for blind review anonymization.
marker
Convert PDF documents to Markdown using markersingle. Use when Claude needs to extract text content from PDFs while preserving LaTeX formulas, equations, and document structure. Ideal for academic papers and technical documents containing mathematical notation.
Use this skill when a task requires reading, creating, splitting, merging, or otherwise manipulating PDF files.
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…