# Cash Flow Forecast

> >

- **Type:** Skill
- **Install:** `agentstack add skill-openaccountant-skills-cash-flow-forecast`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [openaccountant](https://agentstack.voostack.com/s/openaccountant)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [openaccountant](https://github.com/openaccountant)
- **Source:** https://github.com/openaccountant/skills/tree/main/business/cash-flow-forecast

## Install

```sh
agentstack add skill-openaccountant-skills-cash-flow-forecast
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [openaccountant](https://github.com/openaccountant)
- **Source:** [openaccountant/skills](https://github.com/openaccountant/skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-openaccountant-skills-cash-flow-forecast
- Seller: https://agentstack.voostack.com/s/openaccountant
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
