processing-pdfs

processing-pdfs is a skill for Claude Code from telagod/code-abyss. It costs 57 tokens per session (537 once invoked), scanned A, original, MIT.

A set of tools and recipes for working with PDF files, including reading text and tables, creating documents, filling forms, and changing or combining files.

In plain words
What is it for?
Use it to extract content, process batches, handle scanned PDFs with OCR, fill forms, add watermarks, encrypt files, or merge and split documents.
Why use it?
It removes the need to choose and wire together separate PDF libraries for common document tasks.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the code-abyss plugin — 39 skills shipped together

Good fit Use it to extract content, process batches, handle scanned PDFs with OCR, fill forms, add watermarks, encrypt files, or merge and split documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/telagod/code-abyss/processing-pdfs
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 telagod/code-abyss --skill processing-pdfs
Clone the repo
git clone --depth 1 https://github.com/telagod/code-abyss

Made for: Claude Code.

Or install code-abyss, the plugin that ships this one along with the rest of its 39 skills.

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 processing-pdfs

README.md
[![agentmods](https://agentmods.dev/badge/skills/telagod/code-abyss/processing-pdfs/github.svg)](https://agentmods.dev/skills/telagod/code-abyss/processing-pdfs)
Your own site
<a href="https://agentmods.dev/skills/telagod/code-abyss/processing-pdfs"><img src="https://agentmods.dev/badge/skills/telagod/code-abyss/processing-pdfs/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 processing-pdfs

Your own site · 80×15
<a href="https://agentmods.dev/skills/telagod/code-abyss/processing-pdfs"><img src="https://agentmods.dev/badge/skills/telagod/code-abyss/processing-pdfs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 537 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00057 $0.00537
Opus 5.5 $0.00023 $0.00215
Sonnet 5.5 $0.00011 $0.00107
Haiku 4.5 $0.00006 $0.00054

Measured 1mo ago against content hash 8da07515d278, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

processing-pdfs 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.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/check_bounding_boxes_test.py, scripts/check_bounding_boxes.py, scripts/check_fillable_fields.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.

skills/processing-pdfs/SKILL.md · 52 lines

What it actually says

PDF Processing

Essential PDF operations using Python libraries and CLI tools.

Decision Matrix

Task Best Tool Reference
Merge / split / metadata / rotate pypdf recipes.md
Extract text (layout preserved) pdfplumber recipes.md
Extract tables pdfplumber recipes.md
Create new PDF reportlab recipes.md
Batch CLI ops qpdf / pdftk recipes.md
OCR scanned PDFs pytesseract + pdf2image advanced.md
Add watermark / extract images / encrypt pypdf / pdfimages advanced.md
Fill PDF forms pdf-lib / pypdf FORMS.md
Advanced pypdfium2 / pdf-lib JS — REFERENCE.md

Quick Start

from pypdf import PdfReader
reader = PdfReader("document.pdf")
print(f"Pages: {len(reader.pages)}")
text = "".join(page.extract_text() for page in reader.pages)

Workflow

  1. Identify task — text extraction? table? creation? form? Pick row from matrix above.
  2. Load reference — recipes.md covers 90% of tasks; advanced.md for OCR / encrypt; FORMS.md for forms.
  3. Implement — copy-adapt recipe; verify output.
  4. Validate — open in a viewer or grep extracted text.

Library Selection

Library Use for
pypdf Merge, split, metadata, encryption, rotation
pdfplumber Text extraction with layout, tables
reportlab Generate PDFs programmatically
pdf2image + pytesseract OCR scanned documents
qpdf / pdftk (CLI) Batch ops, no Python needed
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. 1mo ago First seen · 52 lines · 57 tokens per session scan A 8da07515d278

Subscribe to this mod's changes

processing-pdfs is a skill published in the GitHub repository telagod/code-abyss (243 stars, last pushed 3mo ago), licensed MIT. It adds 57 tokens to every session and 537 once invoked, about $0.0002 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.