Viprasol-Tech/invoice-extractor ? reverse-engineered prompt

Reverse engineered prompt

Build me an agent skill that can take an invoice, receipt, or bill from a PDF, image, or pasted text and turn it into clean validated JSON.

I want it to pull out the vendor, bill to details, invoice number, dates, line items, totals, tax, payment terms, and any payment info, then normalize dates, amounts, and currency into a consistent format. It should also check the math, like line items against subtotal and subtotal against total, and clearly flag anything that does not add up instead of guessing or silently fixing it.

Please make the output strict and predictable, with confidence notes for unclear fields and a short human readable summary of any issues. It should handle common cases like invoices, receipts, purchase orders, credit notes, and proformas, and keep missing fields as null. If you need to look up current docs or best practices online, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab