← 返回 Skills 市场
samledger67-dotcom

Cash Flow Forecast

作者 samledger67-dotcom · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
292
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cash-flow-forecast
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cash-flow-forecast 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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
元数据
Slug cash-flow-forecast
版本 1.0.2
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 292 次。

如何安装 Cash Flow Forecast?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cash-flow-forecast」即可一键安装,无需额外配置。

Cash Flow Forecast 是免费的吗?

是的,Cash Flow Forecast 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cash Flow Forecast 支持哪些平台?

Cash Flow Forecast 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cash Flow Forecast?

由 samledger67-dotcom(@samledger67-dotcom)开发并维护,当前版本 v1.0.2。

💬 留言讨论