← Back to Skills Marketplace
samledger67-dotcom

Cash Flow Forecast

by samledger67-dotcom · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
292
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install cash-flow-forecast
Description
Generates a 13-week rolling cash flow forecast from QuickBooks Online data with base, optimistic, and pessimistic scenarios including burn rate and runway an...
README (SKILL.md)

Cash Flow Forecast Skill

When to Use

  • Client asks for a 13-week (or rolling n-week) cash flow forecast
  • Need to project runway for a high-burn client (GlowLabs-type)
  • Monthly or quarterly cash flow advisory deliverable
  • Any time cash position monitoring or scenario modeling is needed
  • SOP for the client marks "Cash Flow Forecast: ✅"

NOT for

  • Historical cash flow analysis (use P&L Deep Analysis pipeline)
  • Bank reconciliation (use bank-reconciliation.py)
  • Full audit of cash flows (use QBO CF report directly)
  • Balance sheet projections / full financial models

Script Location

scripts/pipelines/cash-flow-forecast.py

Quick Start

cd /Users/samshouse/.openclaw/workspace

# Standard 13-week forecast
python3 scripts/pipelines/cash-flow-forecast.py --slug glowlabs

# 6-month history for better seasonality
python3 scripts/pipelines/cash-flow-forecast.py --slug sb-paulson --months 6

# Custom low-cash threshold (GlowLabs: high burn)
python3 scripts/pipelines/cash-flow-forecast.py --slug glowlabs \
    --low-cash-threshold 50000 \
    --critical-threshold 25000 \
    --out ~/Desktop/reports

# Sandbox testing
python3 scripts/pipelines/cash-flow-forecast.py --slug glowlabs --sandbox

All CLI Options

Flag Default Description
--slug required QBO company slug
--weeks 13 Forecast horizon (weeks)
--months 3 Months of CF history to pull (1–6)
--low-cash-threshold 25000 Warn when balance \x3C X
--critical-threshold 10000 Critical alert when balance \x3C X
--account auto Specific bank account name filter
--out ~/Desktop Output directory
--sandbox false Use QBO sandbox

Output Excel Tabs

Tab 1: Cash Flow Summary

  • Current cash position (all bank/cash accounts from Balance Sheet)
  • 13-week KPI summary: total inflows, outflows, net flow, end balance
  • Burn rate and runway in callout box
  • Full weekly trajectory table with alert coloring
  • SOP notes printed at top (client-specific warnings)

Tab 2: Weekly Detail

  • Matrix: each row = a CF subcategory, each column = a week
  • Inflows section (green) → Outflows section (red)
  • Subtotals, Net Flow row, Running Balance row
  • Alert coloring: yellow = warn, orange/red = critical

Tab 3: Scenarios

  • Side-by-side: Base | Optimistic | Pessimistic
  • 12 KPI rows: inflows, outflows, net, end balance, burn, runway, alert weeks
  • Weekly balance comparison table across all 3 scenarios
  • Best/Worst delta and % spread columns

Tab 4: Burn Rate

  • Detailed burn metrics (base case)
  • Runway comparison table (all 3 scenarios)
  • Week-by-week burn trend
  • 🔴 High burn emphasis for GlowLabs-type clients

Tab 5: Assumptions

  • All parameters used (thresholds, adjustments, seasonality weights)
  • Monthly averages per category (the baseline used)
  • Client SOP config summary
  • Methodology notes

Tab 6: CDC Log

  • Run-over-run changes: starting cash, burn rate, runway
  • Forecast accuracy: compares prior-run predicted starting cash vs. actual
  • First run: saves baseline; second+ run shows deltas

Scenario Definitions

Scenario Collections Expenses
Base Historical avg Historical avg
Optimistic +10% Unchanged
Pessimistic -15% +5%

Cash Flow Categories

Automatically classified from QBO CF rows:

Operating — Inflows

  • collections: Revenue, AR, Net Income, payment processor receipts
  • interest: Interest income

Operating — Outflows

  • payroll: Wages, salaries, officer comp, Deel (GlowLabs)
  • rent: Rent, lease, occupancy
  • vendors: AP, COGS, professional fees, software, subscriptions
  • interest: Interest expense (SB Paulson: material line)
  • taxes, insurance

Investing

  • capex: Equipment, property, asset purchases

Financing

  • debt: Loans, line of credit, notes payable
  • equity: Owner distributions/contributions
  • safe: SAFE notes (GlowLabs)

Client SOP Integration

The script reads clients/{slug}/sop.md automatically and adjusts:

SOP Signal Effect
"burn rate", "runway", "high cash burn" Burn Rate tab emphasized, 🔴 alert
"interest expense" Interest tracked separately
"POS collection", "collected at POS" No AR lag — flat weekly inflow distribution
"accounts receivable" AR-based: note 30-45 day receipt lag
"SAFE" SAFE financing category added
"crypto", "wallet", "ETH" Crypto wallet note added
"Deel" Deel inbound classified as expense reduction

Seasonality Weights

Default week-of-month distribution (configurable in script CONFIG section):

Week Inflows Outflows Rationale
Week 1 (days 1–7) 30% 35% Collections/payroll land early
Week 2 (days 8–14) 20% 20% Mid-month quiet
Week 3 (days 15–21) 20% 25% Mid-month payroll + rent
Week 4 (days 22–28) 30% 20% End-month collections
Week 5 (overflow) 0% 0% Rarely used

POS clients (e.g. SB Paulson): inflows flattened to equal weekly distribution.

