/paywhere-smb:plan-payrollfrom paywhere-smb
Answers "am I good for payroll?" from the bank: the live Operating balance made reserve-aware (minus the sales-tax reserve shortfall; pending authorizations named, never subtracted), the next payroll run read from the processor's debit pattern at the bank, every open bill due on or before the pay date (not-yet-due bills from habitually-early vendors excluded), and a landed-but-unbooked check so a customer whose money already arrived is never chased. Six reads in two rounds, the headroom equation with every number shown, then the recovery options if short: collect named invoices, hold what is not yet due, or a Business Savings to Operating top-up moved with one transfer_funds on the owner's yes and confirmed with a balance read. No verdict without the bank. Use when the owner says "am I good for payroll Friday," "can I make payroll," "will payroll clear," "am I good for payroll," or "is payroll covered." NOT for "when is payroll" or "what was the last payroll" — those are one bank query, 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.
None: SKILL.md is the whole skill.
One question, one equation, from cleared cash. The bank says what is in the account and what payroll costs; the books say what else is due before payday and what is owed to the business. No unlanded inflow is ever counted.
This skill moves money in exactly one case: the owner says yes to the savings top-up. That is an internal transfer between the owner's own accounts — reversible, no counterparty — so it runs directly as ONE
transfer_funds{fromAccountNumber, toAccountNumber, amount, description}and is confirmed withget_account_balance; report the new Operating balance, never a move the call did not confirm, and never move anything before the yes. Vendor payments are different and are not staged here. See../_shared/APPROVAL.md.
User: "am I good for payroll?"
→ Round 1 — five reads in parallel, never one after another:
list_accounts (Operating, Tax Reserve, Business Savings; balances; exact numbers)
query_transactions {direction:"debit", dateFrom:<8 weeks ago>, status:["posted"], limit:250} (all accounts ON PURPOSE: the processor's runs on Operating + the last remittance debit on the reserve)
get_sales_tax_collected {date_from:<1st of last month>} (reserve shortfall — the books side in one call)
get_vendor_payment_timing (open bills with due dates; which vendors are habitually paid early)
get_aged_receivables (open AR — the recovery path, never cash)
→ Round 2 — the moment list_accounts returns, one read:
query_transactions {accountNumbers:[<Operating>], direction:"credit", dateFrom:<14 days ago>, status:["posted"]} (landed-but-unbooked)
`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.
→ headroom = operating − committed(through the pay date) − earmarked (terms: ../_shared/AVAILABLE-CASH.md)
i.e. Operating − (next payroll + bills due on/before the pay date + recurring debits landing by then) − reserve shortfall
→ Reply: the headroom first, the equation, "Next up", the options if short, "Move the top-up?"
User: "yes"
→ ONE transfer_funds {fromAccountNumber:<Business Savings>, toAccountNumber:<Operating>,
amount:<top-up>, description:"Payroll top-up from savings"}
→ get_account_balance {accountNumber:<Operating>} → the new balance, read back
→ One closing line: moved, Operating now $X, headroom now $Y.
Nothing else is read: no email, no journal entries, no calendar, no forecast.
If list_accounts lacks balances, get_account_balance joins the same turn.
The terms are shared with every other skill that answers "how much of this
balance can I use" — operating, committed, earmarked and the buffer are defined
once in ../_shared/AVAILABLE-CASH.md. This
skill answers will it clear, so it subtracts committed and earmarked and no
buffer; sweep-to-savings answers can I take money out and subtracts the
buffer as well. Same definitions, same figures, different question — never
give the owner two numbers for the same money.
Budget: about 30 seconds; eight calls at most including the transfer and its balance read.
get_vendor_payment_timing), what is owed to the business
(get_aged_receivables) and how much of the reserve is spoken for
(get_sales_tax_collected).Without Paywhere: no verdict — say so in one line, then list what the books say is due on or before the pay date and stop. Without QuickBooks: the equation runs with bills = "owner-stated (unconfirmed)" and no reserve shortfall figure — say both.
Progress tracking: call TaskCreate once per numbered step below before
starting step 1 (subject = the step's name, e.g. "1. Read everything at
once"), 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.
Issue the six reads in the Quick start in one turn. Accounts by role,
never by number: Operating = primary checking; Tax Reserve = the savings
named for tax or reserve; Business Savings = any other savings. More than one
plausible Operating account → ask which funds payroll, once. If the 8-week
debit pull comes back truncated, re-issue it for Operating only with the
processor's stem once you have seen it.
From the Operating debits, the payroll processor is the payee whose debits recur on a fixed cadence (weekly or every two weeks, same weekday) as a pair or trio posting within two days — net pay, taxes, sometimes a fee. If the owner has named the processor, filter on that stem. Next payroll = the last run's total; if the two most recent runs differ by more than about 15%, use the larger and say why (overtime seasons make the last run the better guide). Pay date = the last debit date plus the cadence, or the date the owner named. No processor pattern in 8 weeks → ask once for the amount and date and label the verdict "owner-stated payroll".
get_sales_tax_collected was pulled from the 1st of last month — the widest
the window can be. The window is the months not yet remitted: the reserve's
last remittance debit (in the same 8-week debit pull — a debit to the
revenue agency, not a transfer) tells you which. Debit last month → window
= 1st of last month … today; debit this month → 1st of this month … today,
re-totalled from byPayment[] (txnDate on or after the 1st). Shortfall =
collected.total − Tax Reserve balance, floor 0. Money already owed to a
tax authority is not payroll money. Full method:
../tax-reserve-check/reference/true-available.md.
From get_vendor_payment_timing: every openBills[] row with dueDate on
or before the pay date, plus everything overdue. notYetDue[] rows are not
obligations this week — and a not-yet-due bill from a vendor flagged
habituallyPaidEarly is exactly the kind the owner would normally pay early;
name it under "hold" so it stays out of the equation. Bills due in the seven
days after payday go under Next up, dated, not subtracted.
Match the 14-day Operating credits against get_aged_receivables open
balances by amount (± $0.50) and counterparty in the descriptor. A match is
money that already landed: it is already inside the Operating balance, so it
is not added to cash, but it is crossed out of collectible AR and the
QuickBooks payment application is narrated in one line (the connector is
read-only). Never chase a customer who paid this week. Ambiguous match →
show both candidates, do not decide.
Operating balance (cleared) $A
− tax-reserve shortfall $R ← owed to the tax authority, not yours
= spendable $S
− next payroll (net + taxes) on <pay date> $W ← last processor run
− bills due on/before <pay date> $B ← open bills, holds excluded
= headroom after payroll $S − $W − $B
Next up (NOT in the headroom): {bills, remittance, other dated debits in the 7 days after payday}
Pending card authorizations are already netted by the bank — name them if the account payload shows them, never subtract. Business Savings is backstop capacity, reported separately, never counted; the Tax Reserve is never a source. If the headroom is positive: say so, show the number, and ask whether to chase outstanding AR anyway. If negative, rank the options:
create_draft only; the owner sends).
Lead with this.transfer_funds, then read the balanceOn the owner's yes: transfer_funds {fromAccountNumber:<Business Savings, exact unmasked>, toAccountNumber:<Operating, exact unmasked>, amount, description:"Payroll top-up from savings"}. An internal transfer between the
owner's own accounts executes at once — no proposal, no /confirm page — and
is reversible, which is why the yes in the reply is the only gate. Then
get_account_balance on Operating and report what the bank now shows, in one
to three lines: the amount moved, the new Operating balance, the headroom it
produces. If the call returns { error }, say so in one line and do not
claim a move. Never from the Tax Reserve; never before the owner's yes.
Headroom after payroll on {pay date}: ${H} ({covered / short ${-H}})
Operating (cleared) ${A}
− tax-reserve shortfall ${R} (owed to the tax authority)
= spendable ${S}
− payroll {pay date} (last run) ${W}
− bills due on/before {pay date} ${B} {n} bills: {vendor ${x} due {d}, …}
= headroom ${H}
Held (not yet due, normally paid early): {vendor ${y} due {d}, …}
Already landed, not yet booked: {customer ${z} on {d}} — not chased, not double-counted
Next up (not in the headroom): {item ${v} on {d}, …}
Business Savings ${bs} · pending authorizations ${p} already netted by the bank
If short: (a) collect {invoice, customer, ${amt}, {days} late} … (b) hold {…} keeps ${…}
(c) move Business Savings → Operating ${X}. Move ${X} from savings to Operating?
get_account_balance on
Operating (and one 1-day credit query if the owner names the payer);
recompute the equation and say what changed in one sentence.transfer_funds
between the owner's own accounts, then a balance read; never before the
yes, never from the Tax Reserve, never a vendor payment from this skill.create_draft; never send.../_shared/APPROVAL.md · ../_shared/AUTONOMY.md../tax-reserve-check/reference/true-available.md — the reserve shortfall, short form; ../tax-reserve-check/SKILL.md in full../ap-timing/SKILL.md — vendor payment habits behind option (b); option (a)'s reminders are plain Gmail drafts (create_draft only; the owner sends), no skillWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
15 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."
npx claudepluginhub paywhereb/paywhere-claude-plugins --plugin paywhere-smb