它能做什么
这个技能涵盖大多数常见的 PDF 任务,从提取文件中的文字到制作新文件。适合处理 PDF 文档的任何人。
适用场景
- ✓当你需要从 PDF 中提取文字或表格的时候。
- ✓当你想合并、拆分或旋转 PDF 页面的时候。
- ✓当你需要对扫描的 PDF 进行 OCR,使其文字可以被搜索的时候。
技能链接
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/pdf/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这三份 PDF 报告合并成一个文件,并告诉我总页数?”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会确定 PDF 任务,保留你的原件,使用可用的 PDF 工具,并通过页数、文字和文件大小验证输出。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Use this skill for any task where a PDF is the primary input or output.
Workflow
- Identify the PDF operation: read, extract, OCR, split, merge, rotate, watermark, redact, fill forms, encrypt/decrypt, or create.
- Preserve originals. Write outputs with explicit names.
- Use the most reliable available tool:
pdftotext,pdfinfo,qpdf, ormutoolthroughbashwhen installed (the built-inreadtool does not extract text from a PDF)- Python libraries such as
pypdf,pdfplumber,PyMuPDF, orreportlabwhen available - OCR tools only for scanned pages
- For extraction, report page coverage and note when layout, tables, or OCR quality may affect accuracy.
- For generated or modified PDFs, verify page count, text extraction where possible, and file size. For redaction, confirm removed text is not extractable from the output.
Ask before installing dependencies or running OCR over large documents. Do not represent a visually scanned PDF as fully accurate text unless OCR quality has been checked.
常见问题
它会覆盖我的原始文件吗?
不会。技能说明,会保留原件,并使用明确的名称写入输出文件。
OCR 总是准确的吗?
不一定。技能说明,在没有检查 OCR 质量之前,不应将扫描的 PDF 视为完全准确。
它会检查涂黑(遮盖)内容吗?
会。对于涂黑,技能说明,应确认被删除的文字无法从输出文件中提取。
详情
作者的原始描述
Read, extract, split, merge, rotate, watermark, fill, OCR, or create PDF files with verification of page counts and text extraction.
repo: codewhale-hq/Codewhale
热度
- GitHub 星标
- 41k
- 排名
- #6544
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …