Install
openclaw skills install bs-deep-analysisController-level Balance Sheet deep analysis from QuickBooks Online. Pulls current and prior period BS, runs 3-month rolling averages, GL drill-down for material changes, and generates a 7-tab Excel workbook with actionable findings. Covers working capital health, current ratio flags, equity rollforward, and common-size vertical analysis.
openclaw skills install bs-deep-analysisController-level Balance Sheet deep analysis from QuickBooks Online. Mirrors the P&L Deep Analysis pattern but for the balance sheet — pulls current + prior period BS, runs 3-month rolling averages, GL drill-down for material changes, and generates a 7-tab Excel workbook with actionable findings.
Use when:
NOT for:
pl-deep-analysis.pyscripts/pipelines/bs-deep-analysis.py
Cache directory: .cache/bs-deep-analysis/{slug}.json
# Current month-end vs. auto prior month-end
python3 scripts/pipelines/bs-deep-analysis.py \
--slug sb-paulson --current-end 2026-03-31
# Explicit prior period
python3 scripts/pipelines/bs-deep-analysis.py \
--slug sb-paulson \
--current-end 2026-03-31 --prior-end 2026-02-28
# Skip GL drill-down (faster, no vendor-level detail)
python3 scripts/pipelines/bs-deep-analysis.py \
--slug sb-paulson --current-end 2026-03-31 --skip-gl
# Custom output directory
python3 scripts/pipelines/bs-deep-analysis.py \
--slug glowlabs --current-end 2026-03-31 --out ~/Desktop/reports
# QBO sandbox
python3 scripts/pipelines/bs-deep-analysis.py \
--slug sb-paulson --current-end 2026-03-31 --sandbox
| Argument | Required | Description |
|---|---|---|
--slug | ✅ | QBO company slug (must be connected in qbo-client) |
--current-end | ✅ | As-of date for current BS (YYYY-MM-DD) |
--prior-end | ❌ | Prior period as-of date (auto = prior month-end) |
--skip-gl | ❌ | Skip GL drill-down (faster) |
--out | ❌ | Output directory (default: ~/Desktop) |
--sandbox | ❌ | Use QBO sandbox environment |
--skip-gl)GL_MAX_ROWS_PER_ACCOUNT)Beginning Equity
+ Net Income
− Distributions / Owner Draws
+ New Contributions / Paid-in Capital
= Computed Ending Equity
vs. Ending Equity per BS (reconciling difference flagged if ≥ $500)
.cache/bs-deep-analysis/{slug}.json| Tab | Contents |
|---|---|
| Summary | KPI table, key ratios, controller findings, action proposals |
| Detail | Full BS with prior/current/delta/rolling avg per account |
| ⚠ Flags | Material change accounts + findings summary |
| GL Drill-Down | Transaction-level detail for flagged accounts |
| Common-Size Analysis | Vertical analysis: each line as % of total assets |
| Equity Rollforward | Period reconciliation + retained earnings bridge |
| CDC Log | Balance changes vs. last pipeline run |
| Metric | Threshold |
|---|---|
| Absolute change | ≥ $2,500 |
| Percentage change | ≥ 10% |
| Equity change (tighter) | ≥ 5% |
| Working capital watch | Current ratio < 1.5x |
| Working capital critical | Current ratio < 1.0x |
| ST debt concentration warning | ST debt > 60% of total |
| Equity rollforward diff flag | ≥ $500 |
pip install openpyxl
Node.js QBO client with valid auth token
QBO auth token must be set (same as all other pipelines).
| Pipeline | File | When to Use |
|---|---|---|
| P&L Deep Analysis | pl-deep-analysis.py | Income statement controller review |
| Financial Ratios | financial-ratios.py | Full ratio suite (uses BS data) |
| BS Deep Analysis | bs-deep-analysis.py | This pipeline — balance sheet focus |
Decimal — no float rounding errors--prior-end is omitted (always safe for monthly close)--skip-gl reduces runtime significantly; use for quick runs when vendor detail is not needed