/cpa-skills:intercompany-reconfrom cpa-skills
Reconciles intercompany AR/AP balances across multiple entities, matching mirror legs with FX tolerance, flagging mismatches by cause (timing, FX, missing entry, data error), and proposing elimination entries only for tied portions. 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.
Two entities' books independently record the same economic event, usually in two different
currencies, and they are expected to disagree slightly for reasons you can name — then agree
exactly once those reasons are accounted for. That is the same discipline as bank-rec-to-gl,
generalized across entities instead of across a bank statement and a GL. The elimination entry a
controller needs for consolidation is worthless until the mismatch behind it is explained; this
skill produces the explanation first and the entry second.
Never plug, and never let FX tolerance quietly substitute for proof. Matching across currencies has to be forgiving — two entities translating the same invoice through different rate dates will never agree to the penny — but "close enough to match" is not the same as "explained." Every amount left over after matching, and every matched pair that paired only within tolerance rather than exactly, is carried forward as a visible discrepancy that needs a confirmed classification before it is excluded from the unexplained total. A pair that happens to net to zero with unclassified items underneath it is coincidence, not proof, and this skill will not call it reconciled.
A pair is not RECONCILED, and the pack is not COMPLETE, unless:
timing_in_transit,
fx_difference, missing_entry, or data_error. Nothing is excluded from the unexplained
total just because a human hasn't looked at it yet.unidentified never clears the gate. It is the one classification that is itself the
finding, not a resolution — same posture as bank-rec-to-gl's unidentified withdrawal.--expected-pairs is supplied, every expected pair must appear — an entity pair with no
activity on either side is NOT RECEIVED, not silently absent.AGENTS.md rule 4.fx_difference, exactly the gap that
using a single period rate instead of each entity's own transaction-date rate will create.je_entity
and je_required flag in the Mismatch Queue; posting them is the preparer's or the close
process's job.balance-sheet-recon-pack for proving one entity's own balance sheet ties
to its subledgers. This skill proves two or more entities agree with each other; the
elimination entries it proposes are an input to consolidation, not the consolidation itself.You need at least one of transactions or balances, plus the entity list:
entity_id, entity_name, functional_currency. Every entity referenced
anywhere else must appear here first.currency, rate_to_reporting. One rate per currency for the period, applied uniformly. Never
let the script assume 1:1 for a currency it has no rate for; it refuses to run instead. This
is a translation convenience for comparison, not a transaction-date rate, and the gap between
the two is exactly what fx_difference exists to catch — do not treat it as a bug when a
genuinely matched pair doesn't tie to the penny.entity, counterparty, doc_id, date, description, amount. Amount is signed from
the recording entity's own perspective: positive means the counterparty owes this entity,
negative means this entity owes the counterparty.entity, counterparty, amount, as_of. Works alone (coarse, pair-level tie-out
with no transaction detail) or alongside transactions, in which case the subledger must sum to
the stated balance — a gap there means the subledger is incomplete or the balance is wrong,
and it is flagged before you rely on anything downstream.entity_a, entity_b — for coverage, so a relationship with zero
activity submitted by either side is caught rather than silently skipped.Confirm before running: every entity that appears in the data is in entities.csv, and the
reporting currency is the one consolidation actually uses.
python3 scripts/ic_recon.py \
--entities entities.csv --fx-rates fx_rates.csv --reporting-currency USD \
--transactions transactions.csv --balances balances.csv \
--as-of 2026-01-31 --period "2026-01" --client "Acme Group" \
--out "Acme Group - 2026-01 Intercompany Recon.xlsx"
For every pair of entities with any recorded activity between them, the script mirrors one
side's legs (negates them) so a genuinely matching transaction lines up as equal amounts, then
runs the same cascade bank-rec-to-gl uses — strongest evidence first, and a leg leaves the pool
once matched so a weaker rule can never steal it from a stronger one:
| Pass | Rule | Notes |
|---|---|---|
| 1 | Doc ID match | Matches regardless of amount — a doc-ID match with a differing amount is itself a finding, carried forward as a variance, not silently accepted or rejected. |
| 2 | Amount (within FX tolerance) + exact date | |
| 3 | Amount within tolerance + date within tolerance | Default ±5 days. |
| 4 | Amount within tolerance + description token overlap | |
| 5 / 6 | Many-to-one / one-to-many | Batched intercompany settlements, common with shared-services recharges. |
The script does not decide what an unmatched item or a matched-but-inexact pair means. Classification is judgment and it is where the value of a controller's review actually sits.
Run the script once, open ic_unmatched.csv (same rows as the workbook's Mismatch Queue tab),
and classify each row:
timing_in_transit — recorded by one entity, not yet by the other, and expected to true up
next period on its own. Record the expected resolution date so a reviewer can confirm it
actually cleared.fx_difference — both entities recorded it; the translated amounts differ because each
side's books (or this reconciliation's single period rate) used a different rate. Legitimate,
but it needs a destination — usually the correcting entity's own books or cumulative
translation adjustment, not this pack's elimination entry.missing_entry — the counterparty never recorded it at all. Needs a JE at the deficient
entity; set je_entity to whichever entity should book it (defaults to the counterparty of the
leg that does exist, if left blank).data_error — wrong amount, wrong period, wrong account, duplicate. Needs a correcting JE,
not a reconciling item that rolls forward untouched.unidentified — the one you must never bury. Escalate regardless of amount; the absence of
an explanation is the test, not materiality, same as bank-rec-to-gl.Feed the completed file back in:
python3 scripts/ic_recon.py ... --classifications ic_unmatched.csv --out "..."
Each pair shows both entities' positions already mirrored into the same frame — "per A: B owes
A" and "per B: B owes A" — so a tie means the two numbers are equal, not opposite. Status moves
through NOT RECEIVED (no activity from either side, only meaningful with --expected-pairs),
UNCLASSIFIED ITEMS, UNIDENTIFIED, EXCEPTION, up to RECONCILED only once every discrepancy
for that pair has a confirmed, non-unidentified classification. Do not read a zero "unexplained
difference" as reconciled if the pair still shows unclassified items underneath it — that
combination means the zero is coincidental, and the workbook will say so.
For each pair, once reconciled (or for whatever portion of an unreconciled pair is already
proven), the script proposes a consolidation elimination at the adjusted position — the
balance each entity's books will show once every confirmed timing_in_transit / missing_entry
/ data_error item posts, not the raw, as-recorded balance. An fx_difference classified on a
matched pair is deliberately excluded from the entry itself and called out separately, since it
represents translation noise on an already-agreed transaction, not an amount to eliminate or
correct through this pack. Any amount that isn't yet explained stays out of the proposed entry
entirely and is shown as an unresolved residual — this skill will eliminate the proven amount and
tell you what's left to resolve, but it will not eliminate a guess.
Workbook tabs:
Then write a short memo in chat: how many pairs, how many reconciled vs. not, the total unidentified amount (if any — lead with this), the proposed eliminations and their total, and any pair with no activity submitted when one was expected.
unidentified item, regardless of size.fx_difference large enough to suggest the entities aren't actually using a consistent
rate policy — that's a process finding for the close calendar, not just this period's noise.Fully local: standard library plus openpyxl. No network calls, no uploads, no telemetry. FX
rates, entity names, and balances 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