In short.
The pdf skill from the anthropics/skills repository is an instruction package that tells an AI agent how to read, merge, split, create, OCR and fill PDF files. It suits developers and agent users who handle PDFs. The main catch is that it depends on many separately installed libraries and tools with no pinned versions, and its scripts were read but not run. SKILL.md holds the trigger description and everyday snippets, forms.md describes a two-path form-filling workflow (fillable fields via pypdf, or text annotations positioned from extracted coordinates), reference.md adds advanced examples, and eight Python scripts support form filling. The licence file is the Apache License 2.0 text. Reading the files turned up small defects: file-name case mismatches (REFERENCE.md and FORMS.md versus reference.md and forms.md), a script command missing its .py extension, and a description that promises searchable OCR output where the example only prints text.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope is the pdf skill folder at [https://github.com/anthropics/skills/tree/main/skills/pdf] at revision 2c5958ecac7cee2b583967a2c4981d0f4a75c579. It contains SKILL.md, forms.md, reference.md, LICENSE.txt (Apache License 2.0 text) and eight Python scripts under scripts/. The repository-level THIRD_PARTY_NOTICES.md was captured as a related notice but lies outside the folder. It is used only as licensing context, and which of its components relate to this skill is not established. Linked pages, other skills and the rest of the repository were not part of the review. Nothing was executed: behaviour, output quality, dependency versions and compatibility with particular agent hosts are untested or unknown.
The overview
What it is
This resource is the pdf skill from the anthropics/skills repository on GitHub [https://github.com/anthropics/skills/tree/main/skills/pdf]. It is an instruction skill: a folder whose entry file, SKILL.md, starts with front matter. The front matter gives a name (pdf), a description that tells an AI agent when to use the skill, and a licence line. Guidance and code snippets for working with PDF files follow.
The reviewed folder has twelve files: SKILL.md (about 8 KB), forms.md (about 12 KB) for filling in forms, reference.md (about 17 KB) with advanced examples, LICENSE.txt, and eight Python scripts under scripts/ that support form filling. They were read at repository revision 2c5958ecac7cee2b583967a2c4981d0f4a75c579. None of the files names an author or a version number; the owner is identified only by the anthropics account in the address.
Assessment
Overall this is a substantive, practical skill rather than a stub. Its strongest part is the form-filling pipeline: written steps in forms.md are paired with scripts that extract field information, check bounding boxes and validate field values before writing a file. The rest of the skill is a compact cookbook of snippets for well-known PDF libraries. That is useful as a prompt for an agent, but it is not original tooling.
Reading the files turned up several small defects. SKILL.md points to REFERENCE.md and FORMS.md, but the files are named reference.md and forms.md, which could matter on a case-sensitive file system. The first instruction in forms.md runs scripts/check_fillable_fields without the .py extension, while the file is check_fillable_fields.py. The front-matter description promises OCR 'to make them searchable', but the only OCR example converts pages to images, runs pytesseract and prints the text; it does not build a searchable PDF. No dependency installation manifest or version pins are included. None of these is fatal and all are easy to work around.
The folder contains no tests, example PDFs or run records, and nothing was executed for this report, so the behaviour described below comes from reading the instructions and code only.
Who it suits
It suits people who run an AI agent that can load skills and execute shell commands, and who often need that agent to do PDF chores: pulling text or tables out of reports, merging or splitting documents, adding watermarks, creating simple PDFs, encrypting or decrypting files, or filling in forms. Beginners get ready-to-copy snippets with plain explanations. Experienced developers get a map of which library to use for which job (for example pdfplumber for tables, reportlab for creation, qpdf for command-line page surgery) and a documented form-filling method they can adapt.
It is a weaker fit for needs the files do not mention: digital signatures, redaction, PDF/A conformance, accessibility tagging, or high-volume production OCR. It is also not a self-contained tool: someone has to install and maintain the libraries it calls. The files do not say which agent products can load this folder.
What it covers
SKILL.md covers: reading a PDF and extracting text with pypdf; merging, splitting, rotating pages and reading metadata with pypdf; extracting text and tables with pdfplumber, including a path from tables to pandas and an Excel file; creating PDFs with reportlab (canvas and multi-page Platypus documents); a warning never to use Unicode subscript or superscript characters in reportlab because the built-in fonts render them as black boxes, with the sub and super markup tags as the fix; command-line use of pdftotext, qpdf and pdftk; OCR of scanned PDFs with pdf2image and pytesseract; watermarking with merge_page; image extraction with pdfimages; and password protection with pypdf encrypt.
reference.md adds: pypdfium2 rendering and text extraction; pdf-lib examples for loading, creating and merging PDFs in JavaScript; pdfjs-dist examples for rendering, text with coordinates and annotations; poppler options such as pdftotext -bbox-layout, pdftoppm resolution settings and pdfimages -list; qpdf splitting by group, page ranges, linearisation, optimisation, repair and encryption with permissions; pdfplumber custom table settings and a visual debug image; reportlab tables; a batch processing example with error handling; page cropping; chunked processing of large files; and short troubleshooting notes for encrypted and corrupted PDFs. One example, figure extraction with pypdfium2, is explicitly simplified and leaves the detection step as a comment, so it is a sketch rather than working code.
forms.md and the scripts cover filling forms. For PDFs with fillable fields, they detect the fields, list them to JSON and fill them with validation. For flat PDFs, they extract text labels, lines and square checkboxes, validate hand-built bounding boxes, and write text as annotations.
Using it
What you need
The files imply a Python environment and an agent host that can load a skill, run shell commands and view images. The type hints in check_bounding_boxes.py use built-in generics such as list[float], which points to Python 3.9 or later. The Python modules used across the scripts and snippets are pypdf, pdfplumber, reportlab, pandas (in the table-to-Excel example), pypdfium2, pdf2image, pytesseract, Pillow and, in one sketch, numpy.
Command-line tools named in the instructions are poppler-utils (pdftotext, pdfimages, pdftoppm), qpdf, optionally pdftk, and ImageMagick (magick or convert) for cropping images in the visual form-filling path. The JavaScript examples assume different environments. The pdf-lib examples read and write files with the Node.js fs module, so they assume Node.js. The pdfjs-dist rendering example creates a canvas element and appends it to the page document, so it assumes a browser. The files do not state the environment for the other pdfjs-dist examples.
No requirements file or version pins are included, and the only install command given is pip install pytesseract pdf2image in the OCR example. The captured files do not say whether these packages need software beyond what they name, for example an Excel writer for the pandas export, a Tesseract engine behind pytesseract, or Poppler behind pdf2image, and this was not verified. The scripts rely on fairly recent pypdf features (PdfWriter with clone_from, pypdf.annotations.FreeText); the minimum pypdf version is not stated.
How it works
The skill works through text the agent reads. The front-matter description is deliberately broad: it says to use the skill whenever the user wants to do anything with PDF files, and whenever a .pdf file is mentioned or produced. The body then gives snippets for common jobs and sends the agent to forms.md for form filling and to reference.md for advanced features and troubleshooting.
For forms, forms.md sets out a strict order. First check whether the PDF has fillable fields (check_fillable_fields.py calls pypdf get_fields). If it does, extract_form_field_info.py writes a JSON list of fields with id, page, rectangle and type (text, checkbox, radio group, choice). The agent converts pages to PNG images with convert_pdf_to_images.py, works out what each field is for, and writes a field_values.json. fill_fillable_fields.py then checks that every field id and page number exists and that checkbox, radio and choice values are valid. It writes the result with pypdf and sets the need-appearances flag so viewers redraw the fields. It also patches a pypdf internal method (get_inherited) to simplify choice-option lists.
If the PDF has no fillable fields, extract_form_structure.py uses pdfplumber to list three things. The first is words with coordinates. The second is lines whose horizontal span exceeds half the page width; forms.md calls these horizontal lines, but the script does not check that a line is actually horizontal. The third is small square rectangles (5 to 15 points), treated as likely checkboxes. The agent writes a fields.json of label and entry bounding boxes in either PDF coordinates or image pixel coordinates. It then runs check_bounding_boxes.py to catch overlapping boxes and entry boxes shorter than the font size, and fill_pdf_form_with_annotations.py converts the coordinates and adds pypdf FreeText annotations. A scanned or image-only PDF goes through a visual path that crops and zooms page images with ImageMagick to refine coordinates. The final step converts the filled PDF back to images so the agent can check placement.
One thing to watch: forms.md describes pdfplumber-style coordinates as having y=0 at the top of the page, but the rectangles from the fillable-field script use the usual PDF convention with y=0 at the bottom. The hybrid approach in forms.md includes conversion formulas, but mixing the two is an obvious place for mistakes.
Setup
The files give no installation instructions for the skill itself and do not say where a host expects skill folders to live, so that step depends on your agent product. Keep the folder intact, with scripts/ beside forms.md. forms.md tells the agent to run commands such as python scripts/extract_form_field_info.py from the skill's directory, and fill_fillable_fields.py imports extract_form_field_info from the same folder.
Then install the Python packages and system tools listed under requirements. Create the output directory before converting pages: convert_pdf_to_images.py saves PNG files into the directory you give it but contains no step that creates it. Type the check command as python scripts/check_fillable_fields.py, since forms.md omits the extension. The file names differ in case from the references in SKILL.md, so make sure the agent can find forms.md and reference.md.
Example
This illustration follows the documented steps; it is not a recorded run. Suppose you ask your agent to fill in application.pdf. With the skill loaded, the agent runs python scripts/check_fillable_fields.py application.pdf. If it reports fillable fields, the agent runs python scripts/extract_form_field_info.py application.pdf field_info.json. Next it runs python scripts/convert_pdf_to_images.py application.pdf pages (with the pages folder created first) and looks at the page images to match each field id to its purpose. It then writes field_values.json with entries such as field_id last_name, page 1, value Simpson; for a checkbox it uses the checked_value reported in field_info.json, for example /On. Finally it runs python scripts/fill_fillable_fields.py application.pdf field_values.json filled.pdf, which prints an error and stops if an id, page number or checkbox, radio or choice value is invalid. The agent then converts filled.pdf to images to check the result.
For a simpler job, the merge snippet in SKILL.md creates a PdfWriter, loops over a list of file names, adds every page of each PdfReader, and writes merged.pdf. The same job from the shell is qpdf --empty --pages file1.pdf file2.pdf -- merged.pdf.
Assessment & evidence
Limitations and risks
Nothing was run, so none of the commands, scripts or output quality claims have been checked. Reading the code and text turned up several points worth knowing. Dependencies are unpinned, and fill_fillable_fields.py patches a pypdf internal method, so a pypdf update could change its behaviour.
In extract_form_field_info.py, make_field_dict classifies any button field passed to it as a checkbox. Button parents that have /Kids are not passed to it; they are handled separately as possible radio groups. A checkbox whose state list does not have exactly two entries is written out without checked_value or unchecked_value. fill_fillable_fields.py reads those keys directly when it validates a value, so such a field would likely cause an error rather than a clear message. Text field values are not validated at all.
The annotation route adds overlay text boxes rather than real form fields. It uses the page media box for dimensions, and its behaviour with rotated or cropped pages was not assessed. create_validation_image.py, which draws the label and entry boxes on a page image, is not mentioned in SKILL.md or forms.md, so an agent may never use it.
The OCR example prints text only and does not produce a searchable PDF, despite the description. The figure-extraction example is incomplete by its own comment. The performance tips in reference.md are assertions without measurements. For instance, pdftotext -bbox-layout is called the fastest way to get plain text, although its output is positioned XML. The qpdf examples put passwords on the command line, which can leave them in shell history.
The skill has the agent read text and page images from arbitrary PDFs and then act on them. The files give no guidance about untrusted PDF content, such as instructions hidden in a document. For forms with personal data, they do not say where the page images end up; that depends on the host and model. The helper source contains no explicit network-service calls. The instructions direct shell commands; whether document content is transmitted elsewhere depends on the host and is unknown.
Why this assessment
The case for the skill rests on how specific and mostly internally consistent it is. The description names concrete tasks. Every script named in the forms.md workflow exists in the folder; one script, create_validation_image.py, is present but not referenced. The scripts check their inputs (field ids, page numbers, option values, overlapping boxes, box height versus font size) instead of failing silently. The guide includes a specific ReportLab glyph warning; its empirical validation and provenance are unknown.
The caveats come from the same reading: broken or mismatched references, the unfulfilled searchable-OCR promise, no dependency installation manifest or version pins, and no tests or sample documents. Confidence is therefore moderate about what the documentation says and low about how the scripts perform on real-world PDFs, which vary widely in structure.
Alternatives
The most direct alternative is to skip the skill and call the documented libraries and tools yourself, since the snippets mostly wrap pypdf, pdfplumber, reportlab, qpdf and the poppler command-line tools. Version choice and testing are then up to you, and you lose the skill's documented form-filling workflow.
Several routes in the files overlap. pdftk is offered, if available, as another command-line way to merge, split and rotate. pypdfium2 is offered for rendering and text extraction. pdf-lib and pdfjs-dist cover similar jobs in JavaScript. reference.md makes some comparative claims without measurements, for example that pdfimages is much faster than rendering pages and that pdf-lib maintains form structure better than most alternatives. How these options compare in performance and suitability is therefore unknown. reference.md gives no form-filling example for pdf-lib, even though SKILL.md's quick reference lists pdf-lib as a form-filling option. The files also give no documented route to a searchable PDF from a scanned one.
Evidence base
This report rests on all twelve files in the skill folder, read in full: SKILL.md, forms.md, reference.md, LICENSE.txt and eight scripts. The scripts are check_bounding_boxes.py, check_fillable_fields.py, convert_pdf_to_images.py, create_validation_image.py, extract_form_field_info.py, extract_form_structure.py, fill_fillable_fields.py and fill_pdf_form_with_annotations.py. The repository-level THIRD_PARTY_NOTICES.md was also read as licensing context, though it lies outside the skill folder. All claims about behaviour come from reading instructions and code. No benchmarks, user reports, issue history or run results were available, so quality on real documents is unknown.
Access & freshness
Costs
No price, subscription or usage fee is stated anywhere in the captured files, and the skill itself is plain text and scripts. What it costs to run is unknown: that depends on your agent host, the model it uses and the machine it runs on. reference.md lists licence terms for eight of the libraries and tools the skill uses: BSD, MIT, Apache or GPL-2, with poppler-utils listed as GPL-2. Their own terms and any support costs were not assessed.
One cost the files do imply is model usage for form filling, because the agent is told to look at page images. convert_pdf_to_images.py renders at 200 dpi, then shrinks any page wider or taller than 1000 pixels so that both sides are at most 1000. That keeps images small but may make fine print on dense forms harder to read. The effect on accuracy and on any per-image charges was not assessed.
Rights and licence
The SKILL.md front matter says 'license: Complete terms in LICENSE.txt', and skills/pdf/LICENSE.txt contains the Apache License, Version 2.0 text. That licence lets you reproduce, prepare derivative works of, publicly display and perform, sublicense and distribute the work in source or object form. Each contributor also grants a patent licence. Under section 3, that patent licence ends for you on the date you file patent litigation claiming that the work, or a contribution incorporated in it, directly or contributorily infringes a patent.
When you redistribute, you must give recipients a copy of the licence, mark files you changed, keep the existing copyright, patent, trademark and attribution notices in the source form, and carry over the contents of any NOTICE file. No NOTICE file was among the captured files. The work is provided as is, with no warranty and a limit on liability. Section 6 gives no permission to use the licensor's trade names, trademarks, service marks or product names, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file. The appendix template in LICENSE.txt is left unfilled ('Copyright [yyyy] [name of copyright owner]'), so the file itself does not name a copyright holder.
The repository also has a top-level THIRD_PARTY_NOTICES.md, which lies outside this skill's folder. It lists BSD 2-Clause components (imageio, imageio-ffmpeg), FFmpeg 7.0.2 under GPL v3, Pillow 11.3.0 under MIT-CMU (HPND), and a set of SIL Open Font License fonts, and says they may be contained in portions of the product. It does not say which of these relate to the pdf skill. None of the pdf folder's files bundle FFmpeg or fonts. The scripts import Pillow, pypdf, pdfplumber and pdf2image but do not include them, so you install those under their own licences. The files say nothing about rights in the PDFs you process or in documents the skill produces.
Freshness
The files were captured on 12 November 2026 at repository revision 2c5958ecac7cee2b583967a2c4981d0f4a75c579. None of them carries a version number, release date or changelog, so the age of the skill and whether newer commits exist are unknown. The repository-wide notices file pins versions for other components (for example Pillow 11.3.0, imageio 2.37.0 and FFmpeg 7.0.2), but that does not date the pdf skill. Because the library calls depend on unpinned third-party packages, the snippets may need adjusting as those packages change; this was not checked.
Suggested next steps
If you plan to use it, start with a copy of the folder and a throwaway virtual environment, and install the libraries and tools listed above. Try each path you care about on non-sensitive sample PDFs before real documents: text and table extraction, a merge, and one fillable and one flat form. Fix the small inconsistencies first. Make the file names match the references, or add copies named REFERENCE.md and FORMS.md. Correct the check_fillable_fields command to include .py, and create output directories before conversion. Record the package versions that work for you.
For form filling, always do the final visual check that forms.md prescribes, and decide beforehand whether page images of personal forms may be sent to your model provider. If you need searchable scanned PDFs rather than extracted text, plan for an extra step beyond the example given. Treat the PDFs themselves as untrusted input, and keep the Apache 2.0 licence text with any copy you redistribute.
