processing-pdfs

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 CodeCodex

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.

agentmods
npx agentmods add skills/telagod/code-abyss/processing-pdfs
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, Codex.

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. Scan, not verified.
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 $0.00057 $0.00537
Opus 5 $0.00028 $0.00269
Sonnet 5 $0.00011 $0.00107
Haiku 4.5 $0.00006 $0.00054

Measured 2d ago against content hash 8da07515d278, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 (239 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 537 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories

codexkit-api-design-reviewer

Review REST and GraphQL API designs for consistency, usability, and best practices. Covers naming conventions, versioning strategy, error format, pagination, authentication patterns, and breaking change detection. Use when reviewing API specs, designing new APIs, or auditing existing endpoints.

hoavdc/CodexKit · 60 tokens

codexkit-change-management-plan

Build change management plans using ADKAR and Kotter's 8-Step framework. Covers stakeholder readiness, communication plans, training schedules, resistance management, and adoption metrics. Use when rolling out new systems, reorganizations, or process changes that affect people.

hoavdc/CodexKit · 58 tokens

codexkit-churn-risk-analyzer

Build customer health scores and churn risk models using leading indicators. Define health dimensions (Usage, Engagement, Support, Sentiment, Contract), weight and score customers, segment into Healthy / At-Risk / Red, and generate intervention playbooks. Use during QBR prep, customer success reviews, or when churn…

hoavdc/CodexKit · 72 tokens

codexkit-crisis-communication

Draft crisis communication packages including holding statements, stakeholder updates, Q&A documents, and internal briefs. Follows ICS (Incident Command System) communication principles. Use during PR crises, data breaches, product recalls, or any event requiring rapid coordinated messaging.

hoavdc/CodexKit · 57 tokens

codexkit-interview-guide-builder

Build structured behavioral interview guides using the STAR method. Map job competencies to interview questions, provide scoring rubrics (1–5), and include follow-up probes and red/green flag indicators. Use when preparing for hiring interviews or standardizing interview practices.

hoavdc/CodexKit · 58 tokens

codexkit-legal-due-diligence

Conduct structured legal due diligence for M&A, joint ventures, or investment transactions. Cover all 9 workstreams — Corporate, Contracts, IP, Litigation, Regulatory, Employment, Tax, Environmental, and Data Privacy. Produce a risk matrix with deal-breaker flags and closing conditions. Use when evaluating a target or…

hoavdc/CodexKit · 76 tokens