/cpa-skills:thirteen-week-cash-forecastfrom cpa-skills
Builds a 13-week direct cash forecast from AR aging, AP aging, payroll calendar, and recurring items, with weekly actual-vs-forecast reforecast mode. Validates placement and arithmetic identity before producing output.
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 direct cash forecast is only as credible as its placement logic. Every dollar in AR, AP, payroll, and recurring items has to land in a specific week — or in an explicit catch-all for anything beyond the 13-week window — and the script proves that placement rather than asserting it.
The script refuses to produce a clean workbook when:
--actuals are compared — a missing week is left out of the Reforecast
Variance tab, never shown as a zero variance.customer, amount, due_date.vendor, amount, due_date.pay_date, amount.description, amount, frequency, next_date, direction. frequency is
weekly, biweekly, or monthly; direction is inflow or outflow.aging_bucket, week_offset, pct_collected_in_week. This is
the client's own judgment about when each aging bucket actually converts to cash, not something
the script invents. Every bucket that appears in the AR file needs a row here.--beginning-balance and --forecast-start — required.--buckets (optional, default 30,60,90) — the aging bucket boundaries in days past due,
same convention as ar-aging-tie-out. Change it if the client ages receivables differently.--actuals (optional) — week_ending, actual_net_flow, for the weekly reforecast cadence
once a week has closed.python3 scripts/cash_forecast_13wk.py --template ar --out ar_template.csv
python3 scripts/cash_forecast_13wk.py --template assumptions --out assumptions_template.csv
--template accepts ar, ap, payroll, recurring, assumptions, or actuals.
python3 scripts/cash_forecast_13wk.py \
--ar ar_aging.csv --ap ap_aging.csv --payroll payroll_calendar.csv \
--recurring recurring_items.csv --assumptions collection_timing.csv \
--beginning-balance 850000.00 --forecast-start 2026-01-05 \
--client "Northwind Systems Inc" \
--out "Northwind - 13-Week Cash Forecast.xlsx"
AR is spread across weeks per its aging bucket's assumption rows (a bucket can split across multiple weeks — the percentages don't have to sum to 100, and whatever's left over at week 13 is swept into Beyond Horizon with the shortfall shown, never silently absorbed). AP, payroll, and recurring items land in the week of their due date, pay date, or projected occurrence.
Once a week closes, run again with --actuals to see where the forecast missed:
python3 scripts/cash_forecast_13wk.py \
--ar ar_aging.csv --ap ap_aging.csv --payroll payroll_calendar.csv \
--recurring recurring_items.csv --assumptions collection_timing.csv \
--actuals week1_actuals.csv \
--beginning-balance 850000.00 --forecast-start 2026-01-05 \
--client "Northwind Systems Inc" \
--out "Northwind - 13-Week Reforecast W1.xlsx"
This is a recurring-use skill by design — re-run it every week against the same forecast horizon, and the Reforecast Variance tab shows how assumption drift is accumulating, which is the signal to revisit the collection-timing table itself rather than patch the forecast by hand.
Workbook tabs:
--actuals supplied) — forecast vs. actual net flow per
week with an actual on record.Then, in chat: the beginning and week-13 ending balance first, then any gate failures, then the Beyond Horizon totals so the reader knows what the 13-week window doesn't cover.
next_date is stale (far in the past) — likely means the item already
occurred and the source file wasn't updated.Fully local: standard library plus openpyxl. No network calls, no uploads, no telemetry. AR,
AP, payroll, and vendor 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.npx claudepluginhub adoptai/cpa-skills --plugin cpa-skillsOther plugins' skills for the same job