Skip to main content
skill CX Codex

cash-flow-forecast — Claude Code skill: what it does, how to install

Forecasts future cash inflows and outflows using a 3-month moving average. It detects recurring transactions and warns before cash balances drop below safety limits.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openaccountant/skills --skill cash-flow-forecast -a claude-code
Open on GitHub

What cash-flow-forecast does

The skill asks for your current cash balance and planning horizon, defaulting to 3 months. It reviews 6 to 12 months of historical banking activity to map spending patterns. When available, it uses Wilson tools: transaction_search pulls transaction records, spending_summary aggregates category totals, and anomaly_detect spots recurring items like payroll or rent. Without Wilson, the workflow provides manual formulas for spreadsheets.

The final output is a monthly projection table. Inflows and outflows are split into predictable recurring lines and variable estimates. Each column tracks opening balance, net cash flow, and closing balance. If a projected month falls below a safety threshold—recommended at 2 months of operational expenses—the agent flags the shortfall.

This projection runs strictly on a cash basis. Pending bills and unpaid client invoices are invisible to the model until money actually moves across the account.

What it helps with

  • project monthly cash inflows and outflows for the upcoming quarter
  • separate fixed overhead like rent and payroll from variable expenses
  • calculate 3-month moving averages across historical transaction records
  • detect upcoming cash crunches when balances drop below safety reserves

Example prompts for the agent

  • Build a 3-month cash flow forecast with an opening balance of $45,000.
  • Analyze transactions from the last 6 months and separate recurring expenses from variable spending.
  • Project our cash balance for next quarter and warn me if reserves drop below 2 months of expenses.

How to install cash-flow-forecast

1Skills CLI (Vercel)

npx skills add openaccountant/skills --skill cash-flow-forecast -a claude-code

2Manually: put the files in place

~/.claude/skills/cash-flow-forecast/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cash-flow-forecast/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about cash-flow-forecast

How to install cash-flow-forecast in Claude Code?

Run npx skills add openaccountant/skills --skill cash-flow-forecast -a claude-code. The skill file is placed at ~/.claude/skills/cash-flow-forecast/SKILL.md.

What does the cash-flow-forecast skill do?

It computes future cash positions using a 3-month moving average methodology. It isolates regular revenues and expenses, tracks monthly net cash flow, and highlights low-balance risks.

Does the forecast account for unpaid invoices and accounts receivable?

No. It operates entirely on a cash basis, meaning outstanding invoices and pending bills are omitted until funds clear the account.

Source text

SKILL.md · MIT
---
name: cash-flow-forecast
description: >
  Project future cash flow using historical trends and recurring patterns.
---

# Cash Flow Forecast

## Overview
Project future cash inflows and outflows using a 3-month moving average methodology. Identifies recurring revenue and expenses, detects seasonal patterns, and produces a monthly projection table.

## Wilson Tools Used
- `spending_summary` — get monthly expense totals and category breakdowns for trend analysis
- `anomaly_detect` — identify recurring transactions (subscriptions, regular payments, payroll) that form the predictable baseline
- `transaction_search` — pull historical cash position and transaction data

## Workflow
1. Ask for the forecast horizon (default: 3 months) and current cash balance.
2. Use `transaction_search` to pull the last 6-12 months of transactions.
3. Use `spending_summary` for each of the past 6 months to get income and expense totals.
4. Use `anomaly_detect` to identify recurring transactions (subscriptions, payroll, rent, retainers).
5. Calculate the 3-month moving average for income and expenses:
   - Moving Avg Income = (Month-1 + Month-2 + Month-3) / 3
   - Moving Avg Expenses = (Month-1 + Month-2 + Month-3) / 3
6. Separate recurring (predictable) from variable (estimated) cash flows.
7. Generate the projection:

