/cpa-skills:receipts-to-expensefrom cpa-skills
Extracts vendor, date, amount, tax, tip, and category from scanned or photographed receipts into an expense spreadsheet. Validates each receipt's line items sum to its printed total, accounts for every image, and ties the population total to a control total like a card statement. Runs fully local OCR.
Ships in cpa-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Receipt extraction is harder than statement extraction and it is worth being honest about why. A bank statement is machine-generated on a consistent template with a text layer. A receipt is thermal paper that has been folded, sat in a wallet, and photographed at an angle under bad lighting. Expect a materially higher exception rate than the bank statement skill produces, and plan for the exceptions to be worked rather than assumed away.
What makes the extraction provable anyway is that most receipts carry their own internal proof: subtotal plus tax plus tip equals the printed total. That check costs nothing, is independent of the OCR, and catches the specific failure that matters — a misread digit in an amount.
No clean spreadsheet unless:
subtotal + tax + tip = total. A break means a digit was misread, and the script names
the receipt.python3 scripts/extract_receipts.py --input receipts/ --out work/
# add --ocr for photographs and scans, which is most of them
Local OCR only. If ocrmypdf/tesseract is not installed the script says so and stops rather
than falling back to a cloud service — these are employee expense records.
OCR vigilance specific to receipts. Beyond the usual digit confusions, watch for:
12.50 into 1250. The internal sum check
catches this, which is most of why it exists.Build one row per receipt with these fields, then validate:
python3 scripts/build_expense_sheet.py \
--receipts receipt_lines.csv \
--control-total 6284.19 \
--card-transactions card.csv \
--employee "A. Reyes" --employee-id E001 \
--period "2025-11" --client "Brightline Media Group" \
--out "Brightline - A Reyes - 2025-11 Expenses.xlsx"
Five tests:
The spreadsheet's Expenses tab uses exactly the schema expense-policy-testing reads:
txn_id, txn_date, employee, employee_id, amount, category, merchant, description, approver, receipt, report_ref, cost_centre, payment_method
So the chain runs straight through:
python3 ../receipts-to-expense/scripts/build_expense_sheet.py ... --csv-out expenses.csv
python3 ../expense-policy-testing/scripts/expense_test.py \
--expenses expenses.csv --policy policy.csv --gl-total 6284.19 --out testing.xlsx
receipt is populated yes on every extracted row, because a receipt image is what produced it —
which means the downstream missing-receipt test is testing the card charges with no receipt, not
these. That is the right way round, and worth stating on the workpaper so nobody misreads a clean
missing-receipt result.
approver, report_ref, and cost_centre are left blank deliberately. They are not on the
receipt, and inventing them would defeat the downstream approval tests.
Workbook tabs:
expense-policy-testing schema, ready to export.Then, in chat: receipts processed, total, whether it ties, the exception count, and anything that needs the employee to be asked. Be candid about the exception rate — on real receipts it will not be zero, and pretending otherwise wastes the reviewer's time.
Fully local, OCR included. No image, no receipt data, and no employee information leaves the
machine. Original images are opened read-only. Intermediate OCR output lands in work/ and can be
deleted after delivery — say so, because receipt images can carry card numbers and the client may
have a retention policy about them.
pip install openpyxl pdfplumber pillow
# local OCR, needed for essentially all photographed receipts:
# macOS: brew install ocrmypdf
# Debian: sudo apt install ocrmypdf tesseract-ocr
Built by Adopt AI — free to use and modify.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub adoptai/cpa-skills --plugin cpa-skills43 skills in this plugin
/accrual-proposalsPropose month-end accruals from open POs received but not yet invoiced (GRNI), recurring vendor spend patterns, and preparer-supplied one-time items, cross-checked against the AP register so nothing is double-booked, with every line carrying a stated basis and an auto-reversal flag for reviewer approval. Never books anything - output is a proposed JE batch for a Controller to approve before it posts to the GL. Use whenever the user mentions month-end accruals, accrual proposals, what should we accrue this month, GRNI, goods received not invoiced, a recurring accrual estimate, or the accrual JE batch for close. Also trigger on "propose accruals," "draft the accrual entries," "what are we missing on the accrual side," or when an open PO report, AP register, or vendor spend history is supplied together at month end. Inverts cutoff-and-unrecorded-liabilities: that proves a search for what was missed is complete; this proposes what to book. Runs fully local - no client data leaves the machine./ar-aging-tie-outTie the accounts receivable aging to the general ledger control account and test it properly — recomputing every ageing bucket from the invoice date rather than trusting the report, grossing up netted credit balances, and flagging stale balances, unapplied cash, and cutoff errors. Use this whenever the user mentions AR aging, accounts receivable aging, tying the aging to the GL, an AR subledger that does not agree to the control account, stale or uncollectible receivables, the allowance for doubtful accounts, unapplied cash or credits, or receivable confirmations. Also trigger on "does our AR aging tie," "reconcile accounts receivable," "which receivables are old," "check the allowance," "why is AR off," "review the aging," or when an AR aging report and a trial balance are provided together. Runs fully local — no customer or receivable data leaves the machine.Other plugins' skills for the same job