More screenshots

    Works with the AI Agents you already use

    Invoice Audit Extractor

    by Mohamed Elsayed

    1

    If your invoices are photos, scans, or in Arabic, neither camp helps.

    Free

    Security scanned
    Invoice Audit Extractor

    Invoice Audit Extractor

    Example session with this skill installed

    Check this supplier invoice before I pay it — and if it's clean, add it to my expenses ledger.

    • Read your context and instructions
    • Compiled the invoice audit extractor

    Audit result: REVIEW — one discrepancy found

    I extracted every field from the invoice and ran the deterministic audit. 4 of 5 checks pass, but the

    printed grand total does not reconcile:

    CheckResult
    Gross − discounts = subtotal✅ 34,935.48
    Σ line totals = subtotal✅
    Tax = 5% × subtotal✅ 1,746.77
    Subtotal + tax = total❌ 34,935.48 + 1,746.77 = 36,682.25, printed: 36,682.00

    Unexplained gap: −0.25 AED. No rounding line is printed on the invoice.

    Recommendation: ask the supplier to confirm or reissue the invoice before paying the printed total. I did not add it to your ledger.

    Extraction notes: 7 line items read from a stamped scan; 2 fields flagged uncertain (stamp overlap) — both re-checked against the totals above. No values were estimated.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The problem

    Invoice tools fall into two camps: extractors that trust whatever the model reads (and silently invent numbers when the photo is bad), and checkers that only work if you already typed the invoice into text. If your invoices are photos, scans, or in Arabic, neither camp helps.

    What this skill does

    • Extracts invoice number, dates, seller, buyer, currency, line items (qty, unit price, discount, tax rate, line total), subtotal, discounts, tax, grand total.
    • Inputs: PDF, JPG, PNG, TIFF, HEIC. Phone photos, scans, multi-page documents. Arabic, English, French — Western (123) and Arabic-Indic (١٢٣) numerals.
    • Audits the arithmetic with deterministic rules: line sums, discount-netted lines, tax = stated rate × subtotal, subtotal + tax = grand total, batch duplicate detection, past-due and missing-field flags.
    • Outputs: JSON + CSV + formatted Excel + a short report per document. Bank identifiers are masked in every report.
    • Refuses to guess: unreadable fields come back empty and flagged; a document that fails the audit is marked REVIEW/FAIL with the exact arithmetic, and you're asked for a clearer photo.

    Measured results (test corpus, November 2026)

    Tested on 26 documents in 3 rounds: synthetic templates, 7 real public invoices from open datasets, and 5 independent Arabic invoices including phone-photo and stamped scans.

    • 100% field accuracy on every legible document (79/79 fields on the Arabic set).
    • 0 invented numbers across all 26 documents — unreadable values were flagged, never fabricated.
    • Caught 5/5 deliberately seeded errors, plus 2 real-world errors found in public invoices (a printed total 0.38 off; an unprinted 0.25 rounding gap).
    • One heavily blurred, stamp-covered photo scored 40% — and the audit caught the inconsistency and rejected the document instead of passing it. That is the product working as designed.

    Why not just prompt an AI?

    Because a plain prompt can't tell you when it's guessing. This skill pairs extraction with a deterministic audit script (line math, tax-rate math, discount math, duplicates) that doesn't care how confident the model sounds — the numbers either reconcile or the document is flagged.

    Use cases

    • Check a supplier invoice before paying it.
    • Turn a month of receipt photos into a clean Excel ledger.
    • Verify your own invoice before sending it to a client.
    • Process Arabic invoices that other extractors can't read.

    Known limitations (read before buying)

    • Heavily degraded photos (motion blur, stamps over the numbers) are rejected, not read.
    • Handwritten invoices work but expect more REVIEW verdicts.
    • Multi-currency in one document is flagged, not converted.
    • The audit checks arithmetic and completeness. It does not verify that a tax ID is registered or that goods were delivered.
    • Judging "vague payment terms" is advisory only, not a deterministic check.

    Planned (not in v1 — listed for transparency)

    PO matching (2-way/3-way), accounting exports (Xero/QuickBooks), batch folder organization.

    Languages: tested on Arabic and English invoices (photos, scans, PDFs).

    Handwritten receipts have lower accuracy. Heavily blurred images will trigger a review request. Does not verify external data like tax ID registrations or bank account status.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 8 days ago

    • Free with an Agensi account

    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed8 days ago

    What's inside

    Frequently Asked Questions

    The skill extracts line-item data into JSON, then runs a deterministic Python audit to verify that the math (quantity × price + tax) matches the printed total, flagging any discrepancies for your review.

    The skill supports PDF, PNG, JPG, and HEIC files, making it compatible with everything from professional digital invoices to mobile photos of paper receipts.

    Yes, it supports English, French, and Arabic documents, including the ability to normalize Arabic-Indic numerals into standard digital formats for your spreadsheets.

    You will receive the core extraction logic, the `validate_invoice.py` script for arithmetic auditing, and the `export_invoice.py` utility for generating CSV and Excel reports.

    This skill requires Python 3.9 or higher and the `openpyxl` library if you intend to export data directly to Excel format.

    While the skill is highly accurate with printed text, it is not optimized for handwritten notes; blurred or handwritten fields will be flagged as 'null' to ensure you don't process inaccurate data.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.

    Free