/paywhere-smb:cash-bridgefrom paywhere-smb
Reconciles "the books say I made money" with what the Operating balance actually did, in either direction: cash down while profitable, or cash up by more than profit. A profit-to-cash bridge for one month (the last full month by default) built from the accrual P&L and two balance-sheet snapshots — receivables change, payables change, inventory and equipment, undeposited funds, sales-tax and other liabilities, owner distributions, money moved to the reserve and savings, depreciation — with each line's source named, a residual, and the bank's own change in Operating as the check. Read-only, five calls in one turn. Use when the owner says "QuickBooks says I made money last month, why is my cash lower," "why doesn't my bank balance move with my profit," "I made X last month, where is it," "my cash went up more than I made," "profit vs cash," "where did the profit go," or "bridge profit to cash." NOT for "how am I doing" or "what's my balance" — those need no skill.
Ships in paywhere-smb. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Profit is an accounting opinion about a month; the Operating balance is what cleared. The two differ for listed reasons, and every reason is a line on the balance sheet or a row at the bank. This skill lists them with amounts from the source that knows each one. Nothing here proposes or moves money.
Do not assume the owner's premise. Compute the sign: in a slow month cash falls while the P&L is positive (invoices out, draws and taxes paid); after a busy one cash rises by more than profit (earlier months' invoices collected). Say which happened in the first sentence, and if the owner's direction or figure disagrees with the numbers, say so there too.
User: "the books say I made money last month, why is my cash lower?"
→ Resolve M = the month asked (default: last full calendar month, from the actual date)
→ In ONE turn, in parallel:
get_profit_and_loss {start_date: M-01, end_date: M-end, accounting_method: "Accrual"} (net income, depreciation)
get_balance_sheet {end_date: M-end} (AR, AP, inventory, fixed assets, liabilities, equity, bank accounts)
get_balance_sheet {end_date: (M−1)-end} (the same, a month earlier → every Δ)
list_accounts (Operating by role; reserve and savings names)
→ Then, the moment list_accounts returns, one more read:
query_transactions {accountNumbers:[Operating], dateFrom: M-01, dateTo: M-end,
aggregate: true, includeTransactions: true, sort: "amount_desc", limit: 20}
(net = the bank's change in Operating; the 20 largest rows name the big debits)
`query_transactions` takes EXACT unmasked account numbers and reads EVERY account when
`accountNumbers` is omitted or empty, so a scoped read cannot go in the same round as the
`list_accounts` that supplies the number. Never guess it and never leave the field empty to
keep one round: an unscoped read folds the owner's own transfers (tax sweeps, savings moves)
into the totals, and they do not net out — a transfer out is a debit whether or not it comes
back somewhere else. If you have already read unscoped, re-read scoped rather than reasoning
from the wide number, and do not narrate the correction to the owner.
→ Bridge: net income → adjustments (each with its source) → change in cash; residual; bank check
→ Reply under 25 lines, the gap first
Never rebuild receivables or payables from a year of invoices, payments or
bills: the balance sheet already carries open AR and AP at each date. Never
pull bill payments to price early vendor payments here; if the owner asks
about that habit, point at ../ap-timing.
Progress tracking: call TaskCreate once per step below before starting
Step 1 (subject = the step's name, e.g. "Step 1 — Read"), then TaskUpdate
it to in_progress when you begin that step and completed when it's done.
This is what drives Cowork's visible progress display — it does not happen
unless you do it explicitly.
Pick M first: the last full calendar month unless the owner names one. If
the owner quotes a profit figure, use their month and compare the figure to
the P&L in Step 2. Then issue the five reads above at once. The Operating
account is identified by role from list_accounts (the primary checking,
never a hardcoded number); the balance-sheet bank rows are matched to the
bank accounts by name.
Degraded modes: no QuickBooks → bank-only. Report the month's net from the aggregate and the 20 largest rows grouped by what they are (owner draws, tax payments, transfers to reserve or savings, equipment vendors, payroll); say net income is unavailable and skip the bridge. No Paywhere → books only. Bridge to the balance sheet's Operating row and label the result "per the books, not the bank". Never retry in a loop.
Net income and depreciation come from the P&L. Every other line is a
difference between the two balance sheets (Δ = end of M − end of M−1),
signed by its effect on cash. A line with nothing behind it is $0, not
omitted. Row-to-line mapping, signs and residual causes:
reference/method.md.
| Line | Source | Effect on cash |
|---|---|---|
| Net income | P&L | + |
| Depreciation / amortization | P&L | + (non-cash) |
| Receivables (ΔAR) | balance sheets | grew → −; shrank → + (earlier months collected) |
| Undeposited funds and other current assets | balance sheets | grew → − |
| Inventory | balance sheets | grew → − |
| Equipment / fixed assets (gross) | balance sheets | bought → − |
| Payables (ΔAP) and credit cards | balance sheets | grew → + |
| Sales tax and other current liabilities | balance sheets | grew → + (collected, not yet remitted) |
| Loans | balance sheets | drawn → +; paid down → − |
| Owner distributions / draws | balance sheets (equity), confirmed by the bank rows | − |
| Moved to Tax Reserve / Savings (Δ of the other bank accounts) | balance sheets, confirmed by the bank rows | − |
| Residual | computed | the table must foot |
The sum equals the books' change in Operating. The bank's change is the
aggregate.net of the one query_transactions call. The two normally match
within a few dollars; a larger difference is the books-vs-bank gap (bank
fees or deposits not yet booked, a transaction dated across the month
boundary) — report it as its own line, not as residual. Use the 20 largest
rows to attach a date to the big lines: the draw, the tax payment, the
reserve transfer, the equipment purchase.
{Month YYYY}: the books show net income of ${ni}; Operating {fell|rose} ${chg} ({open} → {close}).
{One sentence: the gap and its top two drivers, in plain words.}
Net income (books, accrual) +${ni}
Depreciation (non-cash) P&L +${dep}
Receivables {grew|shrank} balance sheets {−|+}${dAR}
Undeposited funds / other assets balance sheets {−|+}${}
Inventory balance sheets {−|+}${}
Equipment purchased balance sheets −${}
Payables & cards {grew|shrank} balance sheets {+|−}${}
Sales tax & other liabilities balance sheets {+|−}${}
Owner distributions equity · bank {date} −${}
Moved to reserve / savings bank {date} −${}
Residual ±${}
= Change in Operating (books) ${chg}
Bank: Operating net for the month ${net} ({count} posted rows); books-vs-bank gap ${} {cause or "none"}.
{One closing sentence: structural (draws, taxes — the profit is real but committed) or
timing (receivables — it arrives later, and swings back). If AR is the driver, offer reminder drafts in Gmail (`create_draft` only; the owner sends).}
Omit $0 lines from the reply only when the table still foots and the reply would otherwise exceed 25 lines. If the residual exceeds 5% of revenue, look for the missing balance-sheet row before presenting; if still unexplained, label it "unexplained" rather than forcing it to zero.
reference/method.md — balance-sheet rows → bridge lines, signs, residual and books-vs-bank causes../ap-timing/SKILL.md — when early vendor payments are the questioncreate_draft only; the owner sends) — no skillWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub paywhereb/paywhere-claude-plugins --plugin paywhere-smb15 skills in this plugin
/ap-timingAnswers "am I paying anyone early, and what should I hold?" for accounts payable in one QuickBooks call: every open bill split into due-within-7-days and not-yet-due, plus each vendor's 12-month habit (bills paid at least 5 days before the due date, mean days early, dollars paid early, habitually early when 3 or more bills were). Produces a PAY NOW / HOLD / NOT YET DUE table with the cash a hold keeps in the account until the due date, and checks the pay-now total against the Operating balance. Read-only; hands off to pay-bills to stage payments. Use when the owner says "am I paying anyone early," "which vendors do I pay earlier than necessary," "what should I hold," "what's due this week and what can wait," or "what bills are coming due." NOT for staging or paying bills — that is pay-bills.
/big-purchase-decisionAnswers "can I afford this?" for a large purchase (a work van, a truck, equipment) from cleared cash rather than book profit, in five tool calls: today's balance, twelve months of monthly cash from the bank (the year's highs and lows), the last payroll debits (the cushion), and the dealer / lender / insurer emails for the price, terms and deadline. Always answers SHORT — a verdict, the number behind it, one caveat, under 120 words — and offers depth rather than volunteering it; preparing a lender application is credit-readiness, invoked explicitly. Read-only, stages nothing. Use when the owner says "can I afford the van / a new truck / new equipment," "can I buy a van this week for $X," "cash or finance," "when is the safest month to buy," "should I buy a second van," or "what if I put $10k down."
/credit-readinessPrepares a loan or credit application from cleared cash — generic, any borrowing purpose: twelve month-end balances of the operating account from the bank's monthly aggregates, the three troughs and what caused them, the deepest peak-to-trough drop as the working-capital gap, a facility sized from that gap (gap x 1.25, rounded up to $5k), the repayment source, the receivables and the books' P&L and balance sheet the lender will ask for, and any lender document checklist found in email. Six read calls in one parallel turn, then one file: bank/credit-readiness-YYYY-MM-DD.md. Read-only, stages nothing. EXPLICITLY INVOKED ONLY — the long-form package a lender asks for, never volunteered mid-conversation. Use when the owner says "what should I bring to the bank," "prepare a package for the bank," "get me ready for the loan application," "how much credit do I need," or "what's my working capital gap." NOT for "can I afford this" — that is big-purchase-decision, which answers in a line or two and offers this.
/daily-cash-briefThe scheduled morning cash brief (autonomous agent). Every weekday it reads the bank, the books and the calendar in one parallel turn, writes briefs/YYYY-MM-DD.md (balances by role, true available cash, this week's dated obligations, exceptions: overdue invoices with no bank credit, bills due within 7 days, not-yet-due bills to hold because the vendor is habitually paid early, the tax-reserve shortfall, pending authorizations) and STAGES one batch (reserve top-up transfer + bills due within 7 days) for the owner to approve on the bank's /confirm page with a passkey. Proposes, never executes; drafts only; degrades gracefully; about ten tool calls (a scheduled agent is exempt from the six-call bar). Use when the owner says "run my morning cash brief," "daily cash brief," "morning brief," or schedules "every weekday at 7:30 run my morning cash brief." NOT for "what's my cash" or "show my balances" asked in conversation — those get a direct answer, not a brief.
/demo-injectPRESENTER-ONLY, demo deployments only. Posts live "money just landed" or "payment bounced" events into the presenter's own mock-bank world with the demo-seeder tools (deposit_to_mock_account, withdraw_from_mock_account) so the next owner prompt sees them: simulate a late customer paying, an emergency-call card settlement, a failed autopay. Reads the amounts from the live answer key; never hardcodes them. Not an owner skill. Use when the presenter says "inject a deposit," "simulate a customer paying," "simulate Westport paying," "post a demo deposit," "make the autopay fail," "demo inject," or "live inject."
/demo-setupBuilds the presenter's own Nick's HVAC demo bank world on the Paywhere connector's demo-seeder tools (present only on demo deployments): preflight, one approval, an ASYNC seed job polled to completion, then a readback that asserts balances, saved payees and enrichment through the same connector the demo runs on, and reports the answer-key summary (true available cash, reserve shortfall, largest overdue, bills due this week, Friday payroll). Date-aligned to the shared read-only QuickBooks books via get_demo_dates. Presenter use only. Use when someone says "set up the demo," "reset the demo," "seed the demo world," "rebuild the sandbox," or "/demo-setup."