invoice-lines
Extract line items from invoice and receipt PDFs into CSV. Use whenever a user wants tabular data (line items, quantities, prices, totals) pulled out of a PDF invoice or receipt.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- invoice-lines
- description
- Extract line items from invoice and receipt PDFs into CSV. Use whenever a user wants tabular data (line items, quantities, prices, totals) pulled out of a PDF invoice or receipt.
02 资源文件 2
- 参考文档grading.json1.0 KB
- 参考文档meta.json206 B
03 SKILL.md 正文
Extract
Run scripts/extract.py <pdf_path>. It writes CSV to stdout with columns vendor,date,sku,qty,unit_price,total.
If the invoice uses a non-USD currency or mixes currencies across line items, add --currency <code> (e.g. --currency EUR) so amounts parse against the right currency instead of as bare numbers.
When extraction fails
Exit code 3 means the PDF has no extractable text layer — it's a scanned image, not real text. OCR it first (e.g. ocrmypdf <in.pdf> <out.pdf>), then run extract.py on the OCR'd file.
Before returning results
Sum the total column and compare it against the total stated on the invoice itself. Extraction is complete only when the two match; a mismatch means a line was split, merged, or missed, and the CSV needs re-checking against the PDF before it's handed back.
04 同仓库更多 Skills
tune
Find and fix real defects in a skill, AGENTS.md, or CLAUDE.md, then prove the description still routes. Runs the bundled token-spending runner, so it starts only on the human's explicit instruction.
skill-tuner
Evidence-tagged rules for writing documents agents consume. Use when creating, editing, or shortening skills, AGENTS.md, or CLAUDE.md.
portfolio
Inventory every skill the agent is shown, with its per-turn listing cost, usage count and visibility knob, then decide one skill at a time whether the model should start it on its own. Reads files only; starts on the human's explicit instruction.
shipit
Release builds with the shipit CLI. Use when releasing or promoting a build to staging or prod, checking a release manifest, or rolling back a shipit deployment.
shipit
Release builds with the shipit CLI. Use when releasing or promoting a build to staging or prod, checking a release manifest, or rolling back a shipit deployment.
shipit
Release builds with the shipit CLI. Use when releasing or promoting a build to staging or prod, checking a release manifest, or rolling back a shipit deployment.