pdf

pdf is a skill for Claude Code, Codex from XMZF-vAI/clerkbox. It costs 92 tokens per session (2,243 once invoked), scanned A, original, Apache-2.0.

A toolkit and set of instructions for working with PDF files, including reading text and tables, combining files, splitting pages, editing forms, and extracting images.

In plain words
What is it for?
Use it to inspect, create, merge, split, rotate, watermark, secure, or fill PDF documents.
Why use it?
It provides workflows for common PDF tasks that are awkward to perform manually or with basic text tools.

Skill for Claude CodeCodex

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

Good fit Use it to inspect, create, merge, split, rotate, watermark, secure, or fill PDF documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xmzf-vai/clerkbox/pdf
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 XMZF-vAI/clerkbox --skill pdf
Clone the repo
git clone --depth 1 https://github.com/XMZF-vAI/clerkbox

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/xmzf-vai/clerkbox/pdf/github.svg)](https://agentmods.dev/skills/xmzf-vai/clerkbox/pdf)
Your own site
<a href="https://agentmods.dev/skills/xmzf-vai/clerkbox/pdf"><img src="https://agentmods.dev/badge/skills/xmzf-vai/clerkbox/pdf/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xmzf-vai/clerkbox/pdf"><img src="https://agentmods.dev/badge/skills/xmzf-vai/clerkbox/pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,243 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.00092 $0.02243
Opus 5 $0.00046 $0.01122
Sonnet 5 $0.00018 $0.00449
Haiku 4.5 $0.00009 $0.00224

Measured 9d ago against content hash 4975652d6e16, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pdf 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 9d 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.

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.

resources/preset-skills/pdf/SKILL.md · 329 lines

How it starts

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

Working with PDF Documents

Introduction

A comprehensive toolkit for PDF manipulation through Python and shell utilities. Consult advanced-reference.md for extended capabilities (pypdfium2, JavaScript ecosystems, performance guidance). When form-filling is required, follow the workflow described in form-filling-guide.md.

Getting Started

import pypdf

# Open and inspect a document
doc = pypdf.PdfReader("document.pdf")
total_pages = len(doc.pages)
print("Pages: {}".format(total_pages))

# Gather all textual content
content = "".join(pg.extract_text() for pg in doc.pages)

Core Python Libraries

pypdf — Structural Manipulation

Combining Multiple Documents
import pypdf

output = pypdf.PdfWriter()
sources = ["doc1.pdf", "doc2.pdf", "doc3.pdf"]
for src in sources:
    rdr = pypdf.PdfReader(src)
    for pg in rdr.pages:
        output.add_page(pg)

with open("merged.pdf", "wb") as dest:
    output.write(dest)
Separating Pages Into Individual Files
import pypdf

source = pypdf.PdfReader("input.pdf")
for idx, pg in enumerate(source.pages):
    single = pypdf.PdfWriter()
    single.add_page(pg)
    with open("page_{}.pdf".format(idx + 1), "wb") as dest:
        single.write(dest)
Reading Document Properties
import pypdf

source = pypdf.PdfReader("document.pdf")
props = source.metadata
print("Title: {}".format(props.title))
print("Author: {}".format(props.author))
print("Subject: {}".format(props.subject))
print("Creator: {}".format(props.creator))
Changing Page Orientation
import pypdf

source = pypdf.PdfReader("input.pdf")
output = pypdf.PdfWriter()

target = source.pages[0]
target.rotate(90)  # 90-degree clockwise rotation
output.add_page(target)

with open("rotated.pdf", "wb") as dest:
    output.write(dest)

pdfplumber — Content Extraction

Retrieving Text Preserving Layout
import pdfplumber

with pdfplumber.open("document.pdf") as doc:
    for pg in doc.pages:
        content = pg.extract_text()
        print(content)

Read the full file on GitHub · 329 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. 9d ago First seen · 329 lines · 92 tokens per session scan A 4975652d6e16

Subscribe to this mod's changes

pdf is a skill published in the GitHub repository XMZF-vAI/clerkbox (7 stars, last pushed 3d ago), licensed Apache-2.0. It adds 92 tokens to every session and 2,243 once invoked, about $0.0005 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-31.