/quickbooks-labs:categorize-transactionsfrom QuickBooks Labs
Categorize QuickBooks pending transactions with QuickBooks Labs. Reads the Pending rows of each connected bank or card account with QuickBooks' suggestions, records a category, split, transfer or match for each row as proposals on a run card, posts them only after the user's yes, and reports what posted. Creates a bank rule when the user wants a category applied to a repeating pattern (always, every time, from now on). Use when the user invokes /categorize-transactions, asks to categorize, sort or post pending transactions, or asks for a rule. For reports, create-reports.
Ships in QuickBooks Labs. 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.
Read an account's Pending rows, record a proposal for each row you can, show them on the run card (call it that to the user), post after the user's yes, and report.
bank_feed_categorize { account_id, input }) and opening or refreshing the
run card write nothing to QuickBooks, so they need no approval.post: true) only after the user saw its run card (where it cannot show, the chat
list in Without the run card) and said yes to posting, in a later turn. A
request to categorize, or a yes to another step, is not a yes to posting.A rule tells QuickBooks what to do with every feed row that matches a pattern. Rules are for patterns the user can identify in their transactions; do not create one for a one-off categorization unless the user explicitly asks. A correction on a repeating payee is a pattern: offer it once, after posting (Saving a correction).
bank_feed_list_rules first. One may already cover it.bank_feed_update_rule with active: false stops the rule. bank_feed_undo
returns rows it posted to For review.bank_feed_run_read { run_id }, whose next posting call settles the lost batch; rows posted now
with bank_feed_check_posting_status, and never post them again on your own.state is done is progress, not polling. Never call a tool on
a timer.permission error or an access_denied answer stops at once, the chart read and named-account
lookups included: tell the user their QuickBooks role doesn't allow it. For companyUnreachable,
tell them instead that the signed-in user can't open this company.company_get_context, bank_feed_list_connections, bank_feed_list_transactions,
bank_feed_get_match_candidates, bank_feed_categorize, bank_feed_review, bank_feed_run_read,
bank_feed_undo (only rows the user names), bank_feed_sync (only after the user's yes to an
offer in section 2), bank_feed_check_posting_status, accounts_search (only to read the chart
in section 4 or to look up an account the user names), and for rules bank_feed_list_rules,
bank_feed_create_rule and bank_feed_update_rule.If QuickBooks Labs tools are missing or unauthenticated, call company_get_context for its Connect card
and wait for its retry. No card possible: point to the host's Connectors settings; stop.
Without bank_feed_categorize and bank_feed_review: say categorization is unavailable, point to
the QuickBooks bank feed; stop.
Resuming or asked about a run: bank_feed_review { run_id } in this conversation, or
bank_feed_review { latest_run: true } in a new one (not_found means there is none). Report where
it stands and continue from its state. A yes from an earlier conversation does not carry over: ask
again before posting.
Call bank_feed_list_connections. A skipped account is connected but unread: if any is
transient, list once more, then name each still skipped (name, else account_id) and go on
with the listed accounts. With none listed, stop there and give one next action. No feed accounts
and none skipped: suggest connecting a bank or card; stop. Name any account with needs_attention and link its reconnect_url for the user to open in their
own browser: with reconnect_kind bank_sign_in, to sign in to the bank again; with quickbooks_fix,
QuickBooks' Banking page, where Fix now shows the step. Wait for their reply. Never open a bank
sign-in or QuickBooks' Fix now with browser tools.
Every
pending_count confirmed zero: nothing to categorize; stop, unless the user asked for a rule
outright: a rule needs no Pending rows, so draft it (Bank rules section) and create it after their yes.
Missing counts are unknown, not zero.
For an account on a live bank link (connection_type Regular, OAuth or DirectFeed): when the user
expects rows that are not Pending, or its last_updated is more than a day old, offer once to update
its feed from the bank first. Only on a yes, call bank_feed_sync with the account's
institution.id; it updates every account at that bank. Never offer a sync for CSV, WebConnect or
Partner feeds (they have no bank to call), and never sync unasked: downloaded rows can trigger
auto-add bank rules.
Take the accounts the user named, else every account with Pending rows, in the listed order. Ask first about an ambiguous name. Say which accounts come after the first.
Before proposing anything row by row, for one account:
bank_feed_list_transactions, order: "asc",
limit: 100) and call bank_feed_list_rules.account_ids. Name the payees whose category you would
need from the user.bank_feed_create_rule each, and report
what posted. Then continue with section 4 for the rows that are left. No repeating payees, or
none the user wants a rule for: go straight to section 4.For one account:
bank_feed_list_transactions with
account_id, order: "asc", limit: 100 and the user's date, text or direction limits, then
each next_cursor. One run takes at most 1,000 rows. Before the first record call, read the
chart's categories once: accounts_search { types: ["Income", "Other Income", "Cost of Goods Sold", "Expense", "Other Expense"], limit: 500 }, then each next_cursor. A chart read that
fails twice without permission or access_denied does not stop the run: record the
suggested rows as usual and put the rows that would need a chart category in left_for_user.bank_feed_categorize { account_id, suggested, input, left_for_user } the first time, which returns run_id, then the same with run_id. Name
each row of the read once, in one of the three lists.suggested: rows whose QuickBooks suggestion fits the bank text as it stands, its category and
payee, its split lines, or a suggested match. List their ids only; the server records the
suggestion itself, and for a match the one record at the row's amount. Never a row whose
suggestion is QuickBooks' uncategorized default (generic_default), a catch-all such as Ask My
Accountant, or the feed account itself. Rows covered by a user-named account go to step 4
instead, even when a suggestion fits.input: rows you decide yourself, one entry per action, { action, txn_ids }, with every row
that takes it. A row with no fitting suggestion, including QuickBooks' uncategorized default,
takes the category its bank text makes clear (categorize): the one QuickBooks suggested for
rows like it, else one from the chart read: an income category for money in, an expense
category for money out. Never a catch-all such as Uncategorized or Ask My Accountant, or the
feed account. Use only ids from the suggestions, chart read or named-account lookup below.
A suggested transfer or card payment takes { other_account_id } when the suggestion names
the other bank or card account.
Leave payee_id out to keep the payee QuickBooks suggests for the row: the server records it,
and the reply names those rows. Give another contact id only when the bank text or the user
names a different payee, and payee_id: null only when the user wants no payee.
An account the user names for these rows: accounts_search { text: <their words> } once,
without types or classification. Use the one whose name or full account path matches;
ask when several do, and say when none returned matches. Relevance alone is not a name match.
Do not substitute a suggestion or chart category while that choice is unresolved.
The feed account and catch-alls such as Uncategorized or Ask My Accountant never qualify,
even when the user names them: ask for a specific posting category instead.
Equity, loan and asset accounts (such as Owner's Draw or Inventory Asset) take categorize
with that category_id. Bank-to-bank movements take transfer. With a card on either side,
use card_payment with other_account_id only for money out of a bank to a card or money into
a card from a bank.
If the named accounts and direction do not fit, ask instead. A/R or A/P: offer a match to the
existing invoice, bill or payment instead; do not categorize directly to either account.
Never independently choose a balance-sheet category the user did not name; fitting QuickBooks
suggestions in step 3 and the transfer checks in step 6 still apply. Never create an account.left_for_user: every other row, so the card counts it as Left for you and it stays Pending:
bank text that names a person or no business (such as a Zelle or Venmo to a name), a payee that
bills for more than one kind of cost (such as a payroll provider's wages, taxes and fees), a
refund or reversal of a purchase, a transfer or card payment (such as PAYMENT THANK YOU), a
customer or payment-processor deposit, several categories that fit equally, or no chart
category that fits. A row like these takes a category, or the other account, only when
QuickBooks suggested one for rows like it, or the user named one resolved by step 4's lookup.suggested row's recorded proposal. Compare each label with what you
read; a row whose category, split or match differs goes again in input with run_id.
Its not_recorded lists rows not recorded and why: rows QuickBooks no longer has Pending,
suggestions it could not resolve, and rows the call itself dropped (an id named twice,
a split or match over several rows, a match_ref that does not fit the row). Everything else
was recorded, so never resend the whole list: send only the rows listed, fixed, with run_id
(a row named twice goes once, with the action you mean). A call in which more than 50 rows
fail is refused whole and records nothing: that many means the ids came from another account
or the lists were mixed up, so fix the cause and send the call again. A suggested match with several records at its amount
can go in input: read those rows' candidates in one call,
bank_feed_list_transactions { account_id, ids, include_matches: true }, and propose
{ type: "match", targets: [{ match_ref }] } with the one that fits; several records take a
payment_amount on every target, summing to the row's amount. Put the rest in left_for_user
with run_id. An open invoice and an undeposited payment for the same customer: propose the
payment. The invoice's caution says that matching it records a new payment. When every
candidate listed for the row is an open invoice, or invoice_match_note is set, call
bank_feed_get_match_candidates once with date_from and date_to. If the payment is still
absent, put the row in left_for_user. The reply also names rows whose other half another feed holds, a likely transfer:
suggested rows it left for the user, rows you left for the user, and categories you chose.
Decide each before the review: record it again in input with run_id as transfer or
card_payment (a credit card on either side) with that account as other_account_id, unless
the bank text or the user says it is something else (a named customer's payment, a refund);
then leave it for the user and name the other row when you ask. Only one side
takes the transfer. When the other half is already posted, record the row as a match with the
match_ref its line gives, never as a new transfer, which would count the money twice; a
transfer proposed for it is not recorded and its line gives that match_ref. Suggested rows the
reply proposed as such a match need nothing more.bank_feed_review { run_id } once, and one line: rows proposed, rows left for the user, rows
not recorded and why, and that proposals post only after their yes. Ask them to review. Do not
list groups; the card shows them. unsupported: say runs are unavailable here; stop.
Without the card, list them instead (see Without the run card).The run card is unavailable when this host cannot show cards (Claude Code in a terminal), or once
the user says the run card did not appear. Then every bank_feed_review { run_id } above and in
sections 5 and 6 is still called (it records that the proposals were shown), and after it the chat
shows what the card would, from that result, with no txn ids:
post_counts (such as 3 billable,
1 with no payee).sample rows: date, amount and bank text, with the row's detail (its
split lines or the record it matches) and its posts (payee, customer or project, billable,
class, location). A split or match group with more rows than its sample: list the rest with
bank_feed_run_read { run_id, group } (follow listed.next_cursor), so every split and matched
record is shown before the yes.more_groups, how many groups the result leaves out. Never write labels, counts or totals
for them.rows.unproposed as the rows left for the user, then the rows not recorded and why from the
latest bank_feed_categorize reply in this conversation. With no such reply (a resumed run),
leave rows not recorded out.That list stands in for the card in sections 5 and 6, and a yes to it is the posting yes. To change
some rows of a group, list them with bank_feed_run_read { run_id, group } as section 5 says.
Read Classes and locations before the first record call
when a step 1 read carries class_location.
Changes: resolve an account the user names by section 4 step 4 first. Then
bank_feed_categorize { account_id, run_id, input } with the changed rows, then
bank_feed_review { run_id }, then ask again: a changed proposal posts only once the card has shown
it. A changed category keeps the row's payee: leave payee_id out unless the user names another
payee or none. A whole group, or some of its rows: bank_feed_run_read { run_id, group } lists their txn_ids
(follow listed.next_cursor); show the rows and send the picked ones. Never guess ids. To leave rows
out, send their txn_ids in left_for_user with { account_id, run_id, left_for_user }: they lose
their proposal, stay Pending and count as Left for you. A yes before a change does not cover it.
Note each payee whose category the user changes, with its bank text and new category, for Saving a correction. Do not offer or mention a rule here.
Only an explicit yes to posting the card's proposals counts. A bare yes to a two-option question is ambiguous: ask which.
After the yes, call bank_feed_categorize { account_id, run_id, post: true } one call at a time until
state is done. Follow state:
open: call again.show: proposals the user has not seen. bank_feed_review { run_id } and ask about them; post
again only after their yes.busy: QuickBooks busy with another feed update, nothing taken. Tell the user, end the turn; call
again on their next message.confirming: a batch whose reply was lost is settling; call again.done: bank_feed_review { run_id } once, then the completion response, or the next account.Lost reply: bank_feed_run_read { run_id } first, then call again; the run settles a lost batch
before it posts more. conflict (another call working): retry once, then tell the user. To stop,
stop calling; posted rows stay.
A few rows the user names in chat post now, not in a run, with
bank_feed_categorize { account_id, input, post: true }: one result per row.
suggestion.payee.id)
as payee_id unless the user names another or none, and show it when you ask. The reply names
rows posted with no payee; tell the user.bank_feed_get_match_candidates for that row, show the
candidate(s) that fit (type, number, date, amount), and ask to match it. When the list has an open
invoice and an undeposited payment for the same customer, show the payment and say that matching
the invoice records a new payment. When invoice_match_note is set, read once more with date_from
and date_to before you say there is no match. On their yes, in a later
turn, post { type: "match", targets: [{ match_ref }] } with that candidate's match_ref. If no
candidate fits, say so and leave the row Pending. Never pick a candidate the user did not confirm.{ type: "exclude" } with
their txn_ids. A row already posted or excluded, or matched in part, fails alone.bank_feed_undo { account_id, feed_transaction_ids } for posted rows the user names: it
deletes the posted transaction, or unlinks a match, and returns the row to Pending.
To remove a record the feed added, use this, not transactions_delete: QuickBooks refuses to
delete feed-added records directly. It deletes the record, so name it (date, amount, payee) and
get the user's yes first, as for a delete.If a run is open, then bank_feed_review { run_id } so the card reflects it. A lost reply or an
unknown outcome: bank_feed_check_posting_status for those rows first. Accepted, or Excluded for
an exclude: it went through; Pending: it did not post; unconfirmed: QuickBooks did not return the
row. Tell the user, and never post the rows again on your own.
A category the user names here over a different suggestion is a correction too (Saving a correction).
/onboard loads this skill by name for its categorize job. Read
Loaded by a workflow first when one loads it: its overrides
and hand-back. Overrides never change the approval rule for posting.
Per account, from the final run card and your reads: posted, left for the user, failed and why (from sample rows), unconfirmed, handled outside the run. Rows left stay Pending in the bank feed.
If an account held more Pending rows than one run takes, end with one question, e.g.:
Continue categorizing the remaining 1,240 transactions in Checking?
Yes → another run, same account and limits, same card and posting yes. Otherwise end with the report.
A correction is a category the user changed, from QuickBooks' suggestion or your proposal. Offer to save it as a rule when all hold:
bank_feed_list_rules shows no rule covering it, and you have not offered it in this conversation.When one does not hold, say nothing about rules for that payee, not even that you made no rule.
Offer once, after the report and before a continue question: the bank text, this account and
direction, the corrected category, and how many Pending rows match now. Ask which kind: Standard
suggests the category on future rows; AutoAdd posts them unreviewed, matching Pending rows
included. Call bank_feed_create_rule only after their yes, in a later turn, with this account in
account_ids, and never while a run is open: if one opened since the offer, ask to post or finish
it first. A no is final.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub intuit/intuit-plugins-official --plugin quickbooks-labs9 skills in this plugin
/configureSet up QuickBooks Labs. Runs the plugin's setup skill from its first step - onboard-accountant in the accounting-firm plugin, onboard otherwise (connect QuickBooks, show bank and card balances with a bank connect button, then offer the top next job). Use when the user invokes /configure or on first plugin run./connect-bankOpens the QuickBooks Labs connection status MCP App for the active QuickBooks company, or writes its connected accounts and a connect link in chat where cards don't show. Use only when the user invokes /connect-bank or /quickbooks-labs:connect-bank./create-reportsCreate QuickBooks financial reports and visualizations from QuickBooks Labs as Claude Artifacts (live pages that rerun the report through the QuickBooks Labs connector each time they open, or fixed snapshots), as a table in chat, or as a local file, and optionally schedule Artifact updates. Use whenever the user invokes /create-reports or asks to see, prepare, compare, summarize, chart, keep up to date, or build a dashboard of a P&L, balance sheet, cash flow statement, trial balance, aging, sales, vendor, inventory, transaction, or other QuickBooks report. Clarify missing details and render only values returned by the tool./onboardConnect bank and card accounts to QuickBooks with QuickBooks Labs, then offer one next job: categorize waiting transactions, reconcile an account to its statement, or run a business health report. Use when the user invokes /onboard or asks to set up, get started, sign up for QuickBooks, or onboard QuickBooks Labs or their books. This is the guided setup entry point. Outside setup, categorize-transactions, reconcile, or create-reports handles that one job. When the user is finished, it offers a daily or weekly check that reports connection problems and waiting transactions and changes nothing./qb-labs-feedbackSend the user's feedback about the QuickBooks Labs MCP connector itself (its tools, skills and results) to the team that builds it, with one feedback_send call. Use when the user invokes /qb-labs-feedback, asks to give feedback on or report a problem with QuickBooks Labs, says one of its results was wrong or a tool did not work, asks for something it cannot do, or wants to say what worked well. Not for feedback on QuickBooks Online itself, product support or billing questions./reconcileReconcile a QuickBooks bank or credit-card account to its statement with QuickBooks Labs. Picks the account, takes the statement ending date and balance, begins only after a yes to those figures, opens the worksheet when available or ticks lines in chat when it is not, and finishes or reports the result. Use when the user invokes /reconcile or asks to reconcile a bank or card account against a statement, or when /onboard loads it by name.