CDC Accuracy Loop

  1. First run: saves starting_cash, first_week_balance, avg_monthly_burn, months_of_runway
  2. Second run: compares new starting_cash against prior first_week_balance
  3. Accuracy % = how close the forecast was to reality
  4. Burn rate and runway deltas tracked run-over-run
  5. Cache stored in .cache/cash-flow-forecast/{slug}.json

Low-Cash Alert Colors

Color Excel Fill Condition
✅ OK White Balance ≥ low threshold
⚠ Warn Yellow Balance \x3C $25K (configurable)
🔴 Critical Orange/Red Balance \x3C $10K (configurable)

Client-Specific Notes

GlowLabs (High Burn)

  • --low-cash-threshold 50000 --critical-threshold 25000 recommended
  • SOP auto-detected: burn rate tab emphasized with red header
  • SAFE financing and Deel categories auto-classified
  • Runway is the #1 KPI — shown prominently in Summary tab

SB Paulson / Willo Salons

  • --months 6 for better seasonality (salon business is seasonal)
  • POS collection = no AR lag; inflows distributed flat across weeks
  • Interest expense tracked as separate operating outflow category
  • Cash Flow Forecast frequency: quarterly advisory (per SOP)

Dependencies

pip install openpyxl

Node.js QBO client must be authenticated with a valid token.

Output Naming

CashFlowForecast_{slug}_{YYYY-MM-DD}.xlsx Default output: ~/Desktop/

Related Pipelines

  • pl-quick-compare.py — P&L variance analysis
  • pl-deep-analysis.py — Controller-level with GL drill-down
  • bank-reconciliation.py — Bank statement reconciliation
Usage Guidance
This skill describes pulling live QuickBooks Online data and running a local Python pipeline, but the package contains no script and lists no QuickBooks credentials or config paths. Before installing or using it, verify: (1) where the referenced script (scripts/pipelines/cash-flow-forecast.py) comes from and inspect its code; (2) how QBO authentication is expected to work (OAuth flow, API keys, or local exports) and avoid providing credentials unless you trust the exact implementation; (3) which local files (clients/{slug}/sop.md, workspace paths) will be read and whether that exposes sensitive data; and (4) that the skill's author and source are known. If the author can provide the missing script and a clear, minimal authentication method (and you review the code), the discrepancies would be resolved; until then treat this as inconsistent and proceed cautiously.
Capability Analysis
Type: OpenClaw Skill Name: cash-flow-forecast Version: 1.0.2 The skill bundle contains metadata and documentation for a QuickBooks Online (QBO) cash flow forecasting tool. The SKILL.md file describes legitimate financial modeling features, such as 13-week projections, scenario analysis, and burn rate tracking for specific client profiles (e.g., GlowLabs). No malicious instructions, data exfiltration patterns, or prompt injection attempts were identified; the tool's behavior, including reading local configuration files and caching forecast data, is entirely consistent with its stated purpose of financial advisory.
Capability Assessment
Purpose & Capability
The skill's stated purpose is to pull live Balance Sheet and Cash Flow Statement data from QuickBooks Online (QBO) and build Excel forecasts. However, the skill declares no required credentials, no primary credential, and no required config paths. It also references a local script location (scripts/pipelines/cash-flow-forecast.py) that is not included in the bundle. Expectation mismatch: accessing QBO and running a local pipeline normally requires OAuth/API credentials and local code, neither of which are provided or requested.
Instruction Scope
SKILL.md instructs the agent/user to run a local Python script (with various flags), read client SOP files (clients/{slug}/sop.md), and access live QBO data. These runtime instructions reference absolute user paths (/Users/samshouse/.openclaw/workspace, ~/Desktop) and local config/data that the skill metadata does not declare. The instructions also imply access to potentially sensitive financial data and local files without specifying how credentials or access are obtained or limited.
Install Mechanism
No install spec is present and no code files are bundled; this is instruction-only. That lowers risk from remote install code, but increases reliance on the user's environment and local scripts.
Credentials
The task requires access to QuickBooks Online APIs (or exported data) and likely local client SOP/config files, yet the skill requests no environment variables or credentials. Requiring no credentials while promising live QBO pulls is disproportionate/incoherent. The skill also reads/writes local filesystem locations (workspace, Desktop) without declaring config paths.
Persistence & Privilege
The skill does not request 'always: true' and does not claim to modify other skills or global agent settings. Autonomous invocation is allowed by default but is not combined here with other high privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cash-flow-forecast
  3. After installation, invoke the skill by name or use /cash-flow-forecast
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
Updated SKILL.md
v1.0.1
Security cleanup: removed internal references, genericized examples
v1.0.0
Initial release: 13-week rolling cash flow forecast with 3-scenario modeling
Metadata
Slug cash-flow-forecast
Version 1.0.2
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 3
Frequently Asked Questions

What is Cash Flow Forecast?

Generates a 13-week rolling cash flow forecast from QuickBooks Online data with base, optimistic, and pessimistic scenarios including burn rate and runway an... It is an AI Agent Skill for Claude Code / OpenClaw, with 292 downloads so far.

How do I install Cash Flow Forecast?

Run "/install cash-flow-forecast" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Cash Flow Forecast free?

Yes, Cash Flow Forecast is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Cash Flow Forecast support?

Cash Flow Forecast is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Cash Flow Forecast?

It is built and maintained by samledger67-dotcom (@samledger67-dotcom); the current version is v1.0.2.

💬 Comments