/cpa-skills:return-yoy-variancefrom cpa-skills
Performs line-by-line year-over-year variance analysis on tax returns or financial statements, requiring causal explanations for material movements and challenging unexpected zero variances.
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 purpose is not to list what changed. It is to reach the point where every material movement has a named cause, and every material non-movement has been challenged.
That second half is what separates this from a spreadsheet subtraction. Most reviewers scan for big changes and stop. The errors that survive review are usually the opposite pattern: a figure that is identical to last year because nobody updated it — a depreciation amount, an allocation percentage, a state apportionment factor, an accrual that was rolled forward because it was easier than recomputing it. A zero variance is a finding until you have confirmed it should be zero.
An explanation is causal and quantified. Direction is not an explanation.
If the components don't sum to the variance, the explanation is incomplete and the remainder stays visible as unexplained. Do not let the last 15% of a variance disappear into "other."
Confirm both years are on a comparable basis before comparing: same entity, same accounting method, same period length, same chart of accounts. A short period, a method change, or an account restructuring makes raw variances meaningless — normalize first and disclose the normalization, or the entire schedule misleads.
Align current-year lines to prior-year lines. Three outcomes, and the last two matter most:
Where the chart of accounts was restructured, map old to new explicitly and show the mapping. Do not silently absorb a restructuring into the variances.
python3 scripts/yoy_compare.py \
--current cy.csv --prior py.csv \
--explanations explanations.csv \
--dollar-threshold 25000 --percent-threshold 10 \
--absolute-floor 5000 \
--client "Acme Holdings LLC" --cy-label "TY2025" --py-label "TY2024" \
--out "Acme Holdings - TY2025 vs TY2024 Variance.xlsx"
Input CSVs: line_id, statement, caption, amount, and optional form, line_ref,
group, activity_changed (yes/no/blank — see the unchanged test).
Materiality is dual, and both tests must be satisfied to be immaterial. A variance is material if it exceeds the dollar threshold or the percent threshold, subject to an absolute floor below which percent is ignored. This matters: a 400% swing on a $200 account is noise, while a 3% move on an $8M revenue line is not. A single test alone produces either an unusable list or a false sense of coverage. Set thresholds by engagement judgment and record them — they are part of the workpaper.
Regardless of threshold, these are always flagged for explanation:
activity_changed = yes on any line whose underlying facts moved (revenue grew, assets
were bought or sold, headcount changed, the entity entered a new state). If the amount
didn't move and the activity did, the script flags it. Depreciation identical to last year
after a year of capital additions is not a coincidence.Individual line variances miss errors that only show up as broken relationships. Run these and explain any that break:
The script writes unexplained.csv listing every flagged variance with no explanation. Fill
in cause, components (which must sum to the variance), evidence, and owner, then
re-run with --explanations. The script reports the explanation coverage rate — the
percentage of flagged dollars explained — and refuses to mark the analysis complete below
100% of flagged items. Partial coverage is reported honestly rather than smoothed over.
Where a variance is explained by a client-provided reason you have not corroborated, mark
evidence = client representation. That is a legitimate but weaker basis and the workpaper
should distinguish it from an explanation tied to a document. Reviewers need to know which
is which.
Workbook tabs:
Then, in chat: the three or four variances that actually matter, in plain language, with their causes — followed by what remains unexplained and who owns it. Lead with the unexplained items if there are any. A partner reading this wants to know what to ask the client, not to re-read the schedule.
Some patterns are worth escalating rather than explaining:
Raise these as observations with the facts you have. Do not characterize intent.
Fully local. No client financial or tax data leaves the machine. Inputs read-only.
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