arr-waterfall
Skill8 starsChanged 4 months agoMITView on GitHub
Builds 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.
- Installs packages
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accrual-proposalsSkill
- ar-aging-tie-outSkill
- audit-samplingSkill
- audit-workpaperSkill
- balance-sheet-recon-packSkill
- bank-rec-reviewSkill
- bank-rec-to-glSkill
- bank-statement-to-excelSkill
- board-package-builderSkill
- budget-vs-actualSkill
- cash-applicationSkill
- cash-flow-tieoutSkill
- commission-recalcSkill
- consolidation-rollupSkill
- cutoff-and-unrecorded-liabilitiesSkill
- debt-covenant-checkSkill
- deferred-revenue-waterfallSkill
- depreciation-tie-outSkill
- dunning-draftsSkill
- duplicate-payment-scanSkill
- expense-policy-testingSkill
- filing-diffSkill
- flux-narrativeSkill
- fx-revaluationSkill
- intercompany-reconSkill
- invoice-codingSkill
- journal-entry-anomaly-scanSkill
- k1-extract-summarizeSkill
- lease-schedule-tie-outSkill
- month-end-close-checklistSkill
- payroll-tax-reconciliationSkill
- pbc-assemblerSkill
- prepaid-amortizationSkill
- receipts-to-expenseSkill
- return-yoy-varianceSkill
- revenue-trace-to-sourceSkill
- sales-tax-reconciliationSkill
- tax-return-reviewSkill
- thirteen-week-cash-forecastSkill
- three-way-matchSkill
- trial-balance-integritySkill
- vendor-statement-reconSkill
The file
Files
ARR Waterfall
The gate
The script refuses to produce a clean waterfall when:
- The waterfall doesn't arithmetically close. Beginning ARR plus new, expansion, contraction, and churn must equal ending ARR exactly. This is a closed identity — if it doesn't hold, a customer was miscounted or double-counted somewhere in the movement logic, and the script treats that as a defect to surface, not round off.
- Ending ARR doesn't tie to GL recognized revenue within whatever tolerance you supply. No tolerance means an exact tie is required; a mismatch is reported in dollars, never absorbed.
- A customer's
mrr_amountorprior_mrris missing or unparseable. That customer is excluded and reported, never treated as zero, since zero would misclassify a real customer as new or churned.
A customer present in the prior file but absent entirely from the current extract is still picked up and classified Churn — the script indexes off the union of both files, not just the current one, specifically so a dropped row can't disappear the churn it represents.
Inputs
- Current-period subscription or invoice export — customer, plan, MRR amount, effective date.
- Prior-period ending ARR/MRR by customer — ideally the prior run's own ending state, so the waterfall chains period to period without manual reconstruction.
- The GL recognized revenue figure for the period, for the tie-out, and an optional tolerance if your revenue recognition timing doesn't move in lockstep with ARR changes.
Step 1 — Build the worksheet
python3 scripts/arr_waterfall.py --current current.csv --prior prior.csv \
--template --out current_worksheet.csvStep 2 — Run the waterfall
python3 scripts/arr_waterfall.py --current current_worksheet.csv --prior prior.csv \
--gl-revenue 512300.00 --tolerance 250.00 \
--client "Northwind Systems Inc" \
--out "Northwind - Q4 2025 ARR Waterfall.xlsx"Deliver
Workbook tabs:
- Workpaper Summary — beginning ARR, each movement bucket, ending ARR, the GL tie, and the conclusion.
- Waterfall — every customer with prior MRR, current MRR, delta, and movement classification, with bucket totals and the full ARR rollforward below the detail.
- Revenue Tie — ending ARR against GL recognized revenue, with the difference.
- Exceptions — every data exception, including customers excluded for unparseable amounts.
- Judgment Items — large contractions (a customer's MRR dropping sharply but not to zero), flagged for a human to confirm is a genuine downsell rather than a churn event recorded as a reduced renewal.
Then, in chat: the headline movement numbers first (new, expansion, contraction, churn, ending ARR), then the GL tie result, then anything in Judgment Items worth a second look.
What to escalate
- A customer with a large contraction close to full churn — the boundary between "steep downsell" and "effectively churned" is a judgment call this skill flags but does not resolve.
- A paused-but-not-cancelled contract showing as churn or new depending on how the extract represents a $0 MRR row during the pause — confirm which period's data reflects the pause.
- Any waterfall identity failure, which indicates a bug in the movement classification or a data quality problem in the extract, not a rounding issue to ignore.
- A persistent, growing gap between ending ARR and GL recognized revenue, which usually means the two are measuring different things (bookings vs. recognized) and the comparison basis needs revisiting, not a bigger tolerance.
Report each as a fact with the customer reference. Do not characterize intent.
Security posture
Fully local: standard library plus openpyxl. No network calls, no uploads, no telemetry.
Subscription and customer data never leave the machine.
Dependencies
pip install openpyxlBuilt by Adopt AI — free to use and modify.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

