Works with the AI Agents you already use
Structura: Invoices and Receipts to Validated JSON
Turns invoices, receipts and bank statements into schema-valid JSON where every field cites its source text, and a deterministic validator refuses anything that does not reconcile.
$9
What it does
- Turns an invoice, receipt or bank statement into JSON
- Quotes the exact source text behind every value
- Checks totals, types and dates before returning anything
- Refuses the document when the numbers do not reconcile
- Leaves a field empty instead of guessing a value
- Works on text your agent has already extracted
Who it's for
Bookkeepers importing supplier invoices
Turns each invoice into JSON with a quote for every number, so an import can be traced back.
Try asking: “Turn this invoice into validated JSON for my ledger import”
Freelancers filing expense receipts
Converts a receipt into fixed-schema JSON and flags any total that does not reconcile.
Try asking: “Extract this receipt and tell me if the total adds up”
Auditors checking extracted figures
Shows the source line behind every value and refuses records that fail the arithmetic check.
Try asking: “Extract this statement and show where each balance came from”
Developers building document imports
Outputs schema-valid JSON with evidence spans, so an import fails loudly instead of quietly.
Try asking: “Convert this receipt to JSON that passes validation”
Structura: Invoices and Receipts to Validated JSON
Example session with this skill installed
Extract the document in document.txt into validated JSON.
- Read your context and instructions
- Compiled the structura
structura: pass — 18 passed, 1 skipped, 0 failed
{
"vendor": "MADISON Hotel GmbH",
"invoice_number": "474081",
"issue_date": null,
"due_date": null,
"currency": "EUR",
"subtotal": 514.02,
"tax_amount": 35.98,
"total_amount": 550.0,
"line_items": [
{ "description": "Übernachtung exklusive Frühstück*", "quantity": null, "unit_price": null, "amount": 110.0 },
{ "description": "Übernachtung exklusive Frühstück*", "quantity": null, "unit_price": null, "amount": 110.0 },
{ "description": "Übernachtung exklusive Frühstück*", "quantity": null, "unit_price": null, "amount": 110.0 },
{ "description": "Übernachtung exklusive Frühstück*", "quantity": null, "unit_price": null, "amount": 110.0 },
{ "description": "Übernachtung exklusive Frühstück*", "quantity": null, "unit_price": null, "amount": 110.0 }
]
}
Notes from the run
- issue_date is null because the invoice prints a two-digit year (14.09.18);
a century would be a guess. - due_date is null: no payment terms are printed. Anreise/Abreise are stay dates.
- Lines are tax-inclusive (5 × 110.00 = 550.00 gross), so this used the
tax-inclusive invoice schema; the Mastercard settlement row is not a line item. - The scan's customer address is garbled OCR, but vendor, amounts, totals and
invoice number are legible, so extraction proceeded.
Connects securely to your tools. The creator never sees your data.
About this skill
Structura turns one messy document into JSON you can act on — and proves it field by field.
Every non-null value must quote the exact text it came from, and a small deterministic script checks each quote against the source before anything reaches you. Types, enums, dates and totals are checked too. If the numbers don't reconcile, you get a refusal with reasons instead of a plausible-looking guess.
Most extraction tools return JSON that looks right. Structura is built for the case where looking right is not enough: bookkeeping imports, expense claims, audits, anything where someone will ask "where did this number come from?"
Five schemas ship: invoices with tax-exclusive lines, invoices with tax-inclusive lines, receipts in both forms, and a bank statement schema that checks every row chains from the opening to the closing balance.
It works on text. It does not parse PDFs or images itself — your agent reads the file and hands the text over. The protocol is harness-agnostic: any agent that can read a file and run a Python script follows the same steps.
- Text only. No PDF or image parsing, no OCR. Your agent reads the file; the
skill validates the text. - Five schemas. Invoices, receipts and bank statements, each in the tax form
that suits it. Other document types are refused at routing rather than guessed. - Provenance, not truth. Every value is traceable and internally consistent.
That is not the same as correct: a document that is itself wrong will be
extracted as printed. - One document per run. No multi-page stitching.
- Refusal is a valid outcome. When totals cannot reconcile, the skill reports
the failure instead of the data. - Tested harnesses. Exercised end to end on DSH subagents and OpenCode 2.4.4 —
the pass, fail and refusal paths, an illegible scan, and a document carrying
injected instructions. Compatibility comes from the protocol, not the harness:
it needs a file read and a standard-library Python script, both of which the
agent already provides.
Structura is a protocol plus a single standard-library Python script. Your agent reads the document text, routes it to one of five schemas (invoice with tax-exclusive or tax-inclusive lines, receipt in both forms, bank statement), extracts each value with the quote and character span it came from, and normalises the value without touching the quote. The validator takes one JSON envelope on stdin — source, schema, data, evidence — and returns a report on stdout. It checks each quote against the source, then types, enums, dates, required fields and the schema's arithmetic invariants. On failure the agent may repair only the failing paths, twice, then it refuses. Runs on Python 3.9+ (verified on 3.9.25 and 3.12). No installs, no network, no environment variables, no files written. Exercised end to end on DSH subagents and OpenCode 2.4.4.
How to use
- 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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
Python 3.9+
Permissions
Reads one JSON envelope on stdin and writes a report to stdout. No network access, no environment variables read, no files written.
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.