pdf

pdf is a skill for Claude Code from nexus-research-lab/nexus. It costs 85 tokens per session (882 once invoked), scanned A, original, Apache-2.0.

A guide for working with PDF files, including reading, extracting content, creating, editing, and checking documents.

In plain words
What is it for?
It is for answering questions about PDFs, extracting tables, handling forms, merging or splitting pages, adding watermarks, and visually checking output.
Why use it?
It helps preserve important PDF details such as page layout, tables, forms, signatures, and non-Latin text during document work.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable.

Good fit It is for answering questions about PDFs, extracting tables, handling forms, merging or splitting pages, adding watermarks, and visually checking output.

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

Made for: Claude Code.

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/nexus-research-lab/nexus/pdf.svg)](https://agentmods.dev/skills/nexus-research-lab/nexus/pdf)
Your own site
<a href="https://agentmods.dev/skills/nexus-research-lab/nexus/pdf"><img src="https://agentmods.dev/badge/skills/nexus-research-lab/nexus/pdf.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 882 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.00085 $0.00882
Opus 5 $0.00043 $0.00441
Sonnet 5 $0.00017 $0.00176
Haiku 4.5 $0.00009 $0.00088

Measured 7d ago against content hash 52ece092950d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, 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 7d 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.

skills/pdf/SKILL.md · 66 lines

What it actually says

PDF 文档

任务 路径
阅读、问答、视觉审阅 优先用运行时 Read 读取相关页面
提取表格或复杂布局 pdfplumber,并对照原页面
合并、拆分、旋转、裁剪、元数据、水印 pypdf
新建 PDF 用 ReportLab;长文档优先使用 Platypus 流式排版
填写 AcroForm pypdf,同时校验字段树与页面 Widget
扫描件 先看页面图像;只有用户需要可搜索文本时才做 OCR

工作契约

  • 只读问题不改写或重新导出 PDF。
  • 写操作保留原文件并输出新文件;已签名 PDF 默认只读,写入前说明签名会失效。
  • 先直接使用当前环境。依赖导入失败且任务需要时,取得用户同意后在隔离环境安装 ${CLAUDE_SKILL_DIR}/requirements.txt,不要静默修改系统 Python。

读取

  • 长文件只读取与问题相关的页面,但答案必须保留页码依据。
  • 文本抽取不能证明版式、图表、签名或扫描内容;这些信息必须查看页面。
  • 表格抽取后核对表头、跨页行、脚注和合并单元格,不能只相信二维数组。
  • 加密、损坏或无法可靠 OCR 的文件要明确说明,不猜内容。

创建与编辑

  • 新建前确定纸张、用途和阅读场景;中文和其他非拉丁文字注册真实可用字体,避免缺字方块。
  • 可见内容使用明确的页边距、层级和分页;表格重复表头并避免行被裁断。
  • PDF 适合页面级编辑,不适合可靠重排既有正文。正文大改时请求源 DOCX/PPTX 或重建新 PDF。
  • 表单默认保持可交互。更新后核对 get_fields() 中的值、每页 /Widget 的有效值和 /AP 外观; 只有用户明确要求静态成品时才扁平化,并确认 Widget 与 AcroForm 字段树均已移除。

完成条件

  1. pypdf 重新打开最终文件,确认页数、加密状态、页面顺序和表单结构符合任务。
  2. 用 Poppler 渲染全部页面并逐页检查:
pdftoppm -png -r 144 "<output.pdf>" "<empty-qa-dir>/page"
  1. 修复截字、重叠、乱码、黑方块、模糊图片、错误页码、断裂表格和意外空白页后重新渲染。
  2. 缺少 pdftoppm 时可以继续纯文本读取;写任务要说明未完成视觉检查。
  3. 最终只交付 PDF,不附带页面 PNG、构建脚本或临时叠加文件。
Files

What ships with it

1 file 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. 7d ago First seen · 66 lines · 85 tokens per session scan A 52ece092950d

Subscribe to this mod's changes

pdf is a skill published in the GitHub repository nexus-research-lab/nexus (143 stars, last pushed yesterday), licensed Apache-2.0. It adds 85 tokens to every session and 882 once invoked, about $0.0004 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

nano-pdf

Edits PDF files using natural-language instructions via the nano-pdf CLI. Supports modifying text, changing titles, fixing typos, and updating content on specific pages. Use when the user wants to edit a PDF, modify PDF content, update PDF text, fix a typo in a PDF, change a PDF title, or rewrite part of a PDF page.

elizaOS/eliza · 75 tokens

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

pdf-processor

Extracts text and tables from PDF files, fills forms, and merges documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.

lofcz/LLMTornado · 39 tokens

document-material-ingestion

Use this skill when the team must turn Boss-provided mixed-format documents into PPT-ready facts, arguments, data tables, and source traces.

BingHanOfUESTC/open_agent_team · 0 tokens

Nano PDF

Extract, inspect, and summarize PDFs quickly with lightweight tooling before escalating to heavier OCR or layout workflows.

agentic-in/elephant-agent · 23 tokens

OCR and Documents

Recover text from scanned or image-heavy documents before attempting structured analysis or downstream writing tasks.

agentic-in/elephant-agent · 21 tokens