pdf-tools

pdf-tools is a skill for Claude Code, Codex from event4u-app/agent-config. It costs 50 tokens per session (1,098 once invoked), scanned A, original, MIT.

A procedure for creating, merging, splitting, filling, rotating, encrypting, or extracting content from PDF files, including scanned-document OCR. OCR turns text in an image into selectable text.

In plain words
What is it for?
Use it to create PDFs, combine or divide pages, fill PDF forms, extract text or tables, or read scanned PDFs.
Why use it?
It provides task-specific approaches and validation for common PDF transformations instead of treating every PDF operation the same way.

Skill for Claude CodeCodex

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

Good fit Use it to create PDFs, combine or divide pages, fill PDF forms, extract text or tables, or read scanned PDFs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/event4u-app/agent-config/pdf-tools
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 event4u-app/agent-config --skill pdf-tools
Clone the repo
git clone --depth 1 https://github.com/event4u-app/agent-config

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/event4u-app/agent-config/pdf-tools"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/pdf-tools.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,098 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.00050 $0.01098
Opus 5 $0.00025 $0.00549
Sonnet 5 $0.00010 $0.00220
Haiku 4.5 $0.00005 $0.00110

Measured 8d ago against content hash 0ef687b0da05, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

pdf-tools 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 8d 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.

src/skills/pdf-tools/SKILL.md · 103 lines

How it starts

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

pdf-tools

Wing-1 engineering skill for PDF write/transformmarkitdown reads a PDF to Markdown; this creates, merges, fills, and extracts. Ships zero runtime: the agent drives libraries the consumer has. Pattern re-implementation only.

When to use

  • "Merge / split / rotate / encrypt these PDFs."
  • "Fill this PDF form (AcroForm) with these values."
  • "Create a PDF from this content."
  • "Extract the text / tables from this PDF" (structured extraction beyond markitdown's Markdown).
  • "OCR this scanned PDF."

Do NOT use for: PDF → Markdown ingestion (markitdown); Word (docx-authoring).

Procedure

1. Library per task — do not force one tool

Task Library path
merge / split / rotate / encrypt pypdf — page-level operations, no rendering
create from content reportlab (canvas / platypus)
form-fill (AcroForm) a form-aware library; map field name → value, then flatten if the form must not be re-editable
text / table extraction a text-layer extractor; tables need a layout-aware pass, not naive text
OCR (scanned/image PDF) an OCR engine over rasterized pages — ONLY when there is no text layer

2. Decide flatten-or-keep on form fills

A filled AcroForm stays editable unless flattened. Flatten when the PDF is a final artifact (an invoice, a signed form); keep fields when the recipient must edit further. State which you chose — a silently-editable "final" form is a correctness bug.

3. Validate — assert output validity, do not trust the write

  1. Re-open the output with pypdf; assert len(reader.pages) matches the expected count (merge = sum; split = 1 per part).
  2. For a form-fill: read back one field value (pre-flatten) or extract the rendered text (post-flatten) and assert the value is present.
  3. For create: assert the file opens and page 1 carries expected text.

Output format

  1. The output PDF path(s).
  2. Validation: page count matches expected ✅, read-back value/text present ✅.
  3. For fills: flatten decision stated (flattened / kept-editable + why).

Read the full file on GitHub · 103 lines

Files

What ships with it

1 file 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. 8d ago First seen · 103 lines · 50 tokens per session scan A 0ef687b0da05

Subscribe to this mod's changes

pdf-tools is a skill published in the GitHub repository event4u-app/agent-config (10 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 1,098 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-09-04.

Related

Other skills, from other repositories

slides

Create and edit presentation slide decks (.pptx) with PptxGenJS, bundled layout helpers, and render/validation utilities. Use when tasks involve building a new PowerPoint deck, recreating slides from screenshots/PDFs/reference decks, modifying slide content while preserving editable output, adding…

fcakyon/claude-codex-settings · 83 tokens

liteparse

Parse documents into LLM-ready content entirely on the local machine — PDF / DOCX / XLSX / PPTX / images → Markdown, structured JSON (with bounding boxes), or page screenshots, via the lit CLI. No cloud, no LLM, works offline. Use whenever the user attaches or points to a document that must be read before reasoning…

Prismer-AI/PrismerCloud · 90 tokens

markitdown

Convert documents (PDF, Word, Excel, PowerPoint, images) to Markdown text for LLM processing.

markus-global/markus · 25 tokens

lov-any2docx

Convert Markdown documents to professionally styled DOCX (Word) files with python-docx. Handles CJK/Latin mixed text, fenced code blocks, tables, blockquotes, cover pages, TOC field, watermarks, and page numbers. Supports multiple color themes matching any2pdf (Configurable Academic, Nord, GitHub Light, etc.) and is…

lovstudio/skills · 184 tokens

lov-rich-export

A content-export workflow that converts one source document into HTML, Markdown, DOCX, PDF, or an offline delivery package. It accounts for images, audio, video, embedded pages, and interactive charts in each format.

lovstudio/skills · 105 tokens

lov-pdf2png

A PDF-to-image converter that renders every page and joins the pages into one tall PNG image.

lovstudio/skills · 108 tokens