pdf

pdf is a skill for Claude Code, Codex from AtomicBot-ai/atomic-agent. It costs 27 tokens per session (1,492 once invoked), scanned B, original, MIT.

A skill for processing PDF files from the terminal, including merging, splitting, extracting pages or text, converting between PDFs and images, and OCR. OCR turns scanned pages into searchable text.

In plain words
What is it for?
Use it to inspect PDF information, combine or divide files, render pages, extract images, and add searchable text to scanned PDFs.
Why use it?
It provides defined command-line methods for common PDF changes and explains how to check whether the required utilities are installed.

Skill for Claude CodeCodex

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

Good fit Use it to inspect PDF information, combine or divide files, render pages, extract images, and add searchable text to scanned PDFs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atomicbot-ai/atomic-agent/pdf
About the project

Atomic Agent is a local-first AI agent that runs its control loop and state on a user's machine while using local or cloud models. It drives browsers, edits files, runs approved commands, remembers context, schedules follow-ups, and connects to external tools, with the catalogue providing skills for its use.

AtomicBot-ai/atomic-agent · 3,624 stars · on GitHub · atomicagent.io

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 AtomicBot-ai/atomic-agent --skill pdf
Clone the repo
git clone --depth 1 https://github.com/AtomicBot-ai/atomic-agent

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/atomicbot-ai/atomic-agent/pdf/github.svg)](https://agentmods.dev/skills/atomicbot-ai/atomic-agent/pdf)
Your own site
<a href="https://agentmods.dev/skills/atomicbot-ai/atomic-agent/pdf"><img src="https://agentmods.dev/badge/skills/atomicbot-ai/atomic-agent/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/atomicbot-ai/atomic-agent/pdf"><img src="https://agentmods.dev/badge/skills/atomicbot-ai/atomic-agent/pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,492 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00027 $0.01492
Opus 5.5 $0.00011 $0.00597
Sonnet 5.5 $0.00005 $0.00298
Haiku 4.5 $0.00003 $0.00149

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

Security

Grade B, and why

pdf scanned grade B with 1 finding 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 19d 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.

Subtle steeringmediumPrompt injection

Instructions that bias recommendations or shape behaviour without the user noticing.

starts with "This PDF looks scanned: N of M pages have no text layer". Never tell the user such a document is empty. Pick a route:
starter-skills/pdf/SKILL.md · 126 lines

How it starts

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

pdf

Process PDF files from the terminal. Reading PDF text is best done with the built-in os.fs.read_document tool (pure-JS, no install). Reach for the CLIs below only for structural operations: merge, split, page extraction, PDF↔image rendering, and OCR.

Tooling:

  • qpdf — merge / split / linearize / encrypt (pure structural ops).
  • poppler — pdfinfo, pdftotext, pdftoppm, pdfimages (inspect + render).
  • ocrmypdf — add a searchable text layer to scanned PDFs (optional).

Scanned PDFs (no text layer)

os.fs.read_document checks every page it reads. When a page has no text layer (a scan, a photo of a receipt, an image-only export) it does not return an empty result silently: details.textLayer says status: "scanned" (no page has text) or "partial" (some pages), lists pagesWithoutText, and the output starts with "This PDF looks scanned: N of M pages have no text layer". Never tell the user such a document is empty. Pick a route:

  1. The current model accepts images (vision.describe is in your tools): render only the listed pages with pdftoppm and read them with vision.describe, at most 4 images per call.
    [{ "tool": "os.shell.run", "args": { "cmd": "pdftoppm", "args": ["-png", "-r", "150", "-f", "2", "-l", "3", "in.pdf", "page"] } }]
    
  2. Otherwise add a text layer with ocrmypdf, then call os.fs.read_document again on the new file. --skip-text leaves pages that already have text alone. Russian needs -l rus+eng and the Russian Tesseract data (brew install tesseract-lang, or apt-get install tesseract-ocr-rus on Linux); ask before installing, it is a large download.
    [{ "tool": "os.shell.run", "args": { "cmd": "ocrmypdf", "args": ["--skip-text", "-l", "rus+eng", "in.pdf", "in_ocr.pdf"] } }]
    

For a single photo (.jpg, .png) there is no PDF step: use vision.describe directly, or ocrmypdf after wrapping the image into a PDF with magick.

Setup health check (run first, every session)

Read the full file on GitHub · 126 lines

Files

What ships with it

2 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. 19d ago Changed · +34 lines · -29 tokens per session scan A → B 1c48f08ea10f
  2. 3mo ago First seen · 92 lines · 56 tokens per session scan A d1e2f0cf7afd

Subscribe to this mod's changes

pdf is a skill published in the GitHub repository AtomicBot-ai/atomic-agent (3,624 stars, last pushed today), licensed MIT. It adds 27 tokens to every session and 1,492 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (subtle steering). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

pdf compared with skills from other repositories

pdf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pdfAtomicBot-ai/atomic-agentSkill3.6ktodayMITB27Claude Code, Codex
hatch3r-api-spechatch3r/hatch3rSkill262mo agoMITA29Claude Code
api2pdf-automationonfire7777/universal-ai-skills-librarySkill17yesterdayMITA29Claude Code, Codex
boldsign-automationmanu14357/zskillsSkill164mo agoMITA27Claude Code, Codex
api2pdf-automationmanu14357/zskillsSkill164mo agoMITA29Claude Code, Codex
pdf-extractcognis-digital/skillhubSkill05mo agononeA12Claude Code, Codex
engineering-drawingearthtojake/text-to-cadSkill28ktodayMITA93Claude Code, Codex