跳到正文
Skillpedia
网页抓取48k · #4581

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/extract-document-data/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Get the document. URL or local file path (PDF, PNG, JPEG, DOCX).

  2. 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 fields and let the model extract what it finds
  3. 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) and page (grounding)
    • not_found[] lists requested fields the model couldn't find — absences are reported, never guessed
    • pages_read shows how many pages were processed (page limits apply per document)
  4. 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-document skill 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 the template form 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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4581
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能