/cpa-skills:commission-recalcfrom cpa-skills
Recomputes sales commissions from bookings against a tiered comp plan, splitting deals across tier boundaries, and reconciles recomputed totals to payroll by rep and period, reporting each discrepancy individually.
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 recomputes commission from the comp plan's own tiers — nothing here is a flat or assumed rate. Three conventions are stated here because they're load-bearing and otherwise invisible:
rate_pct is a percentage (5 means 5%), applied as rate_pct / 100 times the dollar amount
apportioned to that tier.tier_max_amount means "and above" — unbounded, not a guessed ceiling.YYYY-MM) of its close_date. The payroll register's own period column must use that same
format to tie out — a register using a different period convention shows up as non-matching
rather than being forced to align.Commission tiers reset to zero at the start of each comp plan period (plan_effective_date) and
accumulate chronologically, by close_date, within that period.
Hard gate — blocks the workbook unless --force:
Soft exceptions — routed to the Exceptions tab, workbook still produced:
close_date matches zero or more than one comp plan period for that rep — never
defaulted to the nearest plan.rate_pct. The entire plan period is treated as
incomplete — every deal that falls in it becomes an exception, because once a rate is undefined
mid-schedule, cumulative-based tier placement for later deals in that period can no longer be
trusted.Recomputed vs. paid is reported per rep, per period, on its own row — every discrepancy stands on its own dollar effect, never netted against another rep or period.
rep, deal_id, amount, close_date.rep, plan_effective_date, plan_expiry_date, tier_min_amount, tier_max_amount, rate_pct. One row per tier; rows sharing the same rep and plan dates form
one plan period.rep, period, commission_paid.python3 scripts/commission_recalc.py --template --out bookings_template.csv
python3 scripts/commission_recalc.py \
--bookings bookings.csv --plan comp_plan.csv --payroll payroll.csv \
--client "Northwind Systems Inc" \
--out "Northwind - Commission Recalc.xlsx"
A deal that crosses a tier boundary is apportioned across every tier it touches, at that tier's own rate, based on the rep's cumulative booked amount in the plan period before this deal plus the deal's own amount. The Recalculated Schedule tab shows the cumulative range before and after each deal and the exact tier breakdown that produced its commission — so a disputed number can be walked back to the specific tier math, not just a final figure.
Workbook tabs: Recalculated Schedule (every deal, cumulative range, tier breakdown, commission, payroll period), Payroll Tie-Out (recomputed vs. paid by rep/period with a tie/break flag), Discrepancies (every break, sorted by dollar effect, descending), Exceptions (unmatched or overlapping plans, incomplete plan periods, uncovered tier gaps).
Then, in chat: the gate result, total deals recomputed and exceptions, then the discrepancy list with dollar effects — that's the number that settles the argument about the spreadsheet.
Fully local: standard library plus openpyxl. No network calls, no uploads, no telemetry.
Compensation, rep, and deal data 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
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