Agent skill

PDF Toolkit

by dongsheng123132 in dongsheng123132/u-claw

“PDF 工具箱 - 合并/拆分/提取文字/转图片,纯命令行处理本地 PDF”

— description from SKILL.md by dongsheng123132
MITAuto-check passedDocuments & Office

Install PDF Toolkit

skills CLI
$ npx skills add dongsheng123132/u-claw --skill pdf-toolkit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dongsheng123132/u-claw pdf-toolkit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dongsheng123132/u-claw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/portable/skills-cn/pdf-toolkit .claude/skills/pdf-toolkit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pdf-toolkit
GitHub stars
1.8k
Token cost
~318 tokens
SKILL.md length
47 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

  • SKILL.md covers 能力概述, 操作方式 and 使用建议
  • Calls python and pip

About this skill

PDF Toolkit is a skill in dongsheng123132/u-claw (1.8k stars). Its SKILL.md is about 318 tokens. Licence: MIT.

What it can do on your machine

Read from SKILL.md and the folder at commit 9e769e6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

PDF Toolkit loads about 318 tokens when it runs. Until then it costs about 12 tokens; SKILL.md has 47 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~12
When it runs · the whole SKILL.md, loaded when a task matches
~318

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dongsheng123132/u-claw at commit 9e769e6, republished under its MIT licence (© dongsheng123132). 47 words, ~318 tokens.