```
CASH FLOW FORECAST — [Start Month] to [End Month]
══════════════════════════════════════════════════════════
                      Month 1     Month 2     Month 3
──────────────────────────────────────────────────────────
Opening Balance       $XX,XXX     $XX,XXX     $XX,XXX

INFLOWS
  Recurring Revenue    $X,XXX      $X,XXX      $X,XXX
  Variable Revenue     $X,XXX      $X,XXX      $X,XXX
  Total Inflows        $X,XXX      $X,XXX      $X,XXX

OUTFLOWS
  Payroll             ($X,XXX)    ($X,XXX)    ($X,XXX)
  Rent                ($X,XXX)    ($X,XXX)    ($X,XXX)
  Subscriptions         ($XXX)      ($XXX)      ($XXX)
  Variable Expenses   ($X,XXX)    ($X,XXX)    ($X,XXX)
  Total Outflows      ($X,XXX)    ($X,XXX)    ($X,XXX)

NET CASH FLOW          $X,XXX      $X,XXX      $X,XXX
Closing Balance       $XX,XXX     $XX,XXX     $XX,XXX
══════════════════════════════════════════════════════════
```

8. Flag any month where projected closing balance drops below a safety threshold (suggest 2 months of expenses as minimum).

## Without Wilson
1. Export the last 12 months of transactions from your bank as CSV.
2. In Google Sheets, add a `Month` column: `=TEXT(Date,"YYYY-MM")`.
3. Create two pivot tables: one for income by month, one for expenses by month.
4. For the 3-month moving average, use: `=AVERAGE(B2:B4)` sliding across the monthly totals.
5. For recurring items, sort by description and look for entries that repeat monthly. Sum these separately.
6. Build the projection manually: Opening Balance + Avg Income - Avg Expenses = Closing Balance. Closing Balance of Month N = Opening Balance of Month N+1.
7. For a more accurate forecast, use Excel's `=FORECAST.ETS()` function on monthly totals, which handles seasonality automatically.
8. Google Sheets alternative: `=FORECAST(target_date, known_values, known_dates)`.

## Important Notes
- The 3-month moving average smooths volatility but lags behind trend changes. If your business is growing or shrinking rapidly, weight recent months more heavily.
- Forecasts are estimates. Build in a 10-20% buffer on expenses for unexpected costs.
- Seasonal businesses should use 12-month data minimum to capture full cycles. A 3-month average in retail would badly miss holiday spikes.
- This is cash-basis forecasting. Outstanding invoices and unpaid bills are not reflected until money moves.

© openaccountant · MIT · openaccountant/skills

Similar skills

All skills for Finance and business →

From the same set44

bank-sync Connects bank accounts to Wilson and pulls new transactions daily through Plaid. Useful if you track spending in Wilson and are tired of CSV exports. CX Codex +1 641installs contractor-tracking Monitors payments to independent contractors across the tax year, calculates totals per vendor, and flags anyone crossing the IRS $600 threshold for 1099-NEC filing. CX Codex +1 525installs rental-property Works out NOI, cap rate, cash-on-cash and total ROI for each rental property. Useful when you need income and expenses lined up before Schedule E. CX Codex +1 493installs month-end-close Runs a monthly bookkeeping checklist with bank reconciliation. It spots missing categories, flags duplicate entries, and balances the numbers. CX Codex +1 474installs spending-review This skill groups your spending by category for a period, compares it to the prior month and flags where costs jumped. Useful if you track money in Wilson or bank CSVs. CX Codex +1 468installs import-transactions Imports bank export files in CSV, OFX, or QIF formats and deduplicates entries before writing to the database. Identifies major bank header patterns automatically. CX Codex +1 453installs zero-based-budget Assigns every dollar of income to expenses, debt, or savings until the unallocated balance hits zero. Useful for planned monthly budgeting. CX Codex +1 450installs invoice-aging Sorts unpaid invoices into aging buckets and flags clients who pay late. Handy when you need to see how much money is stuck with customers. CX Codex +1 449installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor