pdf

pdf is a skill for Claude Code, Codex from sinaptik-ai/starpod. It costs 66 tokens per session (1,712 once invoked), scanned A, original, MIT.

A toolkit for working with PDF files, which are fixed-layout documents commonly used for forms, reports, and scanned records. It covers reading, extracting, converting, editing, and creating PDFs.

In plain words
What is it for?
Extracting text or tables, converting pages to images, merging or splitting files, rotating pages, filling forms, adding watermarks, OCR, and creating PDFs.
Why use it?
It provides established tools and scripts for handling text, tables, scans, pages, forms, and document security instead of treating every PDF task as a separate problem.

Skill for Claude CodeCodex

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

Good fit Extracting text or tables, converting pages to images, merging or splitting files, rotating pages, filling forms, adding watermarks, OCR, and creating PDFs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sinaptik-ai/starpod/pdf
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 sinaptik-ai/starpod --skill pdf
Clone the repo
git clone --depth 1 https://github.com/sinaptik-ai/starpod

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

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

agentmods 80×15 button for pdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/sinaptik-ai/starpod/pdf"><img src="https://agentmods.dev/badge/skills/sinaptik-ai/starpod/pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,712 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.00066 $0.01712
Opus 5 $0.00033 $0.00856
Sonnet 5 $0.00013 $0.00342
Haiku 4.5 $0.00007 $0.00171

Measured 10d ago against content hash 8753faffa85d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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 10d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/convert_to_images.py, scripts/extract_tables.py, scripts/fill_form.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

crates/starpod/skills/pdf/SKILL.md · 222 lines

How it starts

The opening of the file, as written. The whole thing — 222 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PDF Processing

Quick Reference

Task Tool Script
Extract text pdfplumber page.extract_text()
Extract tables pdfplumber python scripts/extract_tables.py input.pdf
Merge PDFs pypdf python scripts/merge.py output.pdf a.pdf b.pdf
Convert to images poppler-utils python scripts/convert_to_images.py input.pdf
Fill form fields pypdf python scripts/fill_form.py form.pdf --list
Create new PDF reportlab SimpleDocTemplate or Canvas
OCR scanned PDF pytesseract + pdf2image image_to_string()
CLI text extraction poppler-utils pdftotext
CLI merge/split qpdf qpdf --empty --pages

For form filling workflow, see references/forms.md. For advanced libraries (pypdfium2, pdf-lib), see references/advanced.md.

Reading & Extracting

Text extraction

import pdfplumber

with pdfplumber.open("document.pdf") as pdf:
    for page in pdf.pages:
        print(page.extract_text())

Table extraction → DataFrame

import pdfplumber, pandas as pd

with pdfplumber.open("document.pdf") as pdf:
    tables = []
    for page in pdf.pages:
        for table in page.extract_tables():
            if table:
                df = pd.DataFrame(table[1:], columns=table[0])
                tables.append(df)
    if tables:
        combined = pd.concat(tables, ignore_index=True)
        combined.to_excel("tables.xlsx", index=False)

Metadata

from pypdf import PdfReader
reader = PdfReader("document.pdf")
meta = reader.metadata
print(f"Title: {meta.title}, Author: {meta.author}, Pages: {len(reader.pages)}")

Merging & Splitting

Merge multiple PDFs

from pypdf import PdfWriter, PdfReader

writer = PdfWriter()
for path in ["a.pdf", "b.pdf", "c.pdf"]:
    for page in PdfReader(path).pages:
        writer.add_page(page)
with open("merged.pdf", "wb") as f:
    writer.write(f)

Split into individual pages

from pypdf import PdfReader, PdfWriter

for i, page in enumerate(PdfReader("input.pdf").pages):
    w = PdfWriter()
    w.add_page(page)
    with open(f"page_{i+1}.pdf", "wb") as f:
        w.write(f)

Read the full file on GitHub · 222 lines

Files

What ships with it

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

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. 10d ago First seen · 222 lines · 66 tokens per session scan A 8753faffa85d

Subscribe to this mod's changes

pdf is a skill published in the GitHub repository sinaptik-ai/starpod (78 stars, last pushed 5mo ago), licensed MIT. It adds 66 tokens to every session and 1,712 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories

document-converter

Convert documents bidirectionally via the pi-doc-engine facade: ingest PDF/DOCX/PPTX/XLSX to provenance-stamped Markdown (with OCR), and produce templated DOCX/PDF from Markdown with diagrams, TOC and round-trip merge. Use on "convert this PDF to markdown", "ingest these docs into kb", "make a DOCX from markdown with…

BlackBeltTechnology/pi-agent-dashboard · 97 tokens

add-pdf-reader

Add PDF reading to ClaudeClaw agents. Extracts text from PDFs via pdftotext CLI. Handles WhatsApp attachments, URLs, and local files.

sbusso/claudeclaw · 37 tokens

pdf

Inspect, extract, assemble, generate, render, OCR, and validate PDF files with local tools while treating active content and external services as explicit security boundaries.

holon-run/holon · 33 tokens

pdf

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When GLM needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

jjyaoao/HelloAgents · 51 tokens

document-processor

Guidance for processing documents, extracting content, and transforming structured information. Use when the user asks to process, parse, extract, or transform document content such as PDFs, Word files, or spreadsheets.

vixues/LeAgent · 44 tokens

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…

awslabs/agentcore-samples · 92 tokens