Download SKILL.mdSave it as .claude/skills/pdf-toolkit/SKILL.md (or your agent's skills folder).
name
pdf-toolkit
description
PDF 工具箱 - 合并/拆分/提取文字/转图片,纯命令行处理本地 PDF

PDF 工具箱

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

能力概述

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

操作方式

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

bash
# 确保依赖(仅首次,已装会秒过)
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(提示用户)
  • 输出文件默认放在与源文件同目录,操作完告诉用户生成的文件名

© dongsheng123132, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in portable/skills-cn/pdf-toolkit of dongsheng123132/u-claw.

Open the folder on GitHubat commit 9e769e6

Compare with similar skills

PDF Toolkit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

PDF Toolkit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PDF Toolkit this skilldongsheng123132/u-claw1.8k—~318Automated safety check: PassMIT
PDF ToolkitXiaomiMiMo/MiMo-Code14k—~1.7kAutomated safety check: PassApache-2.0
PDF Generation, Forms and Extractionpipeshub-ai/pipeshub-ai3.8k—~2.9kAutomated safety check: PassApache-2.0
PDFNousResearch/hermes-agent253k—~3.1kAutomated safety check: PassMIT
PDF ExploreHughYau/AcademicForge2.6k—~3.1kAutomated safety check: PassApache-2.0
PDF ExploreJimLiu/science-skills2282 repos~3.6kAutomated safety check: PassApache-2.0

Similar skills

  • PDF Toolkit

    XiaomiMiMo/MiMo-Code

    Reads, transforms, composes and fills PDFs with Python scripts for extraction, merging, watermarking, encryption, OCR and form filling.

    14k GitHub stars~1.7k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • Picks the right library for generating a new PDF, filling an existing PDF form, or extracting text and tables, defaulting to Node where possible.

    3.8k GitHub stars~2.9k tokensUpdated today
    Documents & OfficeAuto-check passed
  • PDF

    NousResearch/hermes-agent

    PDF files: create, read, merge, fill, OCR, edit text. An agent skill from NousResearch/hermes-agent.

    253k GitHub stars~3.1k tokensUpdated today
    Documents & OfficeAuto-check passed
  • PDF Explore

    HughYau/AcademicForge

    A skill your agent uses when the user has attached a PDF, paper, report, or other document and the answer needs content from more than one place in it: summarize the methods or any other section…

    2.6k GitHub stars~3.1k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • PDF Explore

    JimLiu/science-skills

    A skill your agent uses when the user has attached a PDF, paper, report, or other document and the answer needs content from more than one place in it: summarize the methods or any other section…

    228 GitHub starsUsed in 2 repos~3.6k tokens
    Documents & OfficeAuto-check passed
  • PDF Reader

    espennilsen/pi

    Read and extract content from PDF files — text, tables, metadata, and images.

    122 GitHub stars~1.6k tokensUpdated 19 days ago
    Documents & OfficeAuto-check passed

More from dongsheng123132/u-claw

All 17 skills in this repo
  • Deepseek Helper

    dongsheng123132/u-claw

    DeepSeek API 助手 - 编程辅助、模型选择、API调用指南、定价信息. An agent skill from dongsheng123132/u-claw.

    1.8k GitHub stars~367 tokensUpdated 4 days ago
    Auto-check passed
  • Image Compress

    dongsheng123132/u-claw

    图片压缩/转换 - 批量压缩、改尺寸、转格式(jpg/png/webp),本地处理不失隐私. An agent skill from dongsheng123132/u-claw.

    1.8k GitHub stars~274 tokensUpdated 4 days ago
    Auto-check passed
  • Web To Markdown

    dongsheng123132/u-claw

    网页转 Markdown - 抓取任意网页正文并转成干净的 Markdown,便于阅读/收藏/二次创作. An agent skill from dongsheng123132/u-claw.

    1.8k GitHub stars~347 tokensUpdated 4 days ago
    Auto-check passed
  • China Translate

    dongsheng123132/u-claw

    中英互译 + 本地化 - 技术翻译、UI本地化、文化适配、避免机翻腔

    1.8k GitHub stars~526 tokensUpdated 4 days ago
    Auto-check passed
  • Ppt Designer

    dongsheng123132/u-claw

    PPT 演示助手 - 幻灯片设计、内容结构、视觉优化、动画建议、演讲稿

    1.8k GitHub stars~415 tokensUpdated 4 days ago
    Auto-check passed
  • Bilibili Helper

    dongsheng123132/u-claw

    B站内容助手 - 视频标题描述优化、标签策略、封面设计建议、分区选择、评论互动

    1.8k GitHub stars~380 tokensUpdated 4 days ago
    Auto-check passed

Works with

Questions about PDF Toolkit

How do I install PDF Toolkit in Claude Code?

Run `npx skills add dongsheng123132/u-claw --skill pdf-toolkit -a claude-code`. Or copy the skill folder (portable/skills-cn/pdf-toolkit in dongsheng123132/u-claw) into .claude/skills/pdf-toolkit in your project. Claude Code loads it when a task matches its description.

How do I install PDF Toolkit in Codex?

Run `npx skills add dongsheng123132/u-claw --skill pdf-toolkit -a codex`. Or copy the skill folder (portable/skills-cn/pdf-toolkit in dongsheng123132/u-claw) into .agents/skills/pdf-toolkit in your project. Codex loads it when a task matches its description.

Can I use PDF Toolkit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dongsheng123132/u-claw --skill pdf-toolkit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pdf-toolkit, .gemini/skills/pdf-toolkit, .github/skills/pdf-toolkit and .opencode/skills/pdf-toolkit in your project.

What does PDF Toolkit need to run?

Going by SKILL.md and its folder, PDF Toolkit needs the command-line tools its instructions call (python and pip).

Does PDF Toolkit access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is PDF Toolkit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does PDF Toolkit use?

PDF Toolkit is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does PDF Toolkit use?

About 318 tokens (SKILL.md is roughly 1.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to PDF Toolkit?

Skills that share tags, products or a category with PDF Toolkit: PDF Toolkit (XiaomiMiMo/MiMo-Code, 14k stars), PDF Generation, Forms and Extraction (pipeshub-ai/pipeshub-ai, 3.8k stars), PDF (NousResearch/hermes-agent, 253k stars) and PDF Explore (HughYau/AcademicForge, 2.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PDF Toolkit?

dongsheng123132 (a GitHub user) maintains it in dongsheng123132/u-claw, which has 1,759 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 6, 2026.

Source: dongsheng123132/u-claw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.