pdf-processor

pdf-processor is a skill for Claude Code, Codex from xyva-yuangui/XyvaClaw. It costs 45 tokens per session (468 once invoked), scanned A, original, MIT.

A tool for working with PDF files: it can read text and tables, combine or split documents, convert pages to images, and show basic file details.

In plain words
What is it for?
Use it to extract content for processing, prepare table data as CSV or JSON, rearrange PDF pages, inspect metadata, or create page images.
Why use it?
It removes the need to handle these common PDF tasks manually or use several separate tools.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/pdf_tool.py to-images --input doc.pdf --output-dir ./images/.

Good fit Use it to extract content for processing, prepare table data as CSV or JSON, rearrange PDF pages, inspect metadata, or create page images.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/xyva-yuangui/XyvaClaw
agentmods
npx agentmods add skills/xyva-yuangui/xyvaclaw/pdf-processor

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-processor

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/pdf-processor"><img src="https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/pdf-processor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 468 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.00045 $0.00468
Opus 5 $0.00023 $0.00234
Sonnet 5 $0.00009 $0.00094
Haiku 4.5 $0.00005 $0.00047

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

Security

Grade A, and why

pdf-processor 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 2 executable files (scripts/check.py, scripts/pdf_tool.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.

config-base/workspace/skills/pdf-processor/SKILL.md · 60 lines

What it actually says

PDF Processor

PDF 文档处理工具。

功能

  • 提取文本 — 从 PDF 中提取全部或指定页的纯文本
  • 提取表格 — 从 PDF 中提取表格为 CSV/JSON
  • 合并 PDF — 将多个 PDF 合并为一个
  • 拆分 PDF — 将 PDF 按页码范围拆分
  • 元数据 — 读取 PDF 标题、作者、页数等信息
  • PDF 转图片 — 将 PDF 每页转为 PNG(需要 pdf2image + poppler)

使用方式

# 健康检查
python3 scripts/check.py

# 提取文本
python3 scripts/pdf_tool.py extract-text --input doc.pdf
python3 scripts/pdf_tool.py extract-text --input doc.pdf --pages 1-5

# 提取表格
python3 scripts/pdf_tool.py extract-tables --input doc.pdf --format csv

# 合并 PDF
python3 scripts/pdf_tool.py merge --inputs a.pdf b.pdf c.pdf --output merged.pdf

# 拆分 PDF
python3 scripts/pdf_tool.py split --input doc.pdf --pages 1-3 --output part1.pdf

# 元数据
python3 scripts/pdf_tool.py info --input doc.pdf

# 转图片
python3 scripts/pdf_tool.py to-images --input doc.pdf --output-dir ./images/

输出目录

$OPENCLAW_HOME/workspace/output/pdf/

依赖

  • pdfplumber (pip3 install pdfplumber)
  • PyPDF2 (pip3 install PyPDF2)
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. 10d ago First seen · 60 lines · 45 tokens per session scan A a40611a36ba1

Subscribe to this mod's changes

pdf-processor is a skill published in the GitHub repository xyva-yuangui/XyvaClaw (21 stars, last pushed 1mo ago), licensed MIT. It adds 45 tokens to every session and 468 once invoked, about $0.0002 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

pdf

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

netease-youdao/LobsterAI · 50 tokens

nano-pdf

Edit PDF slides and pages using natural language with Gemini AI. Supports editing existing pages, adding new slides, and style-matching. Requires GEMINIAPIKEY.

emanueleielo/ciana-parrot · 36 tokens

pdf-toolkit

A command-line toolkit for working with local PDF files, which are fixed-layout documents. It can merge files, split or extract pages, read text, and show page information using available tools or Python’s pypdf library.

dongsheng123132/u-claw · 30 tokens

youdaonote

A command-line skill for managing Youdao Cloud Notes, a Chinese note-taking service. It supports notes, to-do items, saved web pages, searches, and folders.

netease-youdao/LobsterAI · 70 tokens

pdf_convert

Convert between PDF and image formats. Use when: user asks to convert PDF pages to images (PNG/JPEG) or combine images into a PDF. NOT for: text extraction (use pdfreader), PDF editing, or document format conversion (DOCX/HTML).

ericwang915/PythonClaw · 56 tokens

pdf_merge

Merge multiple PDF files into a single PDF. Use when: user asks to combine, join, or concatenate PDFs. Supports page selection and ordering. NOT for: splitting PDFs, editing content, or converting formats.

ericwang915/PythonClaw · 45 tokens