Skip to content
PDF

PDF Skill

Read, create, and manipulate PDF files — extract text and tables, merge, split, watermark, fill forms, encrypt, and OCR scanned pages.

GitHub Docs

Install

Install with the skills CLI

One command for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf and dozens of other agents. Needs Node.js; the skill is fetched straight from anthropics/skills.

$ npx skills add anthropics/skills --skill pdf

Run it in a terminal. The CLI finds the agents installed on your machine, asks which ones to add the skill to, and whether to install it into the folder you ran it from or for all your projects.

Other ways to install

Copy the whole skill folder — SKILL.md and any scripts or references beside it — into ~/.claude/skills/pdf/, where Claude Code picks it up in every project. Only git is needed.

tmp=$(mktemp -d) && \
  git clone --depth 1 --branch main https://github.com/anthropics/skills.git "$tmp" && \
  mkdir -p ~/.claude/skills && \
  cp -R "$tmp"/skills/pdf ~/.claude/skills/pdf

No scripts or references next to it? Saving the SKILL.md alone as ~/.claude/skills/pdf/SKILL.md works too.

Using another agent? Its personal skills folder
Codex
~/.agents/skills/
Cursor
~/.cursor/skills/
GitHub Copilot
~/.copilot/skills/
Gemini CLI
~/.gemini/skills/
Windsurf
~/.codeium/windsurf/skills/
OpenCode
~/.config/opencode/skills/

About

A comprehensive toolkit for working with PDF files. It reads and extracts text and tables from native or scanned documents, merges and splits files, rotates pages, adds watermarks, fills interactive forms, encrypts and decrypts, extracts embedded images, and runs OCR to make scanned PDFs searchable. Use it whenever a .pdf file is an input or the requested output.

SKILL.md

The instructions your agent loads, as published by Anthropic.

SKILL.md

PDF Skill

Use this skill whenever a task involves reading, creating, or editing PDF files.

When to use
  • Extracting text or tables from a PDF (native or scanned)
  • Merging several PDFs into one, or splitting one apart
  • Rotating pages, adding watermarks, or reordering content
  • Creating new PDFs from scratch
  • Filling or reading PDF form fields
  • Encrypting/decrypting, or extracting embedded images
  • OCR on scanned documents to make them searchable
How it works

The skill leans on mature Python libraries — pypdf for structural operations, pdfplumber for text and table extraction, and reportlab for generation — plus command-line tools and an OCR pipeline for scanned input. Choose the lightest tool that satisfies the request and verify the output before returning it.

Install

Firecrawl's skill for reading known web pages with its CLI: scrape a URL to markdown, links or schema-typed JSON, batch-scrape URL lists, cap PDF pages, and discover and run data-provider tools for structured results.

Browse all skills →