/cpa-skills:duplicate-payment-scanfrom cpa-skills
Scans full AP invoice/payment registers for duplicate-payment candidates across four risk-ranked tiers, with every finding traceable to source rows. Use when reviewing 12+ months of AP data for overpayments.
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.
Findings here are self-evidently valuable — every confirmed duplicate is recoverable cash. The discipline is in proving each finding with the actual matched rows rather than asserting "duplicate" and moving on.
The scan refuses to produce a clean workbook when:
record_id is duplicated in the source file. Row identity must be unambiguous before
any finding can reliably point back to a specific transaction.A row with an unparseable amount or date is not itself a gate failure — it is excluded from matching and listed, with its reason, on the Unscanned/Unparsed Rows tab, so the scope limitation is visible rather than silently absorbed into a clean-looking result.
AP invoice and payment register (12+ months) — one file, one row per invoice or payment
event: record_id, vendor, amount, invoice_date, invoice_no, payment_date, payment_ref.
invoice_no, payment_date, and payment_ref may be blank on any given row.
python3 scripts/duplicate_payment_scan.py --register ap_register.csv --window-days 5 \
--client "Northwind Systems Inc" \
--out "Northwind - Duplicate Payment Scan.xlsx"
--window-days has no built-in default — state the proximity window you actually want checked
(a tighter window for weekly-run AP, a wider one for monthly-batch AP) rather than relying on a
number this skill would otherwise have to invent.
| Tier | Match | Why it's ranked there |
|---|---|---|
| 1 | Exact vendor + amount + invoice_no duplicated | The same invoice number paid twice for the same vendor and amount is close to unambiguous — the highest-confidence finding in the set. |
| 2 | Exact vendor + amount + date within the window | Same vendor, same amount, close in time, different invoice numbers — classic re-submission or re-entry duplicate. |
| 3 | Same amount + date within the window, vendor name a normalized variant of another (e.g. "Acme Supply Co" vs. "Acme Supply") | Catches duplicates hidden by vendor-master inconsistency — often the hardest tier to find by eye and the one worth the normalization log. |
| 4 | Same payment_ref reused across different invoice numbers | A check or EFT reference applied to more than one invoice is either a batching convention or a posting error — always worth a look. |
Each finding carries the matched records' row references and fields, never a bare assertion.
Workbook tabs:
Then, in chat: the population scanned, total dollars at risk by tier, and the highest-tier findings first. State plainly if the unscanned count is material — a scan with a large unparsed population proves less than it appears to.
Report each as a fact with the record references. Do not characterize intent — the scan reports pattern and evidence, never motive.
Fully local: standard library plus openpyxl. No network calls, no uploads, no telemetry.
Vendor and payment 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