AgentStack
SKILL verified MIT Self-run

Invoice Parsing

skill-larsroettig-skillspector-quality-good-skill · by larsroettig

Parses invoices and extracts totals, line items, and vendor details from PDFs.

No reviews yet
0 installs
13 views
0.0% view→install

Install

$ agentstack add skill-larsroettig-skillspector-quality-good-skill

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Invoice Parsing? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Invoice Parsing

This skill extracts structured financial data from invoice documents. It identifies the vendor, enumerates line items, and reconciles the declared total against the computed sum so downstream automation can trust the numbers.

Overview

  • Identify the vendor name, address, and invoice number from the header region.
  • Extract every line item — description, quantity, unit price, and amount — into a table.
  • Compute the subtotal, apply tax, and verify the printed grand total matches.

Steps

  1. Read the uploaded document and detect whether it is a scanned image or native text.
  2. Classify the invoice layout against the known vendor templates.
  3. Extract each field into a normalized JSON structure with explicit types.
  4. Validate arithmetic: the line-item sum plus tax must equal the stated total.

If a required field is missing, fall back to a clearly marked placeholder and flag the record for human review. When the layout is ambiguous or two templates match equally well, ask the user to confirm the vendor before continuing.

Output

Return a JSON object containing the vendor block, the ordered list of line items, the computed totals, and a confidence score for each extracted field.

from scripts.parse import parse_invoice

result = parse_invoice(document_text)

Run scripts/parse.py for the reference implementation. See [reference](reference.md) for the full field dictionary and [examples](examples.md) for worked input/output pairs.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.