agentsclimarketplace

Pdf

Skill ZSHYC/pdf-master/skills/pdf

PDF processing toolkit. Extract text/tables/images, merge/split/watermark, format conversion, AI summarization/translation, OCR, encryption/decryption, form handling. Use when working with PDF files, extracting content, converting formats, or applying AI enhancements.From its SKILL.md

Install
npx -y skills add ZSHYC/pdf-master --skill pdf

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.5 KB, as published. Nobody here has run it

PDF-Master

全能型 PDF 处理工具,提供 40+ 种操作。

快速命令

# 解析提取
/pdf extract document.pdf              # 提取所有内容
/pdf extract --text document.pdf       # 提取文本
/pdf extract --tables document.pdf     # 提取表格
/pdf extract --images document.pdf     # 提取图片
/pdf extract --metadata document.pdf   # 提取元数据

# 编辑修改
/pdf merge file1.pdf file2.pdf -o merged.pdf
/pdf split document.pdf
/pdf rotate document.pdf --angle 90
/pdf watermark document.pdf --image stamp.png

# 格式转换
/pdf convert --to-excel document.pdf
/pdf convert --to-markdown document.pdf
/pdf convert --to-images document.pdf
/pdf pdfa document.pdf -o archive.pdf --level 2b  # PDF/A 存档格式

# AI 增强
/pdf summarize document.pdf
/pdf ask document.pdf "主要观点是什么?"
/pdf translate document.pdf --to en

# OCR 识别
/pdf ocr scanned.pdf

# 安全权限
/pdf encrypt document.pdf --password secret
/pdf decrypt encrypted.pdf --password secret
/pdf redact document.pdf --text "sensitive"
/pdf sign document.pdf --cert cert.p12 --password secret  # 数字签名
/pdf verify document.pdf  # 验证签名
/pdf audit document.pdf   # 安全审计

# 表单处理
/pdf form-check document.pdf
/pdf form-fill document.pdf --data fields.json

# 书签管理
/pdf bookmarks list document.pdf
/pdf bookmarks add document.pdf --title "第一章" --page 1
/pdf bookmarks remove document.pdf --all

# 链接管理
/pdf links list document.pdf
/pdf links add document.pdf --page 1 --rect "100,100,200,120" --url "https://example.com"
/pdf links remove document.pdf --suspicious

# 注释管理
/pdf annotations list document.pdf
/pdf annotations add document.pdf --page 1 --pos "100,100" --contents "重要"
/pdf annotations remove document.pdf --type Highlight

# 批量重命名
/pdf rename *.pdf --rule metadata --template "{author} - {title}"
/pdf rename *.pdf --rule date --template "{date:%Y-%m-%d}_{filename}"
/pdf rename *.pdf --rule content --template "{title}"
/pdf rename *.pdf --rule custom --template "Document_{counter:04d}"
/pdf rename *.pdf --dry-run  # 预览重命名结果

执行脚本

所有脚本位于 ${CLAUDE_SKILL_DIR}/scripts/:

python ${CLAUDE_SKILL_DIR}/scripts/extract_text.py input.pdf -o output.txt
python ${CLAUDE_SKILL_DIR}/scripts/merge_pdfs.py *.pdf -o merged.pdf
python ${CLAUDE_SKILL_DIR}/scripts/summarize_pdf.py document.pdf --provider claude

AI Provider 配置

零配置设计

安装即用! PDF-Master 自动检测 Claude Code 已有的 API Key:

# 无需任何配置,直接使用
/pdf summarize document.pdf    # 自动使用 Claude

内置 Provider 预设(40+)

分类Provider环境变量特点
官方ClaudeANTHROPIC_API_KEY默认使用,无需配置
OpenAIOPENAI_API_KEYGPT 系列
GeminiGOOGLE_API_KEYGoogle 最新模型
国内DeepSeekDEEPSEEK_API_KEY性价比极高
通义千问QWEN_API_KEY中文效果优秀
智谱 GLMZHIPU_API_KEY国产大模型
MoonshotMOONSHOT_API_KEY长文本能力强
聚合OpenRouterOPENROUTER_API_KEY一个 Key 访问所有模型
本地Ollama无需隐私安全,免费

快速切换 Provider

# 方式一:命令行指定
python ${CLAUDE_SKILL_DIR}/scripts/summarize_pdf.py doc.pdf --provider deepseek

# 方式二:设置环境变量
export PDF_MASTER_PROVIDER=qwen

# 方式三:配置文件
cp config/providers.yaml ~/.pdf-master/providers.yaml

详细文档

依赖安装

pip install pypdf pdfplumber PyMuPDF reportlab Pillow
pip install anthropic openai google-generativeai zhipuai ollama
pip install pytesseract pdf2image  # OCR
pip install pandas openpyxl        # 表格

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.