Install
openclaw skills install @samledger67-dotcom/scf-deep-analysisController-level Statement of Cash Flows deep analysis for QBO-connected clients. Computes CF Quality Ratio, Free Cash Flow, working capital movement drivers, 3-month rolling averages, GL drill-down for flagged accounts, and plain-English controller findings with HIGH/MEDIUM/LOW urgency action proposals. Outputs a 7-tab Excel workbook.
openclaw skills install @samledger67-dotcom/scf-deep-analysisRuns a controller-level Statement of Cash Flows deep analysis for a QBO-connected client. Extends the SCF Quick Compare with:
Output: Excel workbook with 7 tabs:
Summary | Detail | ⚠ Flags | GL Drill-Down | Working Capital Movement | Controller Findings | CDC Log
scf-quick-compare.py insteadpl-deep-analysis.pybudget-vs-actual skillbank-reconciliation skillopenpyxl installed: pip install openpyxlscripts/pipelines/scf-deep-analysis.py
# Basic: current month vs. prior month (auto-calculated)
python3 scripts/pipelines/scf-deep-analysis.py \
--slug my-client \
--current-start 2026-03-01 --current-end 2026-03-31
# Explicit prior period
python3 scripts/pipelines/scf-deep-analysis.py \
--slug my-client \
--current-start 2026-02-01 --current-end 2026-02-28 \
--prior-start 2026-01-01 --prior-end 2026-01-31
# YTD vs prior YTD
python3 scripts/pipelines/scf-deep-analysis.py \
--slug my-client --ytd --year 2026
# Skip GL drill-down (faster — use when GL is unavailable or not needed)
python3 scripts/pipelines/scf-deep-analysis.py \
--slug my-client \
--current-start 2026-03-01 --current-end 2026-03-31 --skip-gl
# Custom output directory
python3 scripts/pipelines/scf-deep-analysis.py \
--slug glowlabs \
--current-start 2026-03-01 --current-end 2026-03-31 \
--out ~/Desktop/reports
# Sandbox mode (QBO sandbox environment)
python3 scripts/pipelines/scf-deep-analysis.py \
--slug glowlabs \
--current-start 2026-03-01 --current-end 2026-03-31 --sandbox
| Argument | Required | Description |
|---|---|---|
--slug | ✅ | Company slug (must match qbo-client connection) |
--current-start | ✅* | Current period start YYYY-MM-DD |
--current-end | ✅* | Current period end YYYY-MM-DD |
--prior-start | ❌ | Prior period start — auto-calculated if omitted |
--prior-end | ❌ | Prior period end — auto-calculated if omitted |
--ytd | ❌ | YTD mode: Jan 1 → end of last completed month |
--year | ❌ | Year for --ytd (default: current year) |
--skip-gl | ❌ | Skip GL drill-down (faster run) |
--out | ❌ | Output directory (default: ~/Desktop) |
--sandbox | ❌ | Use QBO sandbox environment |
*Required unless --ytd is used.
report {slug} cf.cache/scf-deep-analysis/{slug}.json--skip-gl flag used.cache/scf-deep-analysis/{slug}.json
Stored after each run. Contains:
flat_map — all CF line items and amountstotals — section totals (operating, investing, financing, net_change, ending_cash)cf_quality — CF quality labelfcf — Free Cash Flow amountnet_income — Net Income for the periodsaved_at — ISO date of last runOperating CF / Net Income
| Ratio | Quality | Color |
|---|---|---|
| ≥ 1.0x | ✅ Quality Earnings — cash-backed | Green |
| 0.5–1.0x | ⚠ Adequate — partially cash-backed | Yellow |
| < 0.5x | ⚠ Low Quality — accrual-heavy | Orange |
| < 0 | 🔴 Cash Drain — cash negative despite reported profit | Red |
FCF = Operating CF + CapEx (CapEx is negative outflow, so this subtracts it)
CapEx detected by keyword matching in investing section (equipment, property, asset, capital expenditure, etc.)
.cache/scf-deep-analysis/ — separate from scf-quick-compare cache| Pipeline | Use When |
|---|---|
scf-quick-compare.py | Quick CF period-over-period snapshot (4 tabs, no GL) |
scf-deep-analysis.py | Controller-level CF with GL drill-down, CF quality, FCF, WC movement |
pl-deep-analysis.py | Same depth for P&L (not CF) |
budget-builder.py | Build annual CF budget / BvA |