pdf-reading

pdf-reading is a skill for Claude Code, Codex from asgeirtj/system_prompts_leaks. It costs 115 tokens per session (2,745 once invoked), scanned A, original, CC0-1.0.

A guide for inspecting and extracting content from PDF files, including text, images, tables, forms, attachments, and scanned pages. PDF is a document format that may contain text or only page images.

In plain words
What is it for?
Use it to inventory a PDF, extract text or tables, render pages for visual checks, inspect embedded files, or apply OCR when needed.
Why use it?
It helps choose the right extraction method and detect cases where normal text reading will fail, such as scans or encrypted files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inventory a PDF, extract text or tables, render pages for visual checks, inspect embedded files, or apply OCR when needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asgeirtj/system_prompts_leaks/pdf-reading
About the project

System Prompts Leaks is a collection of captured system instructions used to guide AI chatbots and coding agents before they receive user messages. It serves researchers and developers studying how different AI assistants are directed.

asgeirtj/system_prompts_leaks · 73,683 stars · on GitHub

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 asgeirtj/system_prompts_leaks --skill pdf-reading
Clone the repo
git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks

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-reading

README.md
[![agentmods](https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/pdf-reading/github.svg)](https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/pdf-reading)
Your own site
<a href="https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/pdf-reading"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/pdf-reading/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-reading

Your own site · 80×15
<a href="https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/pdf-reading"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/pdf-reading.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,745 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.00115 $0.02745
Opus 5.5 $0.00046 $0.01098
Sonnet 5.5 $0.00023 $0.00549
Haiku 4.5 $0.00012 $0.00275

Measured 11d ago against content hash 9593e641d4ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pdf-reading 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 11d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

Anthropic/claude-code/skills/pdf-reading/SKILL.md · 309 lines

How it starts

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

PDF Processing Guide

Overview

This guide covers essential PDF reading operations using Python libraries and command-line tools. For advanced features (pypdfium2 rendering, pdfplumber table settings, OCR fallback, encrypted/corrupted PDF handling), see REFERENCE.md.

Reading & Inspecting PDFs

Before doing anything with a PDF, understand what you're working with.

Content inventory

Run a quick diagnostic first. For simple tasks ("summarize this document"), pdfinfo + pdffonts + a text sample may suffice. For anything involving figures, attachments, or extraction issues, run the full set:

# Always: page count, file size, PDF version, metadata
pdfinfo document.pdf

# Always: does a text layer exist? No fonts → scanned/raster → see "Scanned documents"
pdffonts document.pdf

# If fonts are present: sample the text layer
pdftotext -f 1 -l 1 document.pdf - | head -20

# If figures/charts may matter:
pdfimages -list document.pdf

# If the PDF might contain embedded files (reports, portfolios):
pdfdetach -list document.pdf

This tells you:

  • Page count and size — how big is the job?
  • Font status — are any fonts present? An empty pdffonts table means the PDF is scanned or raster-only: pdftotext will return nothing, so skip straight to "Scanned documents" below. Fonts shown as not embedded ("emb: no") with custom encodings may produce wrong characters on extraction.
  • Text extractability — when fonts exist, does pdftotext return clean text, or is it garbled (broken encoding)?
  • Embedded raster images — are there photos or raster figures? (Note: vector-drawn charts from matplotlib/Excel won't appear — see "Extracting embedded images" below)
  • Attachments — are there embedded spreadsheets, data files, etc.?

Text extraction

pypdf for basic text:

from pypdf import PdfReader

reader = PdfReader("document.pdf")
print(f"Pages: {len(reader.pages)}")

# Extract text
text = ""
for page in reader.pages:
    text += page.extract_text()

Read the full file on GitHub · 309 lines

Files

What ships with it

2 files 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. 11d ago First seen · 309 lines · 115 tokens per session scan A 9593e641d4ab

Subscribe to this mod's changes

pdf-reading is a skill published in the GitHub repository asgeirtj/system_prompts_leaks (73,683 stars, last pushed yesterday), licensed CC0-1.0. It adds 115 tokens to every session and 2,745 once invoked, about $0.0005 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-11-19.

Related

pdf-reading compared with skills from other repositories

pdf-reading next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pdf-readingasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A115Claude Code, Codex
plan-deck-specEverMind-AI/RavenSkill6.4ktodayApache-2.0A71Claude Code, Codex
pdfNousResearch/hermes-agentSkill267ktodayMITC18Claude Code, Codex
pdfAstrBotDevs/AstrBotSkill48ktodayAGPL-3.0A45Claude Code, Codex
pptxagents-flex/agents-flexSkill1.1k8d agoApache-2.0A50Claude Code, Codex
docxnextlevelbuilder/goclawSkill3.7k11d agononeA168Claude Code, Codex
pdfnextlevelbuilder/goclawSkill3.7k11d agononeA92Claude Code, Codex