Invoice Scan
CLAWHUB · Unverified
AI-powered invoice OCR, scanning, and data extraction. Use when: (1) user needs OCR or text extraction from invoice images, scanned documents, or PDFs, (2) s... Skill: Invoice Scan Owner: mr-muddle Summary: AI-powered invoice OCR, scanning, and data extraction. Use when: (1) user needs OCR or text extraction from invoice images, scanned documents, or PDFs, (2) s... Tags: accounting:1.3.0, ai:1.3.0, finance:1.3.0, invoicing:1.3.0, latest:2.2.0, ocr:1.3.0 Version history: v2.2.0 | 2026-03-25T21:33:56.157Z | user Schema completeness checker — local validation catches missing fi
- 62
- Rank
- 84
- Safety
- 1.4k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 10, 2026
- Adoption signal
- 1.4K downloadsadoption · Oct 10, 2026
- Latest release
- 2.2.0release · Mar 25, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 2.2.0release
Schema completeness checker — local validation catches missing fields at zero token cost; Retry pass for missing critical/important fields — sends focused re-extraction prompt with __NOT_ON_DOCUMENT__ sentinel; Merge + re-validate pipeline recovers fields the first pass missed; Completeness metadata in every output (score, populated, missing, retryRecovered); prepare.js agent-native mode also gets completeness warnings
Observed Mar 25, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s1798mqtm2z6zw4d5fgnncszcn83h19q:invoice-scan- Node.js workspace detected. Install dependencies securely: run `npm ci --ignore-scripts` to prevent post-install lifecycle triggers from running arbitrary code, then selectively audit the dependency tree.
- Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-mr-muddle-invoice-scan/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
140,399 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
---
name: invoice-scan
description: "AI-powered invoice OCR, scanning, and data extraction. Use when: (1) user needs OCR or text extraction from invoice images, scanned documents, or PDFs, (2) scanning/reading invoices to extract structured data (JSON, CSV, Excel), (3) validating invoice arithmetic or classifying document types (invoice vs receipt vs other), (4) processing handwritten invoices, stamps, or multi-language documents (Chinese, Russian, European, etc.), (5) user asks to read/parse/extract/OCR an invoice or receipt. Keywords: OCR, invoice scanning, receipt scanning, document OCR, invoice data extraction, invoice parser, invoice reader. Works in two modes: agent-native (uses your own vision — no API key needed, only formatOutput for export) or CLI standalone (needs ANTHROPIC_API_KEY). Env: ANTHROPIC_API_KEY (CLI mode only). Install: npm install --production in scripts/."
metadata:
clawdbot:
requires:
env:
- name: ANTHROPIC_API_KEY
required: false
description: "Anthropic API key (CLI mode only — not needed for agent-native mode)"
bins:
- node
install:
- id: node-deps
kind: shell
command: "cd {SKILL_DIR}/scripts && npm install --production"
label: "Install Node.js dependencies (sharp, xlsx)"
externalEndpoints:
- url: "https://api.anthropic.com"
purpose: "Send base64-encoded invoice images for AI vision extraction (CLI mode only)"
dataTypes:
- "invoice images (base64)"
- "PII: supplier/buyer names, addresses, IBANs, bank details, amounts"
---
# Invoice Scan
## ⚠️ Privacy Notice
**CLI mode** sends base64-encoded invoice images to Anthropic's API (`api.anthropic.com`). Invoice data (supplier/buyer names, addresses, IBANs, bank details, amounts) will be transmitted to a third-party service. Confirm this is acceptable under your privacy and compliance requirements before use. Consider dedicated API credentials with usage limits.
**Agent-native mode** does NOT send data externally — the agent uses its own built-in vision. Only `formatOutput()` is called locally for CSV/Excel export.
## Setup
Install dependencies (required before first use):
```bash
cd {SKILL_DIR}/scripts && npm install --production
```
Dependencies: `sharp` (image processing), `xlsx` (Excel export). Review `scripts/package.json` before installing.
**CLI mode requires:** `ANTHROPIC_API_KEY` environment variable.
**Agent-native mode requires:** nothing — uses agent's built-in vision capability.
## Two Modes
### Mode 1: Agent-Native (No API Key, No External Calls)
Use your built-in vision to look at the invoice image directly. **Do NOT call `scanInvoice()`** — that function requires an API key and sends data externally. Instead:
1. Look at the image with your vision capability
2. Extract all fields into a JSON object matching the canonical schema in `references/canonical-schema.md`
3. Classify document type: invoice, credit-note, receip_meta.json
{
"ownerId": "kn74mw95j6jzq62hn4g77wmmt982vxjf",
"slug": "invoice-scan",
"version": "2.2.0",
"publishedAt": 1774474436157
}references/canonical-schema.md
# Canonical Invoice Schema v1.0.0
Every scan produces this structure regardless of AI provider.
## Top-Level
```
{ schemaVersion, header, referencedDocuments[], lineItems[], totals, metadata, fields[], validation, exceptions }
```
## header
invoiceNumber, invoiceDate (YYYY-MM-DD), dueDate, currency (ISO 4217), supplierName, supplierAddress, supplierVatNumber, buyerName, buyerAddress, buyerVatNumber, paymentTerms, paymentReference, bankDetails: { iban, bic, accountNumber, sortCode }
## lineItems[]
description, quantity, unitOfMeasure, unitPrice, lineTotal, vatRate (percentage), sku, discount
## referencedDocuments[]
type (PO|contract|GRN|inspection|timesheet|project|proforma|invoice|credit-note|debit-note|other), reference
For credit/debit memos: ALWAYS include a referencedDocument with type "invoice" and the original invoice number as reference. This is the primary link back to the original document.
## totals
netTotal, vatBreakdown[]: { rate, amount, type (optional — tax regime label e.g. "CGST", "SGST", "USt", "НДС") }, vatTotal, grossTotal, amountPaid, amountDue, discount (invoice-level discount amount), discountRate (percentage e.g. 10 for 10%)
## charges[]
Surcharges and fees that appear outside the line items table (shipping, handling, etc.). Do NOT duplicate items already captured as line items.
type (shipping|handling|insurance|surcharge|discount|other), label (original text from document, e.g. "P&P", "Freight"), amount (net, before tax), vatRate (percentage or null), vatAmount (explicit tax amount or null)
## stamps[]
type (company|paid|approved|date|tax|other), text
## remarks
Freeform string — any comments, notes, or remarks printed on the document (null if none).
## metadata
confidence (0.0–1.0), language (ISO 639-1), pageCount, processingDurationMs, provider, extractionTimestamp (ISO 8601), documentType, paidDate (YYYY-MM-DD — date from PAID stamp if present), vatInclusive (true if line totals include VAT, false if net, null if unknown)
## fields[]
Per-field detail: name, value, confidence, boundingBox ({ x, y, width, height, page } or null), extractionMethod (ocr|icr|stamp|inferred), failureReason
## validation
arithmeticValid (boolean), errors[]: { field, message }, warnings[]: { field, message }, documentQuality: { score, presentFields, totalChecked, rating (good|partial|poor) }
## exceptions
overallStatus (success|partial|failed|rejected), failedFields[], processingAttempts, rejectionReasonreferences/validation-rules.md
# Validation Rules ## Arithmetic Checks 1. **lineItemSum** — Sum of lineTotal values must match netTotal (±0.02 tolerance) 2. **vatCalculation** — Per-line: lineTotal × vatRate/100 must match expected VAT 3. **grossEqualsNetPlusVat** — netTotal + vatTotal must equal grossTotal (±0.02) ## Document Classification (9 types) invoice, credit-note, receipt, purchase-order, delivery-note, confirmation, statement, other-financial, not-financial ### Accept Modes - **strict**: invoice, credit-note only - **relaxed** (default): + receipt, proforma - **any**: extract from all, classify only ## Business Rules (15) 1. Missing invoice number 2. Missing invoice date 3. Missing supplier name 4. Missing buyer name 5. Missing currency 6. Future invoice date (>7 days ahead) 7. Due date before invoice date 8. Suspicious invoice number (too short, placeholder patterns) 9. Receipt signals on invoice (till number, transaction ID, card ending) 10. No line items extracted 11. Line items without amounts 12. Missing VAT when VAT numbers present 13. Missing payment information (no terms, no bank, no reference) 14. Unusually high confidence with many missing fields 15. Currency mismatch between header and line items ## Amount Due / Amount Paid Checks 16. amountDue should equal grossTotal - amountPaid (±0.02 tolerance) when all three are present 17. amountPaid should not exceed grossTotal (warning, not error — overpayments/credits exist) ## Extended Business Rules (18–28) 18. VAT-inclusive observation — flag when line totals include VAT (metadata.vatInclusive = true) 19. Duplicate line items — same description + lineTotal appearing more than once 20. Non-standard VAT/tax label — vatBreakdown.type not in known list (VAT, GST, CGST, SGST, USt, etc.) 21. amountDue = netTotal with no VAT — observation for zero-tax documents 22. Invoice-level discount consistency — discount vs discountRate × netTotal 23. Credit note positive amounts — some jurisdictions expect negative values 24. OCR artifacts in invoice number — suspicious characters that may be scan noise 25. Charges duplicating line items — charge label matches a line item description (error) 26. Credit/debit note missing original invoice reference (warning) 27. Due date before invoice date (warning) 28. Rounding discrepancies ≤1.00 are warnings not errors ## Quality Score - Count present key fields: invoiceNumber, invoiceDate, supplierName, buyerName, currency, netTotal, vatTotal, grossTotal, lineItems (≥1) - Score = present / 9 - Rating: ≥0.8 = good, ≥0.5 = partial, <0.5 = poor
scripts/package.json
{
"name": "invoice-scan",
"version": "2.2.0",
"description": "AI-powered invoice scanning skill for OpenClaw — extract structured data from any invoice document",
"main": "index.js",
"bin": {
"invoice-scan": "./cli.js"
},
"scripts": {
"test": "node tests/run-all.js",
"test:normalisation": "node tests/unit/test-normalisation.js",
"test:validation": "node tests/unit/test-validation.js",
"test:schema": "node tests/unit/test-schema.js",
"scan": "node src/cli.js scan",
"lint": "echo 'TODO: add linter'"
},
"keywords": [
"invoice",
"scanning",
"ocr",
"document-processing",
"openclaw",
"clawhub",
"ai",
"extraction"
],
"author": "Count Vlad 🦇 + Mark (mr-muddle)",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/mr-muddle/invoice-scan.git"
},
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"sharp": "^0.33.0",
"xlsx": "^0.18.5"
}
}AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-mr-muddle-invoice-scan. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about Invoice Scan. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-mr-muddle-invoice-scan, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/mr-muddle/skills/invoice-scan",
"sourceUrl": "https://clawhub.ai/mr-muddle/skills/invoice-scan",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T15:22:45.111Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-mr-muddle-invoice-scan/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-mr-muddle-invoice-scan/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T15:22:45.111Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.4K downloads",
"href": "https://clawhub.ai/mr-muddle/invoice-scan",
"sourceUrl": "https://clawhub.ai/mr-muddle/invoice-scan",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T15:22:45.111Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "2.2.0",
"href": "https://clawhub.ai/mr-muddle/invoice-scan",
"sourceUrl": "https://clawhub.ai/mr-muddle/invoice-scan",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-25T21:33:56.157Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-mr-muddle-invoice-scan/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-mr-muddle-invoice-scan/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 2.2.0",
"description": "Schema completeness checker — local validation catches missing fields at zero token cost; Retry pass for missing critical/important fields — sends focused re-extraction prompt with __NOT_ON_DOCUMENT__ sentinel; Merge + re-validate pipeline recovers fields the first pass missed; Completeness metadata in every output (score, populated, missing, retryRecovered); prepare.js agent-native mode also gets completeness warnings",
"href": "https://clawhub.ai/mr-muddle/invoice-scan",
"sourceUrl": "https://clawhub.ai/mr-muddle/invoice-scan",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-25T21:33:56.157Z",
"isPublic": true
}
]
}Record generated Nov 23, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-mr-muddle-invoice-scan/run-check
