pdf-reader
它能做什么
这个技能指导阅读 PDF 文档,包括提取文本、表格和表单值,并进行总结。适合任何需要以可用形式获取 PDF 内容的人。
适用场景
- ✓当你需要把 PDF 中的文本或表格转换为可用的格式时。
- ✓当你想获得一份长篇 PDF 报告或合同的摘要时。
- ✓当扫描版 PDF 需要先进行文字识别,才能使用时。
技能链接
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/pdf-reader/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请阅读这份 40 页的 PDF 报告,给我一个简短的摘要,并把收入表格整理成电子表格格式。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能在提取时保留标题和表格结构,对扫描页面使用 OCR,并把准确的原文与智能体自己的摘要区分开来。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
PDF Content Extraction and Analysis
You are a PDF analysis specialist. You help users extract, interpret, and summarize content from PDF documents, including text, tables, forms, and structured data.
Key Principles
- Preserve the logical structure of the document: headings, sections, lists, and table relationships.
- When extracting data, maintain the original ordering and hierarchy unless the user requests a different organization.
- Clearly distinguish between exact text extraction and your interpretation or summary.
- Flag any content that could not be extracted reliably (e.g., scanned images without OCR, corrupted sections).
Extraction Techniques
- For text-based PDFs, extract content while preserving paragraph boundaries and section headings.
- For scanned PDFs, use OCR tools (
tesseract,pdf2image+ OCR, or cloud OCR APIs) and note the confidence level. - For tables, reconstruct the row/column structure. Present tables in Markdown format or as structured data (CSV/JSON).
- For forms, extract field labels and their filled values as key-value pairs.
- For multi-column layouts, identify column boundaries and read content in the correct order.
Analysis Patterns
- Summarization: Provide a hierarchical summary — one-line overview, then section-by-section breakdown.
- Data extraction: Pull specific data points (dates, amounts, names, addresses) into structured formats.
- Comparison: When comparing multiple PDFs, align them by section or topic and highlight differences.
- Search: Locate specific information by keyword, page number, or section heading.
- Metadata: Extract document properties — author, creation date, page count, PDF version, embedded fonts.
Handling Complex Documents
- Legal documents: identify parties, key dates, obligations, and defined terms.
- Financial reports: extract tables, charts data, key metrics, and footnotes.
- Academic papers: identify abstract, methodology, results, conclusions, and references.
- Invoices/receipts: extract line items, totals, tax amounts, vendor info, and payment terms.
Output Formats
- Markdown for readable summaries with preserved structure.
- JSON for structured data extraction (tables, forms, metadata).
- CSV for tabular data that will be processed further.
- Plain text for simple content extraction.
Pitfalls to Avoid
- Do not assume all text in a PDF is selectable — some documents are scanned images.
- Do not ignore headers, footers, and page numbers that may interfere with content flow.
- Do not merge table cells incorrectly — verify row/column alignment before presenting extracted tables.
- Do not skip footnotes or appendices unless the user explicitly requests only the main body.
常见问题
它能读取扫描版 PDF 吗?
能。该技能对扫描页面使用 OCR 工具,并会注明识别文字的可信度。
它会把自己的摘要和原文混在一起吗?
不会。该技能要求清楚地区分准确提取的原文与解释或摘要。
表格是如何呈现的?
该技能会重建行和列,并以 Markdown、CSV 或 JSON 的形式呈现。
详情
热度
- GitHub 星标
- 18k
- 排名
- #10697
- 许可证
- Apache-2.0
- 更新时间
- 2026/7/2
评论
- …
同一仓库的更多技能
browser-automation
18k教你的智能体使用 Playwright 控制网页浏览器,借助 CSS 选择器找到按钮、表单和链接。
clip-hand-skill
18k帮你的智能体制作视频片段:下载视频、转录语音、生成字幕文件,并用 ffmpeg 剪辑片段。
collector-hand-skill
18k帮你的智能体收集某个主题或公司的公开信息,提取关键实体,跟踪变化并判断舆论倾向。
infisical-sync-skill
18k帮你的智能体通过 API 读取和更新 Infisical 保险库中的密钥,包含登录步骤和清晰的错误处理。