cash-flow

cash-flow is a command for coding agents from brainbytes-dev/everything-claude-finance. It costs 12 tokens per session (1,253 once invoked), scanned A, original, MIT.

A cash-flow analysis and forecasting tool that examines money coming in and going out, future liquidity, and working capital. It supports short-term 13-week forecasts, longer-term planning, and stress tests for difficult scenarios.

In plain words
What is it for?
Use it for cash-position reporting, lender-covenant forecasts, working-capital improvements, liquidity stress tests, dividend-capacity reviews, and assessing funding for capital spending.
Why use it?
It helps teams see when cash may fall below obligations and identify whether slow collections, inventory, or supplier payments are causing pressure.

Command

Part of the everything-claude-finance plugin — 13 skills, 22 commands, 20 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/brainbytes-dev/everything-claude-finance/cash-flow
Clone the repo
git clone --depth 1 https://github.com/brainbytes-dev/everything-claude-finance

Or install everything-claude-finance, the plugin that ships this one along with the rest of its 13 skills, 22 commands, 20 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cash-flow

README.md
[![agentmods](https://agentmods.dev/badge/commands/brainbytes-dev/everything-claude-finance/cash-flow.svg)](https://agentmods.dev/commands/brainbytes-dev/everything-claude-finance/cash-flow)
Your own site
<a href="https://agentmods.dev/commands/brainbytes-dev/everything-claude-finance/cash-flow"><img src="https://agentmods.dev/badge/commands/brainbytes-dev/everything-claude-finance/cash-flow.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,253 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.01253
Opus 5 $0.00006 $0.00626
Sonnet 5 $0.00002 $0.00251
Haiku 4.5 $0.00001 $0.00125

Measured 4d ago against content hash 2de03213ef57, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cash-flow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/cash-flow.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/cash-flow — Cash Flow Analysis

What This Command Does

Performs comprehensive cash flow analysis including historical pattern identification, cash flow forecasting, working capital optimization, and liquidity planning. Supports 13-week rolling forecasts for near-term treasury management and longer-term strategic cash planning.

When to Use

  • Weekly/monthly cash position reporting
  • 13-week cash flow forecasting (lender covenant)
  • Working capital improvement initiatives
  • Liquidity stress testing
  • Dividend capacity analysis
  • Capex funding assessment

How It Works

  1. Historical Analysis: Decomposes cash flows by operating, investing, and financing activities
  2. Pattern Recognition: Identifies seasonality, cyclicality, and trend in cash generation
  3. Working Capital Drill-Down: Analyzes DSO, DIO, DPO trends and benchmarks against peers
  4. Forecast Construction: Builds bottom-up cash forecast from operational drivers
  5. Liquidity Assessment: Maps available liquidity vs. obligations and contingencies
  6. Stress Testing: Applies adverse scenarios to identify minimum liquidity thresholds

Example Usage

Input:

/cash-flow entity:"FreshFoods Distribution" type:forecast horizon:13-week currency:EUR

Output:

# Cash Flow Forecast — FreshFoods Distribution
## Type: 13-Week Rolling | Currency: EUR thousands | As of: 2026-03-14

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
## Opening Position
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

| Item                    | EUR '000  |
|-------------------------|-----------|
| Cash & equivalents      | 2,850     |
| Undrawn revolver        | 5,000     |
| **Total liquidity**     | **7,850** |
| Minimum cash policy     | 1,500     |
| **Available headroom**  | **6,350** |

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
## 13-Week Forecast Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

| EUR '000          | Wk1-4 | Wk5-8 | Wk9-13| Total  |
|-------------------|-------|-------|-------|--------|
| Collections       | 3,200 | 3,450 | 4,100 | 10,750 |
| Supplier payments | (2,800)|(3,100)|(3,500)| (9,400)|
| Payroll           | (850) | (850) | (850) | (2,550)|
| Rent & utilities  | (220) | (220) | (280) | (720)  |
| Tax payments      | (180) | —     | (420) | (600)  |
| Capex             | (150) | (200) | (100) | (450)  |
| Debt service      | (320) | —     | (320) | (640)  |
| Other operating   | (120) | (130) | (140) | (390)  |
| **Net cash flow** |**(440)**|**(1,050)**|**(1,510)**|**(3,000)**|
| **Closing cash**  |**2,410**|**1,360**|**(150)**|       |

⚠ WARNING: Cash turns negative in Week 12 without revolver draw.
Recommended action: Draw EUR 2,000K from revolver in Week 8.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
## Working Capital Metrics
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

| Metric          | Current | Target | Peer Median | Cash Impact |
|-----------------|---------|--------|-------------|-------------|
| DSO (days)      | 52      | 45     | 42          | +EUR 780K   |
| DIO (days)      | 28      | 25     | 23          | +EUR 320K   |
| DPO (days)      | 38      | 42     | 45          | +EUR 440K   |
| Cash Conv Cycle | 42 days | 28 days| 20 days     |             |
| **WC release**  |         |        |             |**+EUR 1,540K**|

Achieving target working capital would eliminate the liquidity gap.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
## Stress Test
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

| Scenario               | Min Cash | Revolver Need | Breach? |
|------------------------|----------|---------------|---------|
| Base case              | (150)    | EUR 2,000K    | No      |
| Revenue -10%           | (1,225)  | EUR 3,500K    | No      |
| Top customer default   | (2,100)  | EUR 4,500K    | No      |
| Combined stress        | (3,800)  | EUR 5,500K    | ⚠ Yes   |

Combined stress exceeds available revolver by EUR 500K.
Recommendation: Negotiate revolver increase to EUR 6M or secure
backup facility.

Read the full file on GitHub · 123 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 123 lines · 12 tokens per session scan A 2de03213ef57

Subscribe to this mod's changes

cash-flow is a command published in the GitHub repository brainbytes-dev/everything-claude-finance (5 stars, last pushed 5mo ago), licensed MIT. It adds 12 tokens to every session and 1,253 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.