← 返回 Skills 市场
samledger67-dotcom

BS Deep Analysis

作者 samledger67-dotcom · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
233
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install bs-deep-analysis
功能描述
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...
使用说明 (SKILL.md)

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

scripts/pipelines/bs-deep-analysis.py

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


Usage

# 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

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

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

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

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

Materiality Thresholds

Metric Threshold
Absolute change ≥ $2,500
Percentage change ≥ 10%
Equity change (tighter) ≥ 5%
Working capital watch Current ratio \x3C 1.5x
Working capital critical Current ratio \x3C 1.0x
ST debt concentration warning ST debt > 60% of total
Equity rollforward diff flag ≥ $500

Dependencies

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

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


Related 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

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)
安全使用建议
Do not run or supply credentials to this skill yet. The SKILL.md expects a local pipeline script and a connected 'qbo-client' but the skill bundle contains no code and declares no QBO credentials—this is an incoherence. Before installing or using: 1) Ask the publisher for the source repository or the exact script referenced (verify its code and origin). 2) Confirm what authentication method is used for QBO (OAuth client, API key, service account) and where credentials are stored; never paste secrets into an unverified interface. 3) Verify how GL_MAX_ROWS_PER_ACCOUNT (and any other config) is set and whether any sensitive data is transmitted off your machine. 4) Run the pipeline in a controlled environment (sandbox VM) first and inspect .cache files and generated Excel output for unexpected network calls or telemetry. If the publisher cannot provide a trustworthy code repo and explicit credential requirements, treat the skill as untrusted.
功能分析
Type: OpenClaw Skill Name: bs-deep-analysis Version: 1.0.2 The skill bundle contains metadata and documentation for a QuickBooks Online balance sheet analysis tool. The SKILL.md file describes a legitimate financial reporting pipeline that performs horizontal/vertical analysis, calculates ratios, and generates Excel workbooks. No evidence of malicious intent, data exfiltration, or prompt injection was found; the described behaviors (QBO API access and local file writing) are strictly aligned with the stated purpose of financial analysis.
能力评估
Purpose & Capability
The skill's stated purpose is to pull data from QuickBooks Online (QBO) and run a local Python pipeline. However, the package declares no required credentials, no primary credential, and no config paths even though the SKILL.md repeatedly references a 'qbo-client' connection and a sandbox flag. That is inconsistent: a QBO integration normally requires API keys/tokens or a configured client. Also the SKILL.md references a local script path (scripts/pipelines/bs-deep-analysis.py) that is not included in the skill bundle.
Instruction Scope
Instructions direct running a local Python script, accessing QBO to pull multiple reports (BS snapshots, GL, P&L), and writing cache and Excel outputs to disk. The instructions also reference a configurable limit (GL_MAX_ROWS_PER_ACCOUNT). The skill does not instruct exfiltration to external endpoints, but it does assume access to QBO credentials and local filesystem paths (.cache and output dirs). The combination of assuming privileged access (QBO) and missing authentication details is a scope/information gap that could lead users to supply credentials without knowing where code runs.
Install Mechanism
This is an instruction-only skill with no install spec and no included code files. That lowers installation risk (nothing is downloaded or written by an install step). However, the SKILL.md expects a local script to exist; since it's not present, users would need to obtain that code from elsewhere — which is an operational/verification risk but not an install-time code injection in this bundle.
Credentials
No environment variables or credentials are declared in the registry metadata, yet the run instructions require a 'qbo-client' connection and mention a configurable GL_MAX_ROWS_PER_ACCOUNT. A QBO integration is expected to need API credentials or an OAuth client — asking for those implicitly while declaring none is disproportionate and opaque. Users could be prompted to provide sensitive QuickBooks credentials without clarity on where/how they're stored or used.
Persistence & Privilege
The skill does not request always:true and does not modify other skills. It writes a cache file under .cache/bs-deep-analysis/{slug}.json and outputs Excel files to a user directory by default, which is consistent with its stated CDC/cache behavior. Persisting run caches is expected, but users should be aware these caches will contain financial data on disk.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bs-deep-analysis
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bs-deep-analysis 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Updated SKILL.md
v1.0.1
Security cleanup: removed internal references, genericized examples
v1.0.0
Initial release
元数据
Slug bs-deep-analysis
版本 1.0.2
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

BS Deep Analysis 是什么?

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

如何安装 BS Deep Analysis?

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

BS Deep Analysis 是免费的吗?

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

BS Deep Analysis 支持哪些平台?

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

谁开发了 BS Deep Analysis?

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

💬 留言讨论