# PDF

> PDF is an agent skill for files and documents. Use this skill whenever the user wants to do anything with PDF files. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/anthropics/skills/tree/main/skills/pdf
- **Repository:** https://github.com/anthropics/skills
- **GitHub stars:** 196,392
- **Skill name:** pdf
- **Collection:** https://github.com/anthropics/skills
- **Categories:** files and documents
- **Listing updated:** 2026-11-17

## About

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

## When your agent uses it

> Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/anthropics/skills/tree/HEAD/skills/pdf)
- [No network calls found in its scripts](https://github.com/anthropics/skills/tree/HEAD/skills/pdf)
- [No license found](https://github.com/anthropics/skills/tree/HEAD/skills/pdf)

## Install

### Claude Code

This skill ships in the `document-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add anthropics/skills
/plugin install document-skills@anthropic-agent-skills
```

Or copy only this skill to `~/.claude/skills/pdf`:

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

For one project only, put the folder in `.claude/skills/pdf` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/pdf` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/anthropics/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/pdf &&
cp -R "$tmp/skills/pdf" ~/.agents/skills/pdf &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/pdf` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/pdf` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/anthropics/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/pdf &&
cp -R "$tmp/skills/pdf" ~/.cursor/skills/pdf &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/pdf` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/anthropics/skills.git --path skills/pdf
```

Or copy the folder to `~/.gemini/skills/pdf` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/pdf`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/anthropics/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/pdf &&
cp -R "$tmp/skills/pdf" ~/.copilot/skills/pdf &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/pdf` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/anthropics/skills.git
```

Then copy `skills/skills/pdf` into your agent's skills folder as `pdf`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install PDF in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/pdf to use it in all your projects, or to .claude/skills/pdf in one project. Or install the document-skills plugin, which includes it: /plugin marketplace add anthropics/skills, then /plugin install document-skills@anthropic-agent-skills.

### Does PDF run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use PDF?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to PDF?

The closest alternatives to PDF are DOCX and XLSX.

## Alternatives

- [DOCX](https://ai-powered.com/skills/docx-anthropics): DOCX is an agent skill for files and documents.
- [XLSX](https://ai-powered.com/skills/xlsx): XLSX is an agent skill for files and documents.

---
Source: https://ai-powered.com/skills/pdf-anthropics
