pdf

A toolset for reading, changing, and creating PDF files, including scanned documents and forms.

In plain words
What is it for?
Extracting text or tables, merging or splitting files, adding watermarks, filling forms, protecting PDFs, reading scanned pages with OCR, and creating new PDFs.
Why use it?
It handles common PDF work without requiring the developer to find separate tools for text, tables, page changes, security, and scanning.

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

Made for: Claude Code, Codex.

Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,261 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.00069 $0.01261
Opus 5 $0.00034 $0.00630
Sonnet 5 $0.00014 $0.00252
Haiku 4.5 $0.00007 $0.00126

Measured 2d ago against content hash 2c111bbd6483, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

skills/pdf/SKILL.md · 128 lines

How it starts

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

PDF Skill

Your Role

You are a PDF operator. You read, extract from, merge, split, watermark, encrypt, and create PDF files using Python libraries. You pick the right tool for the job: pypdf for structural operations (merge, split, encrypt), pdfplumber for text and table extraction, reportlab or weasyprint for creating new PDFs from scratch, and ocrmypdf for OCR on scanned documents.

When to use this skill

Trigger when:

  • The user references a .pdf file by path or name
  • The user wants to extract text or tables from a PDF
  • The user wants to combine, merge, or split PDFs
  • The user wants to rotate pages, add watermarks, or extract images
  • The user wants to create a new PDF (from Markdown, HTML, or programmatically)
  • The user wants to fill a PDF form
  • The user wants to encrypt, decrypt, or password-protect a PDF
  • The user wants to OCR a scanned PDF

Library map

Task Library
Merge / split / rotate / encrypt pypdf
Extract text pdfplumber or pypdf
Extract tables pdfplumber (better)
Create PDF from Markdown / HTML weasyprint or markdown-pdf
Create PDF programmatically reportlab
OCR scanned PDFs ocrmypdf (system binary, install via brew install ocrmypdf)
Fill PDF forms pypdf (basic forms) or pdfrw

Install: pip install pypdf pdfplumber reportlab weasyprint. OCR: brew install ocrmypdf.

Process

Step 1: Inspect First

Before processing a PDF, confirm:

  • Is it text-based or scanned? Open and check whether pdfplumber returns text. Empty text = scanned = needs OCR first.
  • How many pages? Multi-hundred-page PDFs need streaming, not full-load.
  • Is it encrypted? Attempt to open; if it asks for a password, get it from the user.

Step 2: Common Patterns

Extract all text:

import pdfplumber
with pdfplumber.open("input.pdf") as pdf:
    text = "\n\n".join(page.extract_text() or "" for page in pdf.pages)

Extract tables:

import pdfplumber
with pdfplumber.open("input.pdf") as pdf:
    for i, page in enumerate(pdf.pages):
        for j, table in enumerate(page.extract_tables()):
            print(f"Page {i+1} Table {j+1}: {table}")

Read the full file on GitHub · 128 lines

Files

What ships with it

2 files 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. 2d ago First seen · 128 lines · 69 tokens per session scan A 2c111bbd6483

Subscribe to this mod's changes

pdf is a skill published in the GitHub repository GTMify/aigtm (24 stars, last pushed 24d ago), licensed MIT. It adds 69 tokens to every session and 1,261 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

gh-issue-to-demand-signal

Takes a competitor's public GitHub repo URL, fetches their open issues via the GitHub REST API, filters noise locally, clusters issues into 6 demand categories, computes a demand score per issue and per cluster, and outputs a ranked demand gap report with a GTM messaging brief. Use when asked to scan a competitor's…

Varnan-Tech/opendirectory · 154 tokens

graphic-ebook

Creates professionally designed B2B SaaS e-books in HTML + CSS, exported as print-ready PDF. 3–10 pages, 9 style presets, 11 page layout types. Trigger when user says "create an ebook", "design a lead magnet", "make a PDF guide", "build a gated content piece", "write a B2B ebook", "design a white paper", "create a…

Varnan-Tech/opendirectory · 97 tokens

company-radar

Competitive intelligence orchestrator tracking companies across 8+ platforms (GitHub, Twitter, Reddit, HN, PH, YC Jobs) with heat scores and AI briefings.

Varnan-Tech/opendirectory · 39 tokens

map-your-market

Given a product description, category keywords, or competitor names (any combination), searches Reddit, Hacker News, GitHub Issues, G2, and Google Trends for the real pains your market experiences, then synthesizes everything into a positioning framework showing who your ICP is, what they say out loud, and exactly how…

Varnan-Tech/opendirectory · 163 tokens

producthunt-launch-kit

Use when the user asks to prepare a Product Hunt launch or generate Product Hunt listing assets. Generates tagline variants under 60 chars, a 500-char description, a maker comment, launch-day tweet thread, LinkedIn post, and a 4-email launch sequence.

Varnan-Tech/opendirectory · 58 tokens

dependency-update-bot

Scans your project for outdated npm, pip, Cargo, Go, or Ruby packages. Runs a CVE security audit. Fetches changelogs, summarizes breaking changes with Gemini, and opens one PR per risk group (patch, minor, major). Includes Diagnosis Mode for install conflicts. Use when asked to update dependencies, check for outdated…

Varnan-Tech/opendirectory · 134 tokens