/paywhere-smb:demo-setupfrom paywhere-smb
Builds 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."
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Sets up the caller's own demo bank world for the Nick's HVAC persona.
Everything about the world — roster, amounts, dates, payees, enrichment, the
answer key — lives in server code (buildWorld(dateModel) in
paywhere-mcp); this skill makes the calls, waits for the job, checks the
result and reports. The QuickBooks books are shared and read-only
(reseeded server-side daily) and are never touched here; their dateModel is
read so the bank lands on the same dates. Each presenter gets an isolated
bank world, so parallel demos and re-runs are fine. What the world contains
is described qualitatively in ../../DATASET.md; never
hardcode any of it here — read it back.
username (optional) — a label folded into the generated bank login
(demo-<label>-<uid>-gN; sanitized server-side to lowercase
letters/digits/hyphens, max 20 chars). Labels the caller's own world only."/demo-setup" (optionally "… username brett")
→ 1 Preflight: seeder tools present on Paywhere; get_demo_dates (quickbooks) → dateModel verbatim
→ 2 Approval gate (replaces the caller's own bank world; books untouched)
→ 3 seed_demo_world {confirm:true, dateModel, username?} → returns at once: jobId, creds, expectedClosing, answerKeySummary
→ 4 Poll get_demo_world every ~20 s until seedJob.state == "done" (≈ 4–6 min)
→ 5 Readback through the demo connector: balances == expectedClosing; payees == recipientsConfigured; enrichment; the unbooked check
→ 6 Report the answer-key summary + point at demo/SCENARIOS.md
Progress tracking: call TaskCreate once per numbered step below before
starting step 1 (subject = the step's name, e.g. "1. Preflight"), then
TaskUpdate it to in_progress when you begin that step and completed
when it's done. During step 4, update the task's description with the
poll progress ("posted 412 / 1,040, eta 3 min") so Cowork shows movement.
This is what drives Cowork's visible progress display — it does not happen
unless you do it explicitly.
seed_demo_world and get_demo_world. If absent, this
is not a demo deployment — stop; never try to seed a real connector.get_demo_dates (read-only). It is the liveness probe
and the alignment contract:
{seeded: true, seededAt, dateModel} → capture dateModel verbatim.{seeded: false} → the books have not been seeded server-side yet (they
reseed daily, 5am ET) — say so and stop. A bank world on unknown
book dates misaligns every beat.list_accounts must respond (any result is fine).Say plainly: this replaces the caller's own demo bank world with a fresh
generation and fresh credentials; the shared books are untouched; other
presenters' worlds are unaffected. Confirm the username label if given.
Wait for explicit approval (the tool also requires confirm: true).
seed_demo_world {confirm: true, dateModel, username?}The call is asynchronous and returns immediately with:
{ ok, jobId, seedState: "running", bankUsername, bankPassword, generation,
accounts[], dateModel, dateModelSource, migratedFromSharedDemo, totalRows,
expectedClosing: {operating, taxReserve, savings}, answerKeySummary,
recipientsConfigured, enrichmentWritten, beatsReady[], note }
bankUsername / bankPassword prominently at the top of the
reply (mock-only credentials, shown once; if slackNotified is false or
absent, tell the presenter to record them now).dateModelSource must be "provided". "computed" means the server
self-computed — treat as a bug in this run and restart from step 1.migratedFromSharedDemo: true → this caller just moved off the shared
read-only backdrop onto their own world; say so.expectedClosing, recipientsConfigured and answerKeySummary for
steps 5–6. Payees and enrichment are written synchronously before the call
returns; only the transaction rows post in the background.get_demo_worldCall get_demo_world every ~20 seconds. The response carries
seedJob: null | { jobId, state: "running" | "done" | "failed", total, posted, failed, etaSeconds, failureSamples[] } plus bankUsername,
generation, accounts[], and (when present) expectedClosing /
answerKeySummary.
posted / total and the eta on
every poll. Expect ≈ 4–6 minutes for ≈ 1,000 rows.state: "done" → continue. failed > 0 with state: "done" → report the
failureSamples and treat the readback in step 5 as the arbiter (a few
failed rows will show up as a balance mismatch).state: "failed" → report failureSamples, then re-run from step 1 once
(the reset is idempotent). Twice failed → stop and report.done: balances are moving.Never trust the seeder's own numbers; read them back on the same connector.
list_accounts (then get_account_balance per account).
Identify the three accounts by role (primary checking = Operating; the
savings account named for tax = Tax Reserve; the other savings = Business
Savings). Assert each balance equals expectedClosing for that role
(to the cent). Pending authorizations are excluded from expectedClosing
by design.list_saved_payees. Assert the count equals
recipientsConfigured. Spot-check that the crane subcontractor
("Ironclad Crane & Rigging") resolves with rail: "wire" and the parts
supplier ("Johnstone Supply") with rail: "ach" — a rail mismatch is
exactly what makes pay-bills misreport a saved wire payee.query_transactions {direction: "debit", descriptionContains: "ANGI LEADS", limit: 1} → take that row →
get_transaction_detail. Assert detail is non-null (the
subscription-audit beat depends on it).query_transactions {direction: "credit", descriptionContains: "MOBILE CHECK DEPOSIT", dateFrom: <today − 7 days>}. Assert a row exists whose amount equals
answerKeySummary.ar.unbookedReceipt.amount and whose descriptor carries
answerKeySummary.ar.unbookedReceipt.checkNumber (the received-but-
unbooked check in plan-payroll).If any assertion fails, the seed did not land — do not report
beatsReady. Re-run from step 1 once; on a second failure report the
mismatch (expected vs actual per check) and stop.
From the responses (never from memory), report:
bankUsername, password shown once) and the generation.answerKeySummary.balances.pendingAuthorizations
is present.dateModelSource: "provided", the books' seededAt, and
dateModel.today / dateModel.horizon.AnswerKey in
paywhere-mcp-api/src/demo/world/types.ts):
trueAvailable.amount (+ formula) — beat 1.1tax.reserveBalance, tax.collectedNotRemitted.total, tax.shortfall,
tax.missedSweeps, tax.nextRemittance — beat 1.6 / 3.5ar.largestOverdue and ar.unbookedReceipt — beats 1.1, 1.3ap.dueThisWeek (with rails) and ap.holdCandidates — beat 1.4. The
list is the three staged bills plus any generated bill whose due date
falls in the window (e.g. a smaller Trane bill); read it, do not assume
three lines.payroll.nextPayDate, payroll.estimatedTotal, payroll.headroomAfterPayroll — beat 1.5subscriptions.monthlyTotal — beat 1.7liveSurface (the staged items) and counts (rows, payees, enrichment)balances, trueAvailable, tax, ar, ap,
payroll, subscriptions.monthlyTotal, liveSurface, counts); the
full key for a given date lives in paywhere-mcp at
paywhere-mcp-api/src/demo/world/fixtures/answer-key-<today>.json.beatsReady) and the pointer: what to type, in order, is
../../../demo/LIVE-SCRIPT.md; setup, the
FI seat and the injects are ../../../demo/SCENARIOS.md.get_demo_dates → seeded: false → books not seeded yet; stop.get_demo_world → sharedEnvWorld: true, or a
demo-mutating tool refusing) → this skill is the fix; expect
migratedFromSharedDemo: true.posted unchanged) → keep
polling to 10 minutes total, then report and re-run once.expectedClosing — re-run.dateModel is used.deposit_to_mock_account, withdraw_from_mock_account)
are permanent for a world; after a rehearsal with injects, re-run this
skill before the real demo. See ../demo-inject.What 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.
/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."