← 返回
未分类 Key 中文

Month End Close

Orchestrate and validate the full month-end close for a QBO client. Reads client SOP, runs automated close checks, scores each item, proposes journal entries...
编排并验证QBO客户的完整月末结账流程。读取客户SOP,执行自动结账检查,对每项进行评分,并提出日记账建议...
samledger67-dotcom samledger67-dotcom 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 542
下载
💾 1
安装
1
版本
#latest

概述

Month-End Close Checklist — SKILL.md

Orchestrates and validates the full month-end close for a QBO client.

Reads clients/{slug}/sop.md to determine which checks apply,

runs automated close checks against QBO, scores each item,

proposes journal entries for missing items, tracks progress with CDC,

and outputs a controller-ready Excel workbook.


Trigger

Use this skill when:

  • User says "run close", "month-end close", "close checklist", or "close [client] for [month]"
  • Monthly close workflow is needed for any QBO-connected client
  • Re-running close to check if open items have been resolved

Do NOT use for:

  • P&L variance analysis → use pl-quick-compare or pl-deep-analysis
  • Bank reconciliation only → use bank-reconciliation
  • Budget vs. actual → use budget-vs-actual

Script Location

scripts/pipelines/month-end-close.py

Usage

# Standard close run
python3 scripts/pipelines/month-end-close.py --slug sb-paulson --month 2026-03

# Skip GL drill (faster; prepaid/depr/payroll checks have limited data)
python3 scripts/pipelines/month-end-close.py --slug willo-salons --month 2026-02 --skip-gl

# Re-run as items get resolved (CDC tracks progress between runs)
python3 scripts/pipelines/month-end-close.py --slug glowlabs --month 2026-03

# Force fresh QBO pulls (ignore CDC cache)
python3 scripts/pipelines/month-end-close.py --slug sb-paulson --month 2026-03 --rerun

# Custom output directory
python3 scripts/pipelines/month-end-close.py --slug sb-paulson --month 2026-03 --out ~/Desktop/close

# QBO Sandbox
python3 scripts/pipelines/month-end-close.py --slug sb-paulson --month 2026-03 --sandbox

Arguments

ArgumentRequiredDescription
---------
--slugCompany slug (must match qbo-client connection)
--monthClose period in YYYY-MM format (e.g. 2026-03)
--skip-glSkip GL pull — faster but prepaid/depr/payroll checks limited
--rerunForce all checks fresh — ignores CDC state for check selection
--outOutput directory (default: ~/Desktop)
--sandboxUse QBO sandbox environment

Close Checks

CheckIDDefaultSOP Override
------------
Bank Reconciliationbank_reconDisable: bank reconciliation: ❌
Trial Balance (D=C)trial_balanceAlways enabled
AP Agingap_agingDisable: ap aging: ❌
AR Agingar_agingAuto-disabled if SOP says no AR/POS
Prepaid Amortizationprepaid_amortizationDisable: prepaid: ❌
DepreciationdepreciationDisable: no fixed assets
Payroll Reconciliationpayroll_reconDisable: payroll: ❌
Revenue Recognitionrevenue_recognitionDisable: deferred revenue: ❌
Accrued Expensesaccrued_expensesDisable: accruals: ❌
Intercompany Eliminationsintercompany❌ OFFEnable: multi-entity or intercompany: ✅

SOP Integration

The pipeline reads clients/{slug}/sop.md and parses it for:

  • AR Aging — auto-disabled if SOP contains: no accounts receivable, POS collection,

AR aging: ❌, or AR: Not applicable

  • Intercompany — disabled by default; enabled if SOP contains: multi-entity,

intercompany: ✅, or consolidated

  • Watch notes — special SOP signals become tab notes in Excel

(e.g. interest expense, cash burn, deferred revenue, SAFE)

Client SOP Quick Reference

ClientAR?Interco?Notes
------------
willo-salons❌ No❌ NoPOS/cash — no AR
glowlabs❌ No❌ NoGaming/Web3; high burn
sb-paulson✅ Verify❌ NoAdvisory; watch interest expense
opdoCheck SOP❌ NoReview SOP

Outputs

Excel Workbook

Saved to ~/Desktop/MonthEndClose_{slug}_{YYYY-MM}_Run{N}.xlsx

TabContents
------
Close ChecklistDashboard — PASS/FAIL/ACTION per item + completion % + proposed JE count
Trial BalanceFull TB with debit/credit validation, per-account rows, totals
Proposed EntriesAll JEs needed for missing/flagged items, sorted HIGH→MEDIUM→LOW
CDC LogStatus changes between runs — tracks close progress over time

Completion Score

Completion % = (PASS + N/A) / Total × 100
Close is "READY" when FAIL = 0 and ACTION = 0

Proposed JE Format

Each proposed entry has:

  • Debit Account
  • Credit Account
  • Amount (Decimal; "TBD" if unknown)
  • Memo / basis
  • Urgency: HIGH | MEDIUM | LOW

CDC (Change Data Capture)

Cache file: .cache/month-end-close/{slug}-{YYYY-MM}.json

  • First run: full snapshot saved, no delta
  • Subsequent runs: shows status changes (FAIL→PASS = "Resolved ✅", PASS→FAIL = "Regressed ⚠️")
  • Re-run the pipeline as items are resolved — CDC tracks progress automatically
  • Use --rerun to force fresh QBO pulls without clearing CDC history

Check Logic Summary

Bank Recon

Checks .cache/bank-reconciliation/{slug}.json for a completed reconciliation matching the

close period end date. If found and is_reconciled: true → PASS. If different period or

missing → ACTION NEEDED with command to run.

Trial Balance

Pulls QBO TB report via qbo report tb, sums all debit and credit columns, validates

|debits - credits| < $0.02. OUT OF BALANCE → FAIL with proposed suspense entry.

AP / AR Aging

Scans QBO Balance Sheet for AP/AR account balances. Flags material balances ≥ $500 as

ACTION NEEDED. Proposes accrual entry for largest outstanding item > $2,500.

Prepaid Amortization

Compares prior-month BS prepaid balances to current. If prior balance > $0 and no GL

activity or balance reduction → ACTION NEEDED with estimated monthly amort entry

(straight-line over 12 months as placeholder).

Depreciation

Checks fixed asset accounts on BS + scans GL for depreciation/journal entries to

accumulated depreciation accounts. No activity on period with known fixed assets → ACTION NEEDED.

Payroll Reconciliation

Sums payroll GL accounts for current period, compares to prior P&L payroll total.

Flags if variance > $500 or > 15% month-over-month.

Revenue Recognition

Checks deferred revenue BS balance for movement. No change with known balance → ACTION NEEDED

with estimated recognition entry (straight-line over 12 months as placeholder).

Accrued Expenses

Compares accrual account balances prior-vs-current. Flags individual account changes ≥ $1,000

or near-zero reversal from significant balance.

Intercompany

Only runs if enabled by SOP. Checks for non-zero intercompany/due-to/due-from balances.

Net balance ≠ $0.02 → ACTION NEEDED with elimination entry.


Dependencies

  • Python 3.10+ with openpyxl (pip install openpyxl)
  • Node.js QBO client with valid auth tokens
  • Client SOP at clients/{slug}/sop.md (optional but recommended)
  • Completed bank-recon run for bank_recon check to PASS

Related Pipelines

PipelineScriptUse
---------
P&L Quick Comparepl-quick-compare.pyRevenue/expense variance
P&L Deep Analysispl-deep-analysis.pyGL drill-down + accrual proposals
Bank Reconciliationbank-reconciliation.pyMust complete before close PASS

Bank Recon must be run first — month-end-close reads its CDC cache to verify completion.


Notes

  • All financial math uses Python Decimal for precision
  • Proposed JE amounts marked "TBD" when determination requires human review (e.g. depreciation schedule)
  • SOP parsing is additive: missing SOP = all checks enabled with defaults
  • Run multiple times freely — CDC log accumulates close progress history

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-01 23:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

All-Market Financial Data Hub

financial-ai-analyst
基于东方财富数据库,支持自然语言查询金融数据,覆盖A股、港股、美股、基金、债券等资产,提供实时行情、公司信息、估值、财务报表等,适用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,满足机构与个人需求。返回结果为
★ 133 📥 42,777
business-ops

Budget Vs Actual

samledger67-dotcom
对企业进行月度及季度预算与实际差异分析,比较计划与实现的收入、费用及利润率,识别有利/不利差异。
★ 0 📥 1,736
professional

Stock Market Pro

kys42
Yahoo Finance (yfinance) 驱动的股票分析技能:行情报价、基本面、ASCII 趋势图、高分辨率图表(RSI/MACD/BB/VWAP/ATR),以及可选的网络...
★ 165 📥 40,364