pdf

pdf is a skill for Claude Code, Codex from desirecore/market. It costs 128 tokens per session (3,587 once invoked), scanned B, original, MIT.

A toolkit for working with PDF files, which are fixed-layout documents used for sharing and printing. It can read, create, combine, split, rotate, protect, and fill PDFs, including scanned documents through OCR.

In plain words
What is it for?
Use it to extract text or tables, merge or split documents, create PDFs, fill forms, add watermarks, encrypt files, or extract images.
Why use it?
It removes the need to handle PDF text, pages, forms, and scans with separate applications or manual steps.

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/desirecore/market/pdf
Any agent
npx skills add desirecore/market --skill pdf
Clone the repo
git clone --depth 1 https://github.com/desirecore/market

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/desirecore/market/pdf.svg)](https://agentmods.dev/skills/desirecore/market/pdf)
Your own site
<a href="https://agentmods.dev/skills/desirecore/market/pdf"><img src="https://agentmods.dev/badge/skills/desirecore/market/pdf.svg" alt="Measured on agentmods" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,587 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00128 $0.03587
Opus 5 $0.00064 $0.01793
Sonnet 5 $0.00026 $0.00717
Haiku 4.5 $0.00013 $0.00359

Measured 3d ago against content hash e11ca44fe424, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

pdf scanned grade B with 1 finding 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 3d ago.

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

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **Linux (Debian/Ubuntu)**: `sudo apt install python3 python3-pip`
skills/pdf/SKILL.md · 436 lines

How it starts

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

pdf skill

L0: One-Sentence Summary

Read, create, merge, split, and fill PDF documents, with OCR support and command-line tools.

L1: Overview and Use Cases

Capability Description

pdf is a Procedural Skill that provides full PDF document processing capabilities. Built on Python libraries (pypdf, pdfplumber, reportlab) and command-line tools (qpdf, pdftotext, pdftk), it supports text extraction, table extraction, merging/splitting, rotation, watermarking, encryption, form filling, and OCR.

Use Cases

  • The user needs to extract text or table data from a PDF
  • The user needs to merge multiple PDFs or split pages
  • The user needs to create a new PDF document
  • The user needs to fill PDF forms, add watermarks, or encrypt PDFs

L2: Detailed Specification

Prerequisites

Python 3 (required)

Before performing any Python operation, check that Python is available:

python3 --version 2>/dev/null || python --version 2>/dev/null

If the command fails (Python is not available), you must stop and tell the user to install Python 3:

  • macOS: brew install python3, or download from https://www.python.org/downloads/
  • Windows: winget install Python.Python.3, or download from python.org (check "Add Python to PATH" during installation)
  • Linux (Debian/Ubuntu): sudo apt install python3 python3-pip
  • Linux (Fedora/RHEL): sudo dnf install python3 python3-pip

For more detailed environment setup help: load the python-runtime skill for Python issues; load the dev-environment-setup skill for everything else (system tools like poppler / tesseract, containers / WSL).

Python Package Dependencies

This skill depends on the following Python packages (checked on demand):

  • pypdf — Basic PDF operations (read, merge, split, rotate)
  • pdfplumber — Table extraction, layout-aware text extraction
  • Pillow — Image processing (watermarks, verification images, etc.)
  • reportlab — PDF creation (optional, install on demand)
  • pdf2image — PDF-to-image conversion (optional, requires poppler)

Read the full file on GitHub · 436 lines

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. 3d ago First seen · 436 lines · 128 tokens per session scan B e11ca44fe424

Subscribe to this mod's changes

pdf is a skill published in the GitHub repository desirecore/market (2 stars, last pushed 4d ago), licensed MIT. It adds 128 tokens to every session and 3,587 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

document-processing

End-to-end document processing agent skill covering PDF manipulation (extract, merge, split, rotate, watermark, form-fill, OCR), DOCX creation and editing (templates, mail-merge, style management), XLSX spreadsheet handling (formulas, charts, pivot tables, data analysis), PPTX presentation generation (layouts, charts…

JPeetz/agent-skills · 174 tokens

pdf-toolkit

PDF processing - extract text, merge, split, OCR, info, watermark.

chainlesschain/chainlesschain · 19 tokens

paddleocr-doc-parsing

Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as LaTeX, figures, seals, charts, headers/footers, multi-column layout and correct reading order. Trigger terms: 文档解析, 版面分析, 版面还原, 表格提取, 公式识别, 多栏排版, 扫描件结构化, 发票, 财报, 复杂 PDF, PDF转Markdown, 图表…

PaddlePaddle/PaddleOCR · 140 tokens

paddleocr-text-recognition

Use this skill whenever the user wants text extracted from images, photos, scans, screenshots, or scanned PDFs. Returns exact machine-readable strings with line-level text and optional bbox coordinates. Strong accuracy for CJK, small print, and handwritten text. Trigger terms: OCR, 文字识别, 图片转文字, 截图识字, 提取图中文字, 扫描识字, 识字…

PaddlePaddle/PaddleOCR · 125 tokens

pdf-processing

Extract text from PDFs, fill forms, and merge documents.

PrefectHQ/fastmcp · 11 tokens

document-skills/pdf

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

aitytech/agentkits-marketing · 53 tokens