Skip to content
AI Dev Toolkit.
Esc
  • Loading…

Claude skill · Documents · Anthropic

PDF skill for Claude

The PDF skill is Anthropic’s skill for PDF work. Claude uses it to extract text and tables, merge, split and rotate pages, fill in forms and run OCR on scans. It is built into claude.ai and the Claude API, and the document-skills plugin adds it to Claude Code. Its licence forbids copies, so this page summarises it.

Command
/pdf
Licence
Proprietary: no copies, link only
Folder
12 files, 57 KB
Runs code
8 scripts

Overview

What does the PDF skill do?

This is the skill behind Claude’s own PDF handling. Its SKILL.md is a working guide to the Python and command-line tools for the job: pypdf for merging, splitting and rotating pages, pdfplumber for text and tables, reportlab for new documents, and poppler and qpdf on the command line.

Form filling has its own reference file and eight helper scripts. They check whether a PDF has fillable fields, extract the field structure, fill the fields, and, for flat forms with no fields, place text by bounding box and render an image so Claude can check the result before handing it back.

Triggers

When does Claude use it?

  • Any mention of a .pdf file, or a request to produce one.
  • Extracting text, tables or images; merging, splitting or rotating pages; watermarks; encryption.
  • Filling in a PDF form, or making a scanned PDF searchable with OCR.

What it needs

  • Python with pypdf, pdfplumber and reportlab; OCR also needs pytesseract and pdf2image.
  • Command-line tools such as poppler-utils and qpdf for some steps.
  • Proprietary licence: use it through Claude or the official plugin, and don’t copy it into your own projects.

Install

How do I install it in Claude Code?

From the plugin marketplace

Plugin (type in Claude Code)
/plugin marketplace add anthropics/skills
/plugin install document-skills@anthropic-agent-skills

The document-skills plugin brings 4 skills, including this one; it runs as /document-skills:pdf.

Anthropic’s managed version isn’t part of Claude Code. The plugin installs the published folder instead, and its scripts run on your machine, so install the tools listed under “What it needs” first.

As a personal or project skill

Its licence doesn’t allow copies, so we don’t give a copy command. Install it with the plugin instead.

claude.ai and API

How do I use it in claude.ai and the API?

claude.ai

It’s built in. Turn on Code execution and file creation in Settings > Capabilities and Claude uses it whenever a task needs it. You can switch individual skills on or off in Customize > Skills.

Claude API

Anthropic runs this skill for you. Reference it as pdf in the container, together with the code execution tool:

Messages API request (excerpt)
{
  "container": {
    "skills": [
      {
        "type": "anthropic",
        "skill_id": "pdf",
        "version": "latest"
      }
    ]
  },
  "tools": [
    {
      "type": "code_execution_20250825",
      "name": "code_execution"
    }
  ]
}

API containers have no network access, so its scripts can’t download anything there.

Checks

SKILL.md validator results

Its SKILL.md (314 lines) run through our SKILL.md validator, with the folder’s file list, for both targets. These check the file’s format, not whether the skill works well.

Claude Code

0 errors, 0 warnings, 1 tip

  • tipSKILL.md doesn’t mention forms.md, reference.md, scripts/check_bounding_boxes.py, scripts/check_fillable_fields.py, scripts/convert_pdf_to_images.py and 5 more. Say what each file is for and when to read or run it, or Claude won’t know to use it.

claude.ai and the API

0 errors, 0 warnings, 2 tips

  • tipThe Claude Help Center’s upload guide gives a 200-character description limit for claude.ai, though the platform docs say 1,024. Keep it under 200 if you’ll upload it there.
  • tipSKILL.md doesn’t mention forms.md, reference.md, scripts/check_bounding_boxes.py, scripts/check_fillable_fields.py, scripts/convert_pdf_to_images.py and 5 more. Say what each file is for and when to read or run it, or Claude won’t know to use it.

Folder

What’s in the folder?

  • forms.md12 KB
  • LICENSE.txt1.4 KB
  • reference.md16 KB
  • SKILL.md7.9 KB
  • scripts/8 files, 20 KB

Source

Licence and source

FAQ

Questions people ask

Can Claude fill in a PDF form?

Yes. With the PDF skill, Claude first checks whether the PDF has fillable fields. If it does, a script reads the field structure and writes your values into it. If the form is flat, Claude places text by position and renders the page as an image so it can check the result. Look over dates and checkboxes yourself before you send the file.

Is the PDF skill free?

Yes, the skill itself costs nothing: it ships with claude.ai and the Claude API, and the plugin is free to install in Claude Code. You pay only for the Claude usage it causes, through your plan or your API bill. It is not open source, though. Anthropic publishes it as source-available, so you can read it but not copy it into your own projects.

Why doesn’t the PDF skill work in Claude Code?

Anthropic’s managed document skills aren’t part of Claude Code, so it won’t appear until you install it. Run /plugin marketplace add anthropics/skills, then /plugin install document-skills@anthropic-agent-skills. Claude Code runs the scripts on your machine, so you also need Python with pypdf, pdfplumber and reportlab, plus pytesseract and pdf2image if you want OCR.

Related

All Claude skillsWrite your own skillSlash command builderGuide: subagents, skills and commands

Keep exploring