pdf

pdf is a skill for Claude Code, Codex from NousResearch/hermes-agent. It costs 18 tokens per session (3,992 once invoked), scanned C, original, MIT.

A PDF file tool for creating, reading, extracting, editing, combining, splitting, filling, and securing PDF documents.

In plain words
What is it for?
Use it to create reports and forms, extract text or tables, fill fields, merge or split files, add watermarks, and export pages as images.
Why use it?
It handles common PDF operations, including scanned documents that need OCR, without requiring manual page-by-page work.

Skill for Claude CodeCodex

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

Good fit Use it to create reports and forms, extract text or tables, fill fields, merge or split files, add watermarks, and export pages as images.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nousresearch/hermes-agent/pdf
About the project

Hermes Agent is an AI assistant that learns from its use by creating and improving skills, retaining knowledge, searching past conversations, and adapting to its users. It is for people who want to run an agent through a terminal or messaging platforms while connecting it to different AI models and scheduled tasks.

NousResearch/hermes-agent · 268,377 stars · on GitHub · hermes-agent.nousresearch.com

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 NousResearch/hermes-agent --skill pdf
Clone the repo
git clone --depth 1 https://github.com/NousResearch/hermes-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/nousresearch/hermes-agent/pdf/github.svg)](https://agentmods.dev/skills/nousresearch/hermes-agent/pdf)
Your own site
<a href="https://agentmods.dev/skills/nousresearch/hermes-agent/pdf"><img src="https://agentmods.dev/badge/skills/nousresearch/hermes-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/nousresearch/hermes-agent/pdf"><img src="https://agentmods.dev/badge/skills/nousresearch/hermes-agent/pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,992 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • 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.00018 $0.03992
Opus 5.5 $0.00007 $0.01597
Sonnet 5.5 $0.00004 $0.00798
Haiku 4.5 $0.00002 $0.00399

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

Security

Grade C, and why

pdf scanned grade C 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 1mo ago.

The scan reads SKILL.md. This mod also ships 16 executable files (scripts/_raster.py, scripts/extract_marker.py, scripts/extract_pymupdf.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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

case "$old" in hermes-docs-venv.??????) rm -rf "$old" ;; esac
Origin

Copies of this mod

3 near-identical copies found in the catalogue:

  • pdf — 100% identical, 0 lines differ
  • pdf — 91% identical, 0 lines differ
  • pdf — 89% identical, 64 lines differ
skills/productivity/pdf/SKILL.md · 165 lines

How it starts

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

PDF Skill

Create PDFs from structured specs, build and fill AcroForm forms (with layout linting and visual overlays), extract text/tables/metadata, merge/split/rotate/watermark/stamp pages, export page images, manage metadata and attachments, and encrypt/decrypt — using pypdf, reportlab, and pdfplumber. Two absorbed capabilities live in references/ (read the matching file before those tasks):

  • Scanned/image-only PDFs and OCR (pymupdf fast path, marker-pdf quality path, scripts/extract_pymupdf.py + scripts/extract_marker.py): references/ocr-extraction.md
  • Editing text inside an existing PDF via natural-language prompts (nano-pdf CLI): references/nano-pdf-editing.md

When to Use

  • Generate a report, invoice, or multi-page document as PDF.
  • Build a fillable AcroForm (text/checkbox/radio/dropdown) from a JSON spec, linting the layout first.
  • Pull text, tables (JSON/CSV), metadata, or form-field values out of a PDF.
  • Merge, split, rotate, extract page subsets, watermark, stamp text/images at coordinates, bookmark, or compress PDFs.
  • Export pages as PNGs for visual review or for OCR hand-off; set/clear document metadata; add/extract file attachments.
  • Fill or flatten AcroForm forms; encrypt or decrypt with passwords.
  • NOT for scanned/image-only PDFs (use references/ocr-extraction.md) and NOT for pixel-perfect HTML-to-PDF rendering (use a headless browser).

Prerequisites

  • Python 3.10+ with pypdf, reportlab, pdfplumber.
  • Pick the interpreter with terminal. Use python when it already imports the libraries (the Hermes Docker image ships them). Otherwise, when hermes is on PATH, let Hermes build its shared, pinned documents environment under the Hermes home: it survives container restarts, never touches the Hermes install itself, and is safe to run from several agents at once. When it is not (the terminal runs in a Docker sandbox, which has no Hermes), the block builds a venv in the sandbox home with the same pinned versions. Use this exact block in every document skill so they all share one environment:

Read the full file on GitHub · 165 lines

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 11126ee5460f
  2. 1mo ago Changed · +1 lines 407a5c1afdf9
  3. 1mo ago Changed · +38 lines scan A → C 41a64a105624
  4. 3mo ago First seen · 126 lines · 18 tokens per session scan A c16b9c159a3a

Subscribe to this mod's changes

pdf is a skill published in the GitHub repository NousResearch/hermes-agent (268,377 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 3,992 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

pdf compared with skills from other repositories

pdf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pdfNousResearch/hermes-agentSkill268ktodayMITC18Claude Code, Codex
pdf-readingasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A115Claude Code, Codex
save-as-pdfasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A9Claude Code
pdfasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A92Claude Code, Codex
docs-artifactasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A84Claude Code, Codex
report-to-pdfasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A17Claude Code, Codex
form-fillingasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A40Claude Code, Codex