pdf-toolkit

pdf-toolkit is a skill for Claude Code, Codex from dongsheng123132/u-claw. It costs 30 tokens per session (566 once invoked), scanned A, original, MIT.

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.

In plain words
What is it for?
Use it to combine PDFs, create page ranges, extract text, inspect page counts and metadata, and convert pages into images. Scanned PDFs may need a separate OCR tool before their text can be extracted.
Why use it?
It avoids needing a desktop PDF editor for common file operations. It also makes PDF text available as plain text for searching or summarising, when the PDF contains selectable text.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to combine PDFs, create page ranges, extract text, inspect page counts and metadata, and convert pages into images. Scanned PDFs may need a separate OCR tool before their text can be extracted.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dongsheng123132/u-claw/pdf-toolkit
About the project

U-Claw is a portable AI workspace that places an OpenClaw assistant, its configuration, memory, sessions, and tools on a USB drive. Users set it up on supported computers and carry the workspace between them, configuring a model with their own API key. The catalogue contains skills and instructions related to using or preparing this portable setup.

dongsheng123132/u-claw · 1,748 stars · on GitHub · u-claw.org

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 dongsheng123132/u-claw --skill pdf-toolkit
Clone the repo
git clone --depth 1 https://github.com/dongsheng123132/u-claw

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dongsheng123132/u-claw/pdf-toolkit"><img src="https://agentmods.dev/badge/skills/dongsheng123132/u-claw/pdf-toolkit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 566 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. 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.00030 $0.00566
Opus 5 $0.00015 $0.00283
Sonnet 5 $0.00006 $0.00113
Haiku 4.5 $0.00003 $0.00057

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

Security

Grade A, and why

pdf-toolkit 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 13d 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.

portable/skills-cn/pdf-toolkit/SKILL.md · 60 lines

What it actually says

PDF 工具箱

帮用户对本地 PDF 文件做常见处理:合并、拆分、提取文字、转图片。优先用系统已有工具, 没有就用 Python 的 pypdf(轻量纯 Python,必要时 pip install pypdf 自动安装)。

能力概述

  • 合并:把多个 PDF 拼成一个
  • 拆分:按页拆成多份,或抽取指定页
  • 提取文字:把 PDF 内容导出成纯文本,便于总结/检索
  • 页数/信息:查看 PDF 总页数、元信息

操作方式

用 Bash 工具执行。下面以 pypdf 为例(跨平台、无需 Office/Acrobat):

# 确保依赖(仅首次,已装会秒过)
python -c "import pypdf" 2>/dev/null || pip install -q pypdf

# 合并 a.pdf b.pdf -> merged.pdf
python - <<'PY'
from pypdf import PdfWriter
w = PdfWriter()
for f in ["a.pdf", "b.pdf"]:
    w.append(f)
w.write("merged.pdf"); w.close()
print("已合并 -> merged.pdf")
PY

# 提取全部文字
python - <<'PY'
from pypdf import PdfReader
r = PdfReader("input.pdf")
print("\n".join((p.extract_text() or "") for p in r.pages))
PY

# 抽取第 1-3 页 -> sub.pdf
python - <<'PY'
from pypdf import PdfReader, PdfWriter
r = PdfReader("input.pdf"); w = PdfWriter()
for i in range(0, 3):
    w.add_page(r.pages[i])
w.write("sub.pdf"); w.close()
print("已抽取 1-3 页 -> sub.pdf")
PY

使用建议

  • 处理前先 ls 确认文件存在、用 python -c "from pypdf import PdfReader;print(len(PdfReader('x.pdf').pages))" 看页数
  • 扫描件(图片型 PDF)提取不到文字属正常,需 OCR(提示用户)
  • 输出文件默认放在与源文件同目录,操作完告诉用户生成的文件名
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. 13d ago First seen · 60 lines · 30 tokens per session scan A 399ae303d80d

Subscribe to this mod's changes

pdf-toolkit is a skill published in the GitHub repository dongsheng123132/u-claw (1,748 stars, last pushed 5d ago), licensed MIT. It adds 30 tokens to every session and 566 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.