/cpa-skills:trial-balance-integrityfrom cpa-skills
Validates trial balance and chart of accounts integrity: checks debits equal credits, maps accounts to financial statement lines, flags duplicates, unused accounts, wrong-direction balances, and misclassifications. 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 is the first thing to run on a new client, a cleanup engagement, or a software conversion, because everything else in this repository assumes the trial balance is sound. A reconciliation, a variance analysis, a cash flow statement, and a tax return are all built on it. If two accounts are duplicates, or an account maps to nothing, the error propagates into every downstream workpaper and is much harder to find there.
Debits equalling credits is necessary and tells you almost nothing. Every accounting system enforces it. What it does not enforce:
No clean workpaper unless:
python3 scripts/tb_integrity.py \
--trial-balance tb.csv \
--mapping mapping.csv \
--prior-year tb_prior.csv \
--client "Halstead Regional Foods" --period "12/31/2025" \
--out "Halstead - 2025 Trial Balance Integrity.xlsx"
Eight tests:
Duplicates are the highest-value finding because they corrupt every analysis silently.
6100 Repairs & Maintenance and 6105 Repairs and Maintenance both have balances, both look
reasonable, the trial balance balances, and every variance analysis on either one is wrong. The
script matches on a normalised name — punctuation, case, spacing, and &/and collapsed — which
is what catches these.
Genuine near-duplicates also exist and are fine: 6100 Repairs - Buildings and
6110 Repairs - Vehicles are legitimately separate. The script flags candidates and does not
merge anything. Which duplicates are real is a judgment about how the business wants to see its
results, and merging accounts changes comparatives, so it is a decision, not a cleanup.
An account with a balance opposite to its type is not automatically wrong. Common legitimate cases:
The script reports the condition and the amount; deciding which are real is judgment, and the workbook leaves a column for the reason.
Workbook tabs:
Then, in chat: whether it balances, how many accounts are unmapped, the duplicate candidates, and the sign exceptions worth investigating. Lead with unmapped accounts and duplicates — those are the two that corrupt everything downstream.
Plug,
Difference, To balance, Conversion, Misc.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
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