它能做什么
该技能让智能体完成许多与 PDF 文件相关的常见工作。适用于需要阅读、制作或修改 PDF 的人。
适用场景
- ✓当你想从 PDF 文件中提取文字或表格时。
- ✓当你想把多个 PDF 合并为一个,或把一个文件拆分成几部分时。
- ✓当你需要填写可填写的 PDF 表单,或为页面添加水印时。
技能链接
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/pdf/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把我列出的这三份 PDF 报告按顺序合并成一个文件。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先检查 PDF,然后生成一个包含修改内容的新输出文件。除非你另有要求,否则会保持你的原始文件不变。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
PDF documents
Use this Skill for PDF extraction, generation, page operations, forms, metadata, attachments, encryption, and visual review.
Start here
Call skill_view for this Skill first and use the returned baseDirectory for all bundled helpers under <baseDirectory>/scripts.
Default to a new output file. Do not overwrite or remove source PDFs unless the user explicitly asks. Inspect an input before transforming it, and preserve page order, orientation, dimensions, annotations, and form intent unless the request says otherwise.
Common dependencies:
python3 -m pip install pypdf reportlab pdfplumber
Page rendering uses pypdfium2 when available and can fall back to Poppler's pdftoppm. Check dependencies first; do not install them silently.
Helpers
- pdf_read.py: extract text and document information.
- pdf_page_image.py: render selected pages to images.
- pdf_create.py: create a PDF from structured input.
- pdf_merge.py and pdf_split.py: page composition.
- pdf_fill_form.py, pdf_form_layout.py, and pdf_make_form.py: AcroForm inspection, filling, and creation.
- pdf_watermark.py and pdf_stamp.py: page overlays.
- pdf_meta.py: metadata and attachment operations.
- pdf_secure.py: encrypt or decrypt using password files.
Run helpers with terminal_exec, using python3 as the command and an argument array. Use --help to inspect exact arguments.
python3 <baseDirectory>/scripts/pdf_read.py input.pdf --json
python3 <baseDirectory>/scripts/pdf_page_image.py input.pdf -o rendered --pages 1-3
python3 <baseDirectory>/scripts/pdf_merge.py first.pdf second.pdf -o merged.pdf
python3 <baseDirectory>/scripts/pdf_split.py input.pdf -o pages
For form work, read references/forms.md through skill_view before editing.
Workflow
- Inspect text, metadata, page count, page sizes, encryption state, and form fields as relevant.
- Perform the smallest requested transformation into a new output.
- Re-read the output to verify page count, text, metadata, attachments, or field values.
- Render every changed page, or a representative sample for a large generated document, and inspect it with view_image. Check crop boxes, rotation, clipping, font rendering, overlays, and form appearance.
- Return the absolute output path and list any validation limitations.
Use OCR only when normal text extraction is empty or clearly incomplete. Route scanned documents through the ocr-and-documents Skill.
Passwords and sensitive PDFs
- Do not put PDF passwords in chat, logs, or command arguments.
- Store a supplied password in a temporary file with restrictive permissions and pass --password-file, --user-password-file, or --owner-password-file. Remove that temporary file after the operation.
- PDF permission flags are advisory; do not describe them as strong access control.
- Do not send sensitive PDF contents to external services without the user's authorization.
常见问题
它会覆盖我的原始 PDF 吗?
不会。默认情况下它会写入新文件,除非你要求,否则不会删除源文件。
它能处理有密码保护的 PDF 吗?
能。该技能包括使用密码文件加密和解密 PDF 的功能。
它能填写表单吗?
能。它可以检查、填写和创建可填写的表单字段,也就是 PDF 中的标准表单字段。
详情
作者的原始描述
Read, create, merge, split, fill, watermark, stamp, secure, inspect, render, and visually verify PDF files, including AcroForm workflows.
repo: EKKOLearnAI/ekko-studio
热度
- GitHub 星标
- 12k
- 排名
- #11573
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
1password
12k帮你的智能体使用 1Password CLI 为命令和配置文件获取机密信息,同时不在聊天、日志或已保存的文件中显示这些信息。
apple-notes
12k帮你的智能体在 Mac 上使用 memo 命令行工具创建、搜索、阅读、编辑、移动或删除 Apple 备忘录。
apple-reminders
12k帮你的智能体在 Mac 上使用 remindctl 工具列出、创建、编辑、完成或删除 Apple 提醒事项及提醒列表。
document-to-action-items
12k帮你的智能体把文档、会议记录或一组笔记,整理成一张清晰的任务、负责人、截止日期和决定的表格。