/cpa-skills:cash-flow-tieoutfrom cpa-skills
Builds or verifies an indirect-method statement of cash flows by deriving each working capital movement from the balance sheet and flagging any unexplained residual. Useful when a cash flow statement doesn't tie or needs audit-level proof.
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.
The statement of cash flows is the only primary statement that must reconcile to another one by construction. Net income plus adjustments plus working capital movements, across all three sections, has to equal the change in cash on the balance sheet. There is no judgment in that requirement — it either foots or it does not.
Which is exactly why it is so often wrong. It is usually prepared last, under time pressure, by plugging whichever line nobody will question. The plug hides inside "changes in other assets and liabilities" or "other operating activities," and it survives review because reviewers check that the bottom line agrees to cash rather than checking that each line agrees to the balance sheet.
So this skill derives each working capital movement from the balance sheet itself and compares it to what the statement claims, rather than accepting the statement's own numbers.
No clean statement unless:
Every difference must be attributed to a named cause. The legitimate reasons a working capital movement differs from the raw balance sheet change are finite and knowable:
If a difference cannot be placed in one of those buckets, it is not explained. Report it. The script will not let it disappear into a caption.
python3 scripts/cash_flow.py \
--balance-sheet bs.csv \
--income-statement is.csv \
--noncash noncash.csv \
--investing-financing invfin.csv \
--adjustments adjustments.csv \
--client "Latham Industrial Group" --period "FY2025" \
--out "Latham - FY2025 Cash Flow Tie-Out.xlsx"
Six tests:
Sign errors are the second most common failure after plugging, and they are easy to get wrong because the logic inverts between assets and liabilities:
| Account moves | Cash effect |
|---|---|
| Operating asset increases (AR, inventory, prepaid) | Outflow — cash was consumed |
| Operating asset decreases | Inflow |
| Operating liability increases (AP, accruals, deferred revenue) | Inflow — payment deferred |
| Operating liability decreases | Outflow |
The script applies this from each account's declared type, so a misclassified account produces a sign error you can trace rather than a mystery. Check the account types before reading the result — an account typed as a liability when it is a contra-asset will flip its contribution and the statement will still foot, because the error is inside the section.
A doubled sign error is the nastiest case: two accounts wrong in opposite directions leave the statement footing perfectly while both sections are misstated. Test 3's line-by-line derivation is what surfaces it.
Section classification is judgment in a handful of recurring places, and the script flags them rather than deciding:
These are flagged as judgment items with the amounts involved, for the person signing.
Workbook tabs:
0.00. The signable page.Then, in chat: whether it foots, the change in cash, the three sections, and any line where the derived figure disagrees with what was presented. Lead with the disagreement — that is the finding, not the total.
Fully local: standard library plus openpyxl. No network calls, no uploads, no telemetry.
pip install openpyxl
Built by Adopt AI — free to use and modify.
What SKILL.md sets; muted values are Claude Code's defaults
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