pdf-documents

pdf-documents is a skill for Claude Code, Codex from alex-alecu/garden-desk. It costs 32 tokens per session (304 once invoked), scanned A, original, Apache-2.0.

A guide for reading, creating, and checking PDF documents with installed Python libraries. It covers extracting text, making PDFs, preserving metadata, and handling scanned or rotated pages.

In plain words
What is it for?
Extracting text from PDFs, creating formatted PDF documents, checking page content, setting metadata, and handling image-only or rotated pages.
Why use it?
It provides a repeatable way to work with PDFs while keeping facts tied to their source pages. It also catches errors by reopening and checking generated files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Extracting text from PDFs, creating formatted PDF documents, checking page content, setting metadata, and handling image-only or rotated pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alex-alecu/garden-desk/pdf-documents
Install

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.

Any agent
npx skills add alex-alecu/garden-desk --skill pdf-documents
Clone the repo
git clone --depth 1 https://github.com/alex-alecu/garden-desk

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for pdf-documents

README.md
[![agentmods](https://agentmods.dev/badge/skills/alex-alecu/garden-desk/pdf-documents/github.svg)](https://agentmods.dev/skills/alex-alecu/garden-desk/pdf-documents)
Your own site
<a href="https://agentmods.dev/skills/alex-alecu/garden-desk/pdf-documents"><img src="https://agentmods.dev/badge/skills/alex-alecu/garden-desk/pdf-documents/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.

agentmods 80×15 button for pdf-documents

Your own site · 80×15
<a href="https://agentmods.dev/skills/alex-alecu/garden-desk/pdf-documents"><img src="https://agentmods.dev/badge/skills/alex-alecu/garden-desk/pdf-documents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 304 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00304
Opus 5.5 $0.00013 $0.00122
Sonnet 5.5 $0.00006 $0.00061
Haiku 4.5 $0.00003 $0.00030

Measured 1mo ago against content hash 290ec82a2fcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pdf-documents 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 1mo 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.

prompts/skills/pdf-documents/SKILL.md · 36 lines

What it actually says

Library

Use the installed pypdf through python for page work, and reportlab (Platypus) to create a PDF. Do not install packages.

Recipe

from reportlab.lib.pagesizes import A4
from reportlab.platypus import Paragraph, SimpleDocTemplate, Table
from reportlab.lib.styles import getSampleStyleSheet

styles = getSampleStyleSheet()
SimpleDocTemplate(path, pagesize=A4).build([
    Paragraph("Title", styles["Heading1"]),
    Paragraph("Body text.", styles["BodyText"]),
    Table([["column_a", "column_b"], ["1", "2"]]),
])

Platypus handles page breaks and margins. For page work, use PdfReader and PdfWriter from pypdf.

Verify

Reopen the PDF you write with PdfReader and assert its page count and the text of each page you generated.

Gotchas

  • Set metadata with PdfWriter.add_metadata() using slash-prefixed keys, for example {"/Title": "Report"}.
  • Reopen and check page count, order, rotation, and metadata before you report the deliverable done.
  • Save under /workspace; /source is read-only.
Changes

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.

  1. 1mo ago Changed · -3 lines · +12 tokens per session 290ec82a2fcf
  2. 1mo ago First seen · 39 lines · 20 tokens per session scan A 8424b1679b19

Subscribe to this mod's changes

pdf-documents is a skill published in the GitHub repository alex-alecu/garden-desk (6 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 32 tokens to every session and 304 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

pdf

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…

MRWillisT/PullNexus · 92 tokens

pdf

PDF files: create, read, merge, fill, OCR, edit text.

NousResearch/hermes-agent · 18 tokens

pdf-toolkit

Structured .pdf operations: extract text/tables, merge pages from multiple PDFs, split a PDF by page ranges, fill PDF form fields, and generate fresh PDFs from JSON. Trigger when the user wants programmatic PDF work without natural-language rewriting — examples: pull tables from a report, combine three PDFs, extract…

opensquilla/opensquilla · 127 tokens

extracting-lab-tables

Detects and extracts tabular laboratory panels from PDFs, scans, and images into structured rows ready for OpenMed and FHIR. Use when the user has a CBC, CMP, lipid panel, or other lab report as a scanned image / PDF / spreadsheet and needs the test name, value, unit, reference range, and abnormal flag as clean rows.…

maziyarpanahi/openmed · 210 tokens

figures

Makes publication-quality plots from data with matplotlib, learning curves, scaling laws, benchmark and ablation comparisons, Pareto trade-offs, heatmaps and confusion matrices, sized for the page, vector, with uncertainty shown. Use whenever results are plotted, charted or visualized for a paper, report or answer, or…

synthetic-sciences/openscience · 99 tokens

liteparse

Use this skill when the user asks to parse, perform multi-format document conversion or spatially extract text from an unstructured file (PDF, DOCX, PPTX, XLSX, images, etc.) locally without cloud dependencies.

synthetic-sciences/openscience · 49 tokens