Cash flow forecaster

From eddiebelaval/squire · View interactive version

Cash flow forecaster is an AI agent skill from the GitHub repository eddiebelaval/squire. Forecast cash inflows, outflows, and liquidity needs with scenario modeling and working capital optimization

How to use this skill

Skill file

Cash Flow Forecaster

Expert cash flow modeling agent that builds detailed cash projections, stress tests liquidity, optimizes working capital, and manages cash position. Specializes in 13-week forecasts, rolling liquidity models, and scenario-based cash planning.

This skill applies rigorous treasury management principles to predict cash needs, prevent shortfalls, and optimize cash utilization. Perfect for startup runway planning, treasury operations, working capital management, and financial crisis planning.

Core Workflows

Workflow 1: 13-Week Cash Flow Forecast

Objective: Create detailed weekly cash forecast for near-term liquidity management

Steps:

  1. Opening Cash Position
  1. Cash Inflows by Week
  1. Cash Outflows by Week
  1. Weekly Cash Flow Calculation
  1. Minimum Cash Requirements
  1. Variance Analysis

Deliverable: 13-week rolling cash forecast with daily/weekly precision

Workflow 2: Monthly/Annual Cash Flow Projection

Objective: Long-term cash flow modeling for planning purposes

Steps:

  1. P&L to Cash Flow Bridge
  1. Working Capital Changes
  1. Cash from Operating Activities
  1. Cash from Investing Activities
  1. Cash from Financing Activities
  1. Monthly Cash Position
  1. Scenario Modeling

Deliverable: Monthly cash flow projection with scenarios

Workflow 3: Working Capital Optimization

Objective: Improve cash flow by optimizing working capital components

Steps:

  1. Current State Analysis
  1. Accounts Receivable Optimization
  1. Accounts Payable Optimization
  1. Inventory Optimization (if applicable)
  1. Working Capital Improvement Plan

Deliverable: Working capital improvement plan with cash flow impact

Workflow 4: Liquidity Stress Testing

Objective: Model cash position under adverse scenarios

Steps:

  1. Define Stress Scenarios
  1. Model Each Scenario
  1. Identify Trigger Points
  1. Develop Contingency Plans
  1. Quantify Contingency Impact

Deliverable: Stress test results with contingency action plans

Workflow 5: Startup Runway Modeling

Objective: Model cash runway and funding needs for startups

Steps:

  1. Current Burn Analysis
  1. Runway Calculation
  1. Path to Profitability Analysis
  1. Funding Scenarios
  1. Milestone-Based Planning
  1. Sensitivity Analysis

Deliverable: Runway model with funding recommendations

Quick Reference

| Action | Command/Trigger |

|--------|-----------------|

| 13-week forecast | "Build 13-week cash flow forecast" |

| Monthly projection | "Project cash flow for next 12 months" |

| Working capital | "Analyze working capital optimization" |

| Stress test | "Stress test liquidity position" |

| Runway | "Calculate startup runway" |

| CCC analysis | "Analyze cash conversion cycle" |

Cash Flow Formulas

Key Metrics

| Metric | Formula | Healthy Range |

|--------|---------|---------------|

| Days Sales Outstanding (DSO) | (AR / Revenue) x 365 | 30-45 days |

| Days Inventory Outstanding (DIO) | (Inventory / COGS) x 365 | Industry varies |

| Days Payable Outstanding (DPO) | (AP / COGS) x 365 | 30-60 days |

| Cash Conversion Cycle (CCC) | DSO + DIO - DPO | Lower is better |

| Current Ratio | Current Assets / Current Liabilities | > 1.5 |

| Quick Ratio | (Current Assets - Inventory) / Current Liabilities | > 1.0 |

| Operating Cash Flow Ratio | OCF / Current Liabilities | > 1.0 |

Cash Flow Calculations

Operating Cash Flow =
  Net Income
  + Depreciation & Amortization
  + Stock-Based Compensation
  - Increase in Accounts Receivable
  - Increase in Inventory
  + Increase in Accounts Payable
  + Other Non-Cash Adjustments

Free Cash Flow =
  Operating Cash Flow
  - Capital Expenditures

Net Burn Rate =
  Total Expenses - Total Revenue

Runway (months) =
  Cash on Hand / Net Burn Rate

13-Week Cash Flow Template

| Week Ending | W1 | W2 | W3 | W4 | W5 | W6 | W7 | W8 | W9 | W10 | W11 | W12 | W13 |
|-------------|----|----|----|----|----|----|----|----|----|----|-----|-----|-----|
| **Beginning Cash** |
| |
| **Cash Inflows** |
| AR Collections | | | | | | | | | | | | | |
| New Sales | | | | | | | | | | | | | |
| Other Income | | | | | | | | | | | | | |
| **Total Inflows** | | | | | | | | | | | | | |
| |
| **Cash Outflows** |
| Payroll | | | | | | | | | | | | | |
| Vendor Payments | | | | | | | | | | | | | |
| Rent | | | | | | | | | | | | | |
| Utilities | | | | | | | | | | | | | |
| Debt Service | | | | | | | | | | | | | |
| Other | | | | | | | | | | | | | |
| **Total Outflows** | | | | | | | | | | | | | |
| |
| **Net Cash Flow** | | | | | | | | | | | | | |
| **Ending Cash** | | | | | | | | | | | | | |
| |
| **Minimum Required** |
| **Surplus/(Deficit)** |

Best Practices

Forecasting

Collections

Payments

Monitoring

Integration with Other Skills

Common Pitfalls to Avoid

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.