/paywhere-smb:daily-cash-brieffrom paywhere-smb
The 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.
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.
The morning brief, run unattended before the owner opens the laptop: one
parallel read of the bank, the books and the calendar, one markdown file,
and the day's money movement staged for one passkey approval. It follows
../_shared/AUTONOMY.md and
../_shared/APPROVAL.md. The load-bearing rules,
repeated because this file is loaded on its own:
Stamp
sessionType: "scheduled"andtaskId: "daily-cash-brief"on every bank tool call. Writebriefs/YYYY-MM-DD.md; if today's file already exists, stop and say so. Propose, never execute: the reserve top-up and the due bills are staged with ONEmake_batch_payment(the transfer as a{rail: "transfer", fromAccountNumber, toAccountNumber, amount, description}item, so bills and top-up ship behind one approval), and the returned/confirm/<id>/<nonce>URL is printed verbatim in the run output with itsconfirmation_titleand the sentence "Nothing has moved until you approve this on the bank's page." Never say "paid" or "transferred". A missing connector removes a section, not the run. Drafts only — this skill creates none by default; it never sends mail or creates events.
| Field | Value |
|---|---|
| Schedule | Every weekday at 7:30am |
| Prompt | Run my morning cash brief |
| Working folder | the owner's finance folder (where briefs/ lives) |
Cowork must be open for the run to fire. To see the output without waiting for 7:30, run the same prompt interactively; the file and the staged proposal are identical.
Interactive invocation ("run my morning cash brief" typed by the owner) is
fine: same output, sessionType: "interactive", and you may show the batch
table and ask "Stage these?" before staging.
Dedupe: briefs/YYYY-MM-DD.md exists? → print "Today's brief exists at briefs/YYYY-MM-DD.md — skipping." and stop.
→ In ONE turn, in parallel (sessionType "scheduled", taskId "daily-cash-brief" on every bank call):
list_accounts (balances by role; exact unmasked numbers)
query_transactions {status:["pending"]} (pending authorizations — reported, never subtracted)
query_transactions {direction:"credit", dateFrom:<14 days ago>} (all accounts: Operating credits to match against AR; Tax Reserve credits = recent sweeps)
get_aged_receivables (open invoices, per invoice)
get_vendor_payment_timing (open bills: dueWithin7Days, notYetDue with vendorHabituallyPaidEarly)
get_sales_tax_collected {date_from:<1st of the oldest month not yet remitted>} (collected.total → reserve shortfall)
list_events {today → +7 days} (dated obligations)
list_saved_payees (name → rail)
→ Compute the brief (below).
→ make_batch_payment (ONE call: transfer line + due bills) → confirmation_url
→ write_file briefs/YYYY-MM-DD.md
→ Run output: the notification text (below).
A scheduled agent is exempt from the interactive six-call bar; say the count
in the brief's footer. Do not add calls: no search_bills,
search_bill_payments, search_payments or get_aged_payables — the two
report tools cover them.
Progress tracking: call TaskCreate once per numbered step below before
starting step 1 (subject = the step's name, e.g. "1. Dedupe and stamp"), 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.
briefs/YYYY-MM-DD.md exists →
print "Today's brief exists at briefs/YYYY-MM-DD.md — skipping." and stop.sessionType: "scheduled" and
taskId: "daily-cash-brief".list_accounts — identify by role, never by number:
Operating (primary checking), Tax Reserve (the savings account
whose name mentions tax or reserve), Business Savings (the other
savings — reported, never touched). Balances come back with the accounts;
call get_account_balance only for an account that returned none.
query_transactions {status: ["pending"]} for the authorizations.
query_transactions {direction: "credit", dateFrom: <14 days ago>} with
no accountNumbers, so one result carries the Operating credits (to match
against open invoices) and the Tax Reserve credits (the recent sweeps).
list_saved_payees once.get_aged_receivables;
get_vendor_payment_timing (every open bill with daysUntilDue, split
into dueWithin7Days and notYetDue, the latter flagged
vendorHabituallyPaidEarly); get_sales_tax_collected {date_from} where
date_from is the 1st of the oldest month whose tax has not been remitted
yet. With a remittance on the 20th that pays the previous month: on or
before the 20th the window opens on the 1st of last month; after the
20th, on the 1st of this month. If the owner's remittance day differs,
use it (method in
../tax-reserve-check/SKILL.md).list_events today → +7 days.reserve shortfall = collected.total − Tax Reserve balance, floor 0; true available = Operating − shortfall.
The bank's balance already nets pending authorizations: list them
(descriptors + total) but never subtract them. Business Savings and the
Tax Reserve are never spendable. A skipped sweep is why the reserve is
short, not how much — the shortfall is always the report's total minus
the balance. Note the last sweep credit's date from the 14-day result and
name the weeks in byWeek that collected tax but show no matching
reserve credit.plan-payroll.get_aged_receivables, one line per invoice: DocNumber, customer,
open amount, days past due, largest first. An invoice whose amount (±
$0.50) or customer stem appears in the 14-day credits is "received,
not yet booked" and excluded. Never a customer's total open balance,
never an invoice that is not yet due.dueWithin7Days: vendor, DocNumber,
open balance, due date, rail from saved payees.notYetDue items with vendorHabituallyPaidEarly: true:
vendor, amount, due date, "pay on {dueDate}". Never staged.collected.total, split
byItem by jurisdiction) vs the Tax Reserve balance, the shortfall,
the weeks with no sweep credit.Stage exactly these, nothing else:
list_accounts; description "Sales-tax reserve top-up").list_saved_payees; recipientId = the payee's name; wire lines for wire
payees), and (b) are not flagged as duplicates by the server (same payee +
amount as a recent payment — honour the flag, list the line under "already
staged/posted" instead).Everything else goes under Needs you: due bills for vendors without a
saved payee, the HOLD list with its pay-on dates, a batch that would exceed
true available (stage nothing; list the conflict), a payroll date inside the
week, and the customers the owner would chase — this skill creates no
Gmail drafts unless the owner has told it to (then reminder drafts in
Gmail, create_draft only; the owner sends). Say that in the brief.
make_batch_paymentBuild the item list (transfer first, then ACH, then wire) and call
make_batch_payment once with sessionType: "scheduled" and taskId: "daily-cash-brief". No dry run. A rejected line comes back named in
invalid_items — fix that line (or drop it to Needs you) and re-submit
once. From the response keep confirmation_url, confirmation_title,
total_amount, by_rail, lines[], expires_at. If the response is
{ error }, record it in the brief and move on. If there is nothing to
stage, say "Nothing to stage today."
briefs/YYYY-MM-DD.md (write_file, markdown)# Cash brief — {date} (scheduled 7:30)
**True available: ${x}** = Operating ${a} − reserve shortfall ${b} (pending ${c} already netted by the bank)
Operating ${a} · Tax Reserve ${r} (collected ${t}, short ${b}) · Business Savings ${s} (not counted)
## Today / this week
- {date} {calendar item} ${amount if recorded}
- {date} sales-tax remittance ${t} ({by jurisdiction})
## Exceptions
- Overdue, no credit yet: {DocNumber} {customer} ${amt}, {n} days late …
- Received but not booked: {DocNumber} {customer} ${amt} ({descriptor}, {date})
- Due within 7 days: {vendor} {DocNumber} ${amt} {rail} due {date} …
- HOLD (habitually paid early): {vendor} ${amt} due {date} — pay on {date}
- Reserve: collected ${t} since {window start}, held ${r}, short ${b}; weeks with no sweep credit: {week starts}
- Pending authorizations: {n} items, ${c} (already netted)
## Staged for approval — {confirmation_title}
{confirmation_url}
Nothing has moved until you approve this on the bank's page. Expires {expires_at}.
| Line | Payee / transfer | Amount | Rail |
…
## Needs you
- …
Sources: Paywhere ✓ · quickbooks ✓/✗ · calendar ✓/✗ · gmail ✓/✗ · {n} tool calls
Daily cash brief — {date} (scheduled)
Written: briefs/{date}.md
True available ${x}. Staged for approval: {n} lines, ${total} → {confirmation_title}
{confirmation_url}
Nothing has moved until you approve this on the bank's page.
Needs you: {top 2 bullets} | Unavailable: {connectors or none}
What the bank sees: the calls arrive with sessionType: scheduled, and
the staged batch sits at the bank as agent-proposed, awaiting a human
approval. The server records the assertion; it does not verify the
scheduler — say so if asked.
| Missing | Effect |
|---|---|
| Paywhere | Stop — write a one-line brief saying the bank was unreachable. |
| quickbooks | Bank-only brief: balances, pending, recent credits and sweeps; AR, bills and reserve sections read "QuickBooks unavailable"; nothing is staged. |
| google calendar | No "Today / this week" overlay; say so. |
| gmail | Nothing changes — this skill drafts nothing by default. |
Never retry in a loop, never ask a question, never abort because one source was down.
make_batch_payment: the top-up rides with the bills as a
transfer line so the owner approves the whole morning in one place; do
not split it into a separate transfer_funds call.query_transactions {direction: "debit", dateFrom: today} and match the lines).../_shared/AUTONOMY.md · ../_shared/APPROVAL.md../tax-reserve-check/SKILL.md — the reserve window and shortfall method../pay-bills/SKILL.md — the interactive version of the bills batchWhat 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."
/cash-bridgeReconciles "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.
/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.
/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."