/cpa-skills:invoice-codingfrom cpa-skills
Proposes GL account coding for vendor invoices using historical coding frequency and chart of accounts. Routes uncertain invoices (new vendors, decommissioned accounts, low confidence) to an exception queue. Runs fully local.
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.
This skill assumes invoice text has already been extracted into structured rows — it proposes coding from that structured data, it does not perform PDF or inbox parsing itself. Its job is the coding decision: which account, on what basis, and at what confidence — never a guess dressed up as a model score.
A proposal is not "coded" until it is earned by history and a usable account. The script refuses to produce a clean workbook when:
invoice_id makes the population ambiguous and is rejected outright.A vendor with no historical coding, a proposed account that is missing or inactive in the chart
of accounts, and anything below --min-confidence are not gate failures — they are the
exception queue working as intended, and the workbook is written with them clearly flagged.
invoice_id, vendor, amount, invoice_date, line_description.account_code, account_name, active (active: y/n).vendor, account_code, invoice_count, a frequency table of how often
each vendor was coded to each account historically.python3 scripts/invoice_coding.py --invoices invoices.csv --coa chart_of_accounts.csv \
--historical historical_coding.csv --min-confidence 60 \
--client "Northwind Systems Inc" \
--out "Northwind - Invoice Coding Register.xlsx"
Omit --min-confidence only if you deliberately want no confidence floor — every
historically-coded vendor with an active account then gets auto-coded, and only brand-new
vendors or inactive/missing accounts land in the exception queue. Stating a floor explicitly is
the safer default for anything going straight to posting.
Confidence is a real, auditable statistic, not an invented score: it is the share of a vendor's
historical invoice count that went to the account being proposed. A vendor coded to one account
100% of the time in history gets 100% confidence; a vendor split 60/40 between two accounts gets
60% confidence on the majority account and the minority 40% is simply the alternative not taken.
The basis column on the register always shows the underlying count (8/10 historical invoices to 6100), so a reviewer can second-guess the proposal without re-deriving it.
Workbook tabs:
Then, in chat: the coded/exception split, the confidence floor applied, and anything that blocked the gate. Name the largest-dollar exceptions first — that's where review time belongs.
Report each as a fact with the record reference. Do not characterize intent — describe what the data shows and let the reviewer decide.
Fully local: standard library plus openpyxl. No network calls, no uploads, no telemetry.
Vendor and invoice data never leave the machine.
pip install openpyxl
Built by Adopt AI — free to use and modify.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
43 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./arr-waterfallBuilds the ARR/MRR movement waterfall (new, expansion, contraction, churn) from a subscription export and the prior period's ending ARR, closes the arithmetic identity between beginning and ending ARR, and ties ending ARR to recognized revenue — refusing to deliver when the waterfall doesn't close or ending ARR doesn't tie to the GL. Use this whenever the user mentions the ARR waterfall, MRR movement, new/expansion/contraction/churn classification, the SaaS board metric, or ARR rollforward. Also trigger on "build the ARR waterfall," "what's our net revenue retention," "classify these customers as new/expansion/churn," "tie ARR to revenue," or when current and prior-period subscription exports are supplied together. Commonly paired with `deferred-revenue-waterfall` (customer ARR movement vs. the GL deferred balance) and `revenue-trace-to-source`. Runs fully local./audit-samplingSelect an audit sample from a population using monetary unit (PPS), stratified, or random attribute sampling — with the sample size derived from stated parameters, a recorded random seed so the selection can be re-performed exactly, and a prepared testing worksheet. Use this whenever the user mentions audit sampling, selecting a sample, sample size, MUS or PPS or monetary unit sampling, statistical sampling, haphazard selection, stratifying a population, testing a sample of transactions, projecting misstatement, or asks how many items to test. Also trigger on "pick a sample of invoices," "select items for testing," "how big should my sample be," "select 40 disbursements," "sample the AR balances," "extrapolate the error," or when a population export is provided for testing. Runs fully local — no client population data leaves the machine./audit-workpaperBuild an audit workpaper that documents the objective, the population and how it was obtained, the procedures performed, the evidence examined, the exceptions found, and a conclusion — and validate that the conclusion is actually supported by what was documented, refusing to accept "no exceptions noted" when exceptions exist or a conclusion reached with no evidence recorded. Use this whenever the user mentions audit workpapers, working papers, audit documentation, a workpaper template, documenting a procedure, evidence and conclusions, tickmarks, workpaper review notes, sign-off, or preparing documentation for inspection or peer review. Also trigger on "write up this workpaper," "document this procedure," "build a workpaper," "does this workpaper support the conclusion," "prepare this for review," or when procedure results need to be turned into documentation. Runs fully local — no client data leaves the machine./balance-sheet-recon-packBuild the balance sheet reconciliation pack across the full chart, not just cash — for every asset, liability, and equity account, prove GL balance equals supporting schedule plus itemized items, with an unexplained difference that must be zero and a sign-off requiring a named preparer and reviewer before an account counts as reconciled. Use this whenever the user mentions a balance sheet reconciliation pack, the rec pack, the close binder or tie-out binder, reconciling every balance sheet account, which accounts are reconciled this month, or asks which accounts still need a schedule or a sign-off. Also trigger on "build the rec pack," "reconcile the whole balance sheet," "tie every account to its schedule," or when a trial balance and account-level schedules are provided together. For deep transaction matching on one cash account, use bank-rec-to-gl instead — this pack assembles that result, and every other account's, into one full-chart proof. Runs fully local — no client data leaves the machine.npx claudepluginhub adoptai/cpa-skills --plugin cpa-skillsOther plugins' skills for the same job