extract-document-data – skill Tài liệu & Office cho agent AI
Trích xuất các trường dữ liệu có cấu trúc, có căn cứ từ tài liệu — giá trị ghi rõ trang nguồn, giá trị thiếu sẽ bỏ trống thay vì suy diễn. Dùng để phân tích hóa đơn, phiếu lương, sao kê, hợp đồng.
Cài skill extract-document-data bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/extract-document-data-e02d6.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /extract-document-data – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/extract-document-data-e02d6.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $extract-document-data – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/extract-document-data-e02d6.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /extract-document-data – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/extract-document-data-e02d6.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /extract-document-data – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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 "[email protected]" \
-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
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) 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)
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-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
Skill liên quan
- feature-tracking – Duy trì bộ nhớ cấp tính năng bền vững xuyên suốt các phiên lập trình AI bằng các track…
- frontend-slides – Tạo bản trình chiếu HTML đẹp mắt, giàu hiệu ứng động từ đầu hoặc bằng cách chuyển đổi…
- frontend-slides-frontend-slides – Tạo bản trình chiếu HTML đẹp mắt, giàu hiệu ứng động từ đầu hoặc bằng cách chuyển đổi…
- geo-report-pdf – Tạo báo cáo PDF chuyên nghiệp từ audit GEO bằng pandoc + Chrome headless.
- session-handoff – Viết tài liệu bàn giao để phiên mới hoặc agent khác có thể tiếp tục đúng chỗ phiên này…
- google-slides-automation – Đọc và chỉnh sửa Google Slides qua connector đã xác thực hoặc tích hợp API đã được rà…
- handoff – Nén cuộc hội thoại hiện tại thành tài liệu bàn giao để agent khác tiếp tục công việc.
- heading-analyzer – Heading Analyzer. Dùng khi làm việc với HTML, Markdown hoặc các heading đã trích xuất.