ClawHub
SkillsPluginsOfficialDocsSupport
K
SkillsBS Deep Analysis

BS Deep Analysis

samledger67-dotcom@samledger67-dotcom
Controller-level Balance Sheet deep analysis from QuickBooks Online. Pulls current and prior period BS, runs 3-month rolling averages, GL drill-down for mate...

Install

$
openclaw skills install @samledger67-dotcom/bs-deep-analysis
Security check
Review
Version
1.0.2
Updated
May 11, 2026
License
MIT-0

Latest: v1.0.2

Updated SKILL.md

Finance
#balance-sheet#excel#accounting#qbo
Full description

Controller-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.

BS Deep Analysis

What This Skill Does

Controller-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:

  • Monthly close deliverable needs a BS review (not just a P&L comparison)
  • Client needs working capital health check or current ratio flag
  • Equity rollforward reconciliation is needed for a close
  • Material balance changes on cash, AR, inventory, or debt need narrative explanation
  • Common-size (vertical) analysis is required for a lender or board report

NOT for:

  • Cash flow statement analysis — use a dedicated CF pipeline
  • P&L variance analysis — use pl-deep-analysis.py
  • Multi-entity consolidations — this is a single-entity BS pipeline
  • Real-time balance changes (it's snapshot-based, not bank-feed)

Pipeline Location

text
scripts/pipelines/bs-deep-analysis.py

Cache directory: .cache/bs-deep-analysis/{slug}.json


Usage

bash
# 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

Arguments

ArgumentRequiredDescription
--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

What It Pulls from QBO

  1. Balance Sheet (as-of) — current period
  2. Balance Sheet (as-of) — prior period
  3. Balance Sheet (as-of) — 3 prior month-ends for rolling averages
  4. General Ledger — current period GL for flagged accounts (unless --skip-gl)
  5. P&L — current period net income for equity rollforward

Analysis Modules

1. Horizontal Analysis (Period-over-Period)

  • Every BS line: prior → current → $ change → % change
  • Material threshold: ≥$2,500 absolute OR ≥10% change rate
  • Flagged accounts sorted by absolute dollar change

2. Vertical Analysis (Common-Size)

  • Every BS line as % of total assets
  • Prior period % vs. current period %
  • % point change highlights structural shifts

3. 3-Month Rolling Averages

  • Pulls 3 prior month-end BS snapshots
  • Per-account rolling average as trend baseline
  • Rolling delta and rolling % vs. current balance

4. GL Drill-Down

  • Transaction-level detail for all flagged accounts
  • Vendor/payee aggregation: top contributors by dollar
  • Max 50 transactions per account (configurable via GL_MAX_ROWS_PER_ACCOUNT)

5. Working Capital Deep Dive

  • Current assets vs. current liabilities decomposition
  • Current ratio, quick ratio, cash ratio
  • WC delta decomposed: cash change, AR change, inventory change, AP change
  • Health classification: HEALTHY / WATCH / CRITICAL

6. Debt Schedule Analysis

  • Short-term vs. long-term debt split
  • D/E ratio and D/A ratio
  • ST concentration warning: flags if ST > 60% of total debt
  • Leverage risk classification: LOW / LOW-MEDIUM / MEDIUM / HIGH

7. Equity Rollforward

text
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)
  • Retained earnings bridge separately
  • Reconciling difference investigation prompt

8. Controller Findings

  • Narrative: "Cash decreased $45K because AP payments of $60K exceeded collections of $15K"
  • Urgency-tagged: HIGH / MEDIUM / LOW
  • GL vendor attribution embedded in findings

9. Action Proposals

  • Specific recommended actions per finding
  • Urgency-ranked: HIGH → MEDIUM → LOW
  • Categories: LIQUIDITY, CASH MANAGEMENT, COLLECTIONS, INVENTORY, DEBT MANAGEMENT, LEVERAGE, EQUITY INTEGRITY, BALANCE SHEET

10. CDC (Change Data Capture)

  • Compares current BS flat map vs. prior run cache
  • Tracks: new accounts, removed accounts, balance changes
  • Cache saved to .cache/bs-deep-analysis/{slug}.json

Excel Output — 7 Tabs

TabContents
SummaryKPI table, key ratios, controller findings, action proposals
DetailFull BS with prior/current/delta/rolling avg per account
⚠ FlagsMaterial change accounts + findings summary
GL Drill-DownTransaction-level detail for flagged accounts
Common-Size AnalysisVertical analysis: each line as % of total assets
Equity RollforwardPeriod reconciliation + retained earnings bridge
CDC LogBalance changes vs. last pipeline run

Materiality Thresholds

MetricThreshold
Absolute change≥ $2,500
Percentage change≥ 10%
Equity change (tighter)≥ 5%
Working capital watchCurrent ratio < 1.5x
Working capital criticalCurrent ratio < 1.0x
ST debt concentration warningST debt > 60% of total
Equity rollforward diff flag≥ $500

Dependencies

text
pip install openpyxl
Node.js QBO client with valid auth token

QBO auth token must be set (same as all other pipelines).


Related Pipelines

PipelineFileWhen to Use
P&L Deep Analysispl-deep-analysis.pyIncome statement controller review
Financial Ratiosfinancial-ratios.pyFull ratio suite (uses BS data)
BS Deep Analysisbs-deep-analysis.pyThis pipeline — balance sheet focus

Notes

  • All math uses Python Decimal — no float rounding errors
  • GL account names must match BS account names for drill-down attribution (QBO may use slightly different names between reports)
  • Prior month-end is auto-calculated if --prior-end is omitted (always safe for monthly close)
  • --skip-gl reduces runtime significantly; use for quick runs when vendor detail is not needed
  • CDC cache is per-slug; running for a new slug always starts fresh (first run snapshot only)

Related skills

More in Finance
ClawHub

Skills and plugins for OpenClaw agents. Part of the wider OpenClaw ecosystem.

Explore docs

SkillsPluginsOfficialAudits

Publish SkillPublish PluginCreate org

OverviewOpenClawDocsBlog

SupportGitHubDiscord

Built alongside the OpenClaw ecosystem

LobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projectsLobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projects

© 2026 OpenClaw Foundation

Privacy policy·Status·Deployed on Vercel·Powered by Convex

....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals