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.
npx skills add openaccountant/skills --skill cash-flow-forecast -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/cash-flow-forecast/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cash-flow-forecast/
1Skills CLI (Vercel)
npx skills add openaccountant/skills --skill cash-flow-forecast -a codex2Manually: put the files in place
.agents/skills/cash-flow-forecast/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add openaccountant/skills --skill cash-flow-forecast -a cursor2Manually: put the files in place
.cursor/skills/cash-flow-forecast/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install openaccountant/skills cash-flow-forecast2Manually: put the files in place
.github/skills/cash-flow-forecast/SKILL.md1Skills CLI (Vercel)
npx skills add openaccountant/skills --skill cash-flow-forecast -a gemini-cli2Platform CLI
gemini skills install https://github.com/openaccountant/skills --path business/cash-flow-forecastManually: put the files in place
.devin/skills/cash-flow-forecast/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add openaccountant/skills --skill cash-flow-forecast -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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