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 CODE-SAURABH/OpenSkills --skill pdfgit clone --depth 1 https://github.com/CODE-SAURABH/OpenSkillsWrote 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/code-saurabh/openskills/pdf)<a href="https://agentmods.dev/skills/code-saurabh/openskills/pdf"><img src="https://agentmods.dev/badge/skills/code-saurabh/openskills/pdf/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/code-saurabh/openskills/pdf"><img src="https://agentmods.dev/badge/skills/code-saurabh/openskills/pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00098 | $0.03712 |
| Opus 5.5 | $0.00039 | $0.01485 |
| Sonnet 5.5 | $0.00020 | $0.00742 |
| Haiku 4.5 | $0.00010 | $0.00371 |
Grade A, and why
pdf 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 468 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PDF Processing
PDF is the universal document format. It is also one of the most annoying formats to work with programmatically. This skill handles the full range of PDF tasks — reading, creating, editing, merging, splitting, and extracting — using the right tool for each job.
| Task | Best tool |
|---|---|
| Extract text (digital PDF) | pdfplumber or pdftotext |
| Extract tables | pdfplumber |
| Create PDF from content | reportlab |
| Merge / split / rotate | pypdf or qpdf |
| Fill PDF forms | pypdf or pdf-lib (JS) |
| OCR scanned PDFs | pytesseract + pdf2image |
| Password protect / decrypt | pypdf or qpdf |
| Extract images | pdfimages (poppler) |
pypdf,pdfplumber, andreportlabare typically pre-installed. Import directly. Only runpip installif an import fails.
Reading & Extracting Content
Extract All Text
# pdfplumber — preserves layout better than pypdf
import pdfplumber
with pdfplumber.open("document.pdf") as pdf:
print(f"Pages: {len(pdf.pages)}")
for i, page in enumerate(pdf.pages, 1):
text = page.extract_text()
if text:
print(f"\n--- Page {i} ---")
print(text)
# Command line — fastest for quick extraction
pdftotext document.pdf output.txt # basic
pdftotext -layout document.pdf output.txt # preserve column layout
pdftotext -f 1 -l 5 document.pdf - # pages 1–5, stdout
Extract Specific Pages
from pypdf import PdfReader
reader = PdfReader("document.pdf")
# Single page
text = reader.pages[0].extract_text()
# Page range (0-indexed)
for page in reader.pages[2:7]: # pages 3–7
print(page.extract_text())
Extract Tables
import pdfplumber
import pandas as pd
with pdfplumber.open("report.pdf") as pdf:
all_tables = []
for page_num, page in enumerate(pdf.pages, 1):
tables = page.extract_tables()
for table_num, table in enumerate(tables, 1):
if not table or not table[0]:
continue
print(f"Page {page_num}, Table {table_num}: {len(table)} rows")
# Convert to DataFrame — first row as headers
df = pd.DataFrame(table[1:], columns=table[0])
# Clean: strip whitespace, drop empty rows
df = df.applymap(lambda x: x.strip() if isinstance(x, str) else x)
df = df.dropna(how="all")
all_tables.append(df)
# Combine and export
if all_tables:
combined = pd.concat(all_tables, ignore_index=True)
combined.to_excel("extracted_tables.xlsx", index=False)
combined.to_csv("extracted_tables.csv", index=False)
print(f"Extracted {len(combined)} rows across {len(all_tables)} tables")
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.
- 3mo ago First seen · 468 lines · 98 tokens per session scan A 313d3b31f41a
pdf is a skill published in the GitHub repository CODE-SAURABH/OpenSkills (6 stars, last pushed 4mo ago), licensed MIT. It adds 98 tokens to every session and 3,712 once invoked, about $0.0004 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-31.
pdf compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pdfCODE-SAURABH/OpenSkills | Skill | 6 | 4mo ago | MIT | A | 98 | Claude Code, Codex |
| pdf2epubmoonlight-lupin/agent-skills | Skill | 136 | 2d ago | MIT | A | 100 | Claude Code, Codex |
| receipt-compilermoonlight-lupin/agent-skills | Skill | 136 | 2d ago | MIT | A | 38 | Claude Code, Codex |
| kamiEliasOulkadi/shokunin | Skill | 112 | 1mo ago | MIT | A | 0 | Claude Code, Codex |
| kagenEliasOulkadi/shokunin | Skill | 112 | 1mo ago | MIT | A | 0 | Claude Code, Codex |
| pdf-processingseb1n/awesome-ai-agent-skills | Skill | 265 | 3mo ago | MIT | A | 105 | Codex |
| paper-fetchAgents365-ai/paper-fetch | Skill | 189 | 4mo ago | MIT | A | 162 | Claude Code, Codex |