/cpa-skills:consolidation-rollupfrom cpa-skills
Consolidates multiple entities' trial balances into one consolidated TB by mapping chart of accounts, translating FX with a formula-driven cumulative translation adjustment (CTA), and posting elimination entries. Every consolidated figure is traced to its entity source.
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.
A consolidated trial balance is a parent entity's TB, every subsidiary's TB translated into one reporting currency, and a layer of elimination entries — summed by consolidated line and proved to tie. Each of those three pieces has its own, separate failure mode: a chart-of-accounts mapping gap silently drops an account from the consolidation while every entity's own TB still balances; a translation that uses one rate for the whole balance sheet manufactures an imbalance that has nothing to do with CTA; and an elimination entry that does not itself balance corrupts every consolidated line it touches. This skill tests each piece on its own terms before it lets the pieces combine.
A cumulative translation adjustment is a formula, not a plug. Translating assets and
liabilities at the closing rate, revenue and expense at the average rate, and equity at a
historical rate is required by the mechanics of foreign currency translation — and it
necessarily leaves each entity's own translated trial balance out of balance by an exact,
derivable amount. That residual is the cumulative translation adjustment under ASC 830 / IAS
21. It is computed here strictly from the rates you supplied in mapping.csv and fx_rates.csv,
reported as its own named equity line, and it is never used to absorb anything else. An unmapped
account and an unbalanced elimination entry are not CTA — they are gate failures, reported as
such, never quietly netted into the one number that is allowed to be a residual.
No clean consolidated TB unless:
trial-balance-integrity first.entry_id. An entry whose debits and credits
do not agree is excluded from the consolidation entirely — none of its lines post — never
applied half-complete.--ic-status is supplied. A pair that is not RECONCILED keeps that
elimination provisional, not final.ownership_pct under 100 is flagged in the Summary and the memo; the NCI entry is a separate
journal entry you supply through --elimination-entries, not something this script computes.
Deciding how NCI should be presented is a judgment call outside the mechanical layer — see
AGENTS.md rule 4.elimination-entries.csv gives it and checks that each entry balances. Run intercompany-recon
first to prove the amount, and feed its proven, already-translated position in here.entity_id, entity_name, functional_currency, ownership_pct. ownership_pct
is optional and defaults to 100; anything else is flagged as an NCI exception.entity_id, account_number, account_name, debit, credit. Every entity_id referenced here must appear in entities.csv
first.entity_id, account_number, consolidated_code, consolidated_line, stmt_type. entity_id may be * to apply to any entity not matched more
specifically by its own ID — useful when entities share a chart of accounts.
stmt_type (asset | liability | equity | revenue | expense) is what selects the translation
rate, so get it right: it is a mechanical lookup, not a label.currency, rate_type, rate_to_reporting where rate_type is closing, average, or
historical. Closing and average are mandatory; historical falls back to closing, flagged,
if omitted.entry_id, consolidated_line, stmt_type, debit, credit, description, entity_a, entity_b, source. These post directly against a consolidated line in
reporting currency — the standard worksheet treatment for investment elimination, intercompany
AR/AP elimination, intercompany profit elimination, and any other consolidating entry.
entity_a/entity_b are optional; populate both on an intercompany elimination so it can be
checked against --ic-status.entity_a, entity_b, status, e.g. intercompany-recon's own
Pair Summary tab exported to CSV. Confirm before running: is this the current period's
recon, not a prior period's?python3 scripts/consolidation_rollup.py \
--entities entities.csv --trial-balances entity_tb.csv --mapping mapping.csv \
--fx-rates fx_rates.csv --reporting-currency USD \
--elimination-entries elimination_entries.csv --ic-status ic_pair_status.csv \
--client "Acme Group" --period "2026-09" \
--out "Acme Group - 2026-09 Consolidated TB.xlsx"
The script runs the six gate tests in order, translates every mapped account using the rate its
stmt_type implies, computes each currency-translated entity's CTA as the exact balancing
residual, applies the elimination entries that balance, and refuses a clean result if anything
above failed. The filename gets an [INCOMPLETE] suffix whenever it does.
The FX & CTA tab shows, per entity, the translated debit and credit totals that produced its CTA figure. Two things are worth checking before you move on:
consolidation_unmapped.csv lists every TB account the mapping did not recognize, by entity,
with its raw functional-currency balance. Add the missing (entity_id, account_number) rows to
mapping.csv — or a * row if the account exists identically across entities — and re-run.
Nothing is translated or consolidated for an unmapped account; it simply does not appear in the
Consolidated Trial Balance until it is placed correctly. A wrong placement is worse than a missing
one, so the script never guesses a stmt_type or a line for you.
Workbook tabs:
entity_a and entity_b.Then, in chat: whether the gate passed, the consolidated total, the CTA by entity, and any unmapped accounts or provisional eliminations — lead with whichever of those is blocking a clean result.
stmt_type that disagrees across entities for what should be the same consolidated line
(flagged as a conflict on the Consolidated Trial Balance tab) — this means two entities'
mappings disagree about whether an account is, say, a liability or equity, which the script
cannot resolve on its own.intercompany-recon flags, one layer up.Fully local: standard library plus openpyxl. No network calls, no uploads, no telemetry. Entity
names, balances, and ownership structure 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
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