extract-document-data
它能做什么
这个工具可以从工资单、发票或合同等文档中提取特定信息。它会把数据整理成 JSON 列表格式,并且始终标注每条信息来自哪一页,不会编造文档中不存在的数据。
适用场景
- ✓为会计工作整理发票数据。
- ✓从合同中提取信息以便分析。
- ✓把收据转换成便于使用的电子格式。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/extract-document-data/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请从这份工资单中提取雇主名称、实发工资和发薪日期。”
每周 5 个新技能,1 分钟读完。
工作原理
你发送文档(比如 PDF),并说明想要哪些信息。工具会读取文档、找到对应数据,然后返回一个列表,列出每条信息以及它所在的页码。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Extract Document Data
Extract structured JSON from documents with per-value grounding: every extracted value cites where it came from (page number, confidence), and values that aren't clearly present are reported in not_found rather than hallucinated. Uses the Stipple API (free anonymous tier).
When to use
- Parsing payslips, invoices, bank statements, receipts, or contracts
- Converting unstructured documents to JSON for downstream systems
- Any extraction where hallucinated values are worse than missing values (lending, accounting, compliance)
Instructions
Get the document. URL or local file path (PDF, PNG, JPEG, DOCX).
Choose the extraction mode:
- Ad-hoc fields — tell the API exactly which fields you want:
curl -X POST https://www.stipple.sh/v1/extract \ -F "file=@payslip.pdf" \ -F 'fields=[{"name":"employer_name"},{"name":"net_pay"},{"name":"pay_date"}]' \ -H "Authorization: Bearer $STIPPLE_API_KEY" - Template — use a built-in schema:
payslip,tax_invoice,bank_statement,receipt,contract - Schema-free — omit
fieldsand let the model extract what it finds
- Ad-hoc fields — tell the API exactly which fields you want:
Interpret the response.
{ "mode": "schema_free", "document_type": "payslip", "pages_read": 1, "fields": { "employer_name": {"value": "Acme Cleaning Pty Ltd", "confidence": 0.95, "page": 1}, "net_pay": {"value": "2845.10", "confidence": 0.97, "page": 1} }, "not_found": ["ytd_tax"] }- Every value carries
confidence(the model's self-report) andpage(grounding) not_found[]lists requested fields the model couldn't find — absences are reported, never guessedpages_readshows how many pages were processed (page limits apply per document)
- Every value carries
Report honestly. This is extraction, not verification — values are what the document shows, not proof it's genuine:
- "Employer: Acme Cleaning Pty Ltd (confidence 0.95, page 1)"
- "ytd_tax: not found in document" — never "ytd_tax: 0" or a guess
- For "is this document genuine?", pair with the
verify-documentskill first
Output format
Payslip fields (grounded, not guessed):
Employer Acme Cleaning Pty Ltd (confidence 0.95, page 1)
Employee J. Citizen (confidence 0.98, page 1)
Net pay 2,845.10 (confidence 0.97, page 1)
Superannuation 268.20 (confidence 0.93, page 1)
not_found: ytd_tax
(absences are reported, never hallucinated)
Limitations and Safety
- Invoices, statements, payslips, and contracts often contain sensitive personal, financial, or commercial data. Obtain explicit approval before uploading them to a hosted third party, minimize the submitted content, and confirm current retention, residency, access, and deletion terms.
- Confidence and page grounding do not prove that an extracted value is correct or that the source document is authentic. Reconcile consequential values against the original document and authoritative systems before payment, lending, accounting, compliance, or legal action.
- Keep the original file and extraction response so a human reviewer can reproduce and correct disputed fields.
Notes
- Costs 1 credit per page read by the model (minimum 1); free weekly allowance applies
- Templates:
payslip,tax_invoice,bank_statement,receipt,contract— pass as thetemplateform field - Tables are extracted with structure preserved; multi-page documents are processed page by page
- Pairs with
verify-document(run first, for authenticity) — an extracted value from a tampered document is still wrong - Free key at https://www.stipple.sh for metering beyond the anonymous allowance
常见问题
如果文档中没有这些信息会怎样?
工具会提示未找到该数据,而不会凭空编造一个值。
这个工具能验证文档是否真实吗?
不能。它只提取文档中可见的信息。如果要验证真伪,需要使用其他工具。
我可以从任何类型的文档中提取数据吗?
它在发票、工资单、银行对账单、收据和合同等文档上效果最好。对于其他类型的文档,效果可能没那么理想。
详情
作者的原始描述
Extract structured, grounded fields from documents — values cite their page, missing values abstain instead of hallucinating. Use for parsing invoices, payslips, statements, contracts.
热度
- GitHub 星标
- 48k
- 排名
- #4581
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。