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.
npx skills add appautomaton/document-SKILLs --skill pdfgit clone --depth 1 https://github.com/appautomaton/document-SKILLsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/appautomaton/document-skills/pdf)<a href="https://agentmods.dev/skills/appautomaton/document-skills/pdf"><img src="https://agentmods.dev/badge/skills/appautomaton/document-skills/pdf/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/appautomaton/document-skills/pdf"><img src="https://agentmods.dev/badge/skills/appautomaton/document-skills/pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk pass
- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.01035 |
| Opus 5.5 | $0.00024 | $0.00414 |
| Sonnet 5.5 | $0.00012 | $0.00207 |
| Haiku 4.5 | $0.00006 | $0.00103 |
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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PDF files
You already know pypdf, pdfplumber and reportlab. This skill adds what they don't give you: form-filling scripts that check their own input, a way to see pages as a reader will, and the PDF behaviours that silently put content in the wrong place.
Running scripts
<skill> is the directory containing this file. Run bundled scripts by absolute path from the user's working directory, so relative paths to their files keep working:
uv run <skill>/scripts/convert_pdf_to_images.py report.pdf pages
Run Python you write with its dependencies declared, either uv run --with pypdf script.py or a PEP 723 header. Rendering pages needs poppler (pdftoppm); OCR also needs Tesseract.
Choosing a tool
| Task | Use |
|---|---|
| Fill a form, fillable or flat | forms.md, always. It has scripts for every step. |
| Text | pdfplumber, or pdftotext -layout from the command line. Text missing from pages that visibly have it means a scan: see ocr.md. |
| Tables | pdfplumber: see tables.md |
| New PDFs | reportlab: Platypus for flowing documents, canvas for exact placement |
| Merge, split, rotate, crop, stamp, encrypt | pypdf: see reference.md for the calls that keep bookmarks, links and orientation intact |
| See what a page looks like | scripts/convert_pdf_to_images.py |
Checking the output
Whenever you create or change a PDF, render the pages you touched and look at them before delivering. Check that the text is present and readable, nothing is clipped or overlapping, and every stamp or value is where it belongs:
uv run <skill>/scripts/convert_pdf_to_images.py out.pdf check --pages 1-3
Pitfalls that fail silently
- Two coordinate systems. PDF coordinates start at the bottom-left of the page box, in points. pdfplumber and page images start at the top-left. The page box need not start at (0, 0), so read
page.cropbox.leftand.bottom. - Rotated pages.
/Rotateturns a page only for display; content and form fields keep unrotated coordinates. Anything placed with a plain scale and y-flip lands in the wrong spot. Convert boxes withscripts/pdf_coords.py, and callpage.transfer_rotation_to_content()before stamping. - Non-Latin text in new PDFs. reportlab's built-in fonts draw Chinese, Cyrillic and similar scripts as black boxes. Register and embed a TrueType font; see reference.md.
- Merging.
PdfWriter.append()keeps bookmarks and links, while copying pages withadd_page()drops them. Merged forms with matching field names become one field, so filling one fills both. - AES encryption needs
uv run --with 'pypdf[crypto]'. Without it, pypdf raisesDependencyErroron open or on encrypt.
What ships with it
13 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.
- forms.md 6.6 KB
- ocr.md 2.3 KB
- reference.md 4.6 KB
- scripts/check_bounding_boxes.py 3.9 KB runs code
- scripts/check_fillable_fields.py 613 B runs code
- scripts/convert_pdf_to_images.py 3.3 KB runs code
- scripts/create_validation_image.py 1.3 KB runs code
- scripts/extract_form_field_info.py 4.6 KB runs code
- scripts/fill_fillable_fields.py 6.0 KB runs code
- scripts/fill_pdf_form_with_annotations.py 8.1 KB runs code
- scripts/flatten_form.py 3.8 KB runs code
- scripts/pdf_coords.py 4.4 KB runs code
- tables.md 3.0 KB
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.
- 8d ago Changed · -242 lines · +11 tokens per session a520ce16bade
- 1mo ago First seen · 302 lines · 50 tokens per session scan A cc9c6117f353
pdf is a skill published in the GitHub repository appautomaton/document-SKILLs (174 stars, last pushed 9d ago), licensed MIT. It adds 61 tokens to every session and 1,035 once invoked, about $0.0002 per session on Opus 5.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.
Other skills, from other repositories
pdf-handling
Extract PDFs to text and images before reading.
markitdown
Converts heterogeneous documents and selected URIs to Markdown with Microsoft MarkItDown for text analysis, search, and LLM/RAG ingestion. Covers safe local conversion, streams, Office/PDF/data formats, batch workflows, plugins, vision OCR, Azure extraction, and the official MCP server.
pydicom
Reads, inspects, writes, transforms, and preflights local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.
liteparse
Local document and PDF parsing that returns spatial text with bounding boxes. Use for extracting text from PDFs, DOCX, Office files, and images; running OCR on scans; producing layout-preserved JSON for RAG; batch-ingesting folders of papers; or rendering pages to PNG for multimodal agents. Distinguishing capabilities…
pptx-posters
Creates and audits editable scientific posters in macro-free PowerPoint (.pptx) from author-approved local content and assets. Used when the requested deliverable is a PowerPoint research/conference poster and exact physical, printer, accessibility, provenance, and package-security checks are required.
open-notebook
Organizes research with the self-hosted Open Notebook alternative to NotebookLM. Supports source ingestion (PDFs, web pages, audio, video, and Office documents), cited document chat, text and vector search, notes, custom transformations, and multi-speaker podcasts. Use when automating Open Notebook through its REST…