/quickbooks-labs:create-reportsfrom QuickBooks Labs
Create 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.
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.
Choose the QuickBooks report that answers the user's question. Present its returned data in an Artifact with a concise chat summary, or in chat or a local file (section 1). Do not force a report pack when they asked for one report.
values, not display cells, as the reports_run
description explains.company_get_context, the QuickBooks Labs report tools, the Artifact tools, the shell or
file tool that writes the page (section 6), and, on the scheduled-update path, the
scheduled-task tool. Do not load other skills.At the start, identify:
Reuse details the user already supplied. Ask only for missing information, in one question.
Ask one concise question using business-friendly choices:
If the user describes a business question instead of a report name, route that question to the closest report. Ask a focused follow-up when materially different reports could answer it. For example, "show sales" needs a dimension such as customer, product/service, class, or location.
Ask for the period before running a report, except for a live as-of report (ground rules). Offer choices appropriate to the report:
For reports that support Cash or Accrual basis, include that choice in the same question if the user has not stated it. Do not confuse a cash-basis P&L with a Statement of Cash Flows.
A report goes in an Artifact, except:
The choice holds for later reports until the user asks for an Artifact. A chat or file report is never published and gets no live-or-snapshot question.
Read references/chat-and-file.md before presenting a report in chat or writing a local file, including when the first request asks for one, when the user asks in a later turn, and when Claude cannot create an Artifact. It holds the table and file rules.
A live Artifact reruns its report through the viewer's QuickBooks Labs connector each time it opens; a snapshot keeps this conversation's figures. "Always up to date", "whenever I open it", "live", or "dashboard" means live; "snapshot", "board pack", "freeze", or "public link" means snapshot. When the user names neither and live is available (section 2), ask, in the same question as any other missing details, with live first.
Required QuickBooks Labs capabilities:
company_get_contextreports_listreports_runHost capability, needed only for an Artifact:
If the report tools are unavailable, tell the user QuickBooks Labs must be connected and offer the host's connector setup flow. Stop after that handoff. If Claude cannot create an Artifact, do not stop: the report goes in chat (section 1).
Live is available only when the Artifact tool lets a page declare QuickBooks Labs as a connector.
That needs QuickBooks Labs connected to the user's claude.ai account (Settings > Connectors),
artifact connector calls on (an org Owner's Enable artifact connectors, Settings > Capabilities),
and the user's AI-powered artifacts on (Settings > Capabilities). A plugin or .mcp.json server
supplies data only while you build the page. When live is unavailable, build a
snapshot without asking, and say why in one or two short sentences that name only the missing
requirement: for example, "QuickBooks Labs is connected only through the plugin, so this is a
snapshot. Connecting it under Settings > Connectors would make it live." If you cannot tell which
is missing, name the connector. When the user asks to make an existing snapshot live, run no
report: say why, offer a refreshed snapshot or scheduled updates, and wait for their choice.
Claude Cowork scheduled-task creation is optional. Its absence must not block the initial report Artifact.
Run every report with reports_run. Call reports_list first when the report name, period kind,
supported filters, comparison options, grouping, or runnability is uncertain. The catalog result
is authoritative; do not guess unsupported report options.
Common routes include:
| User intent | reports_run.report |
|---|---|
| Profit & Loss, income statement, profit | ProfitAndLoss |
| Balance Sheet, financial position, assets and liabilities | BalanceSheet |
| Trial Balance, debit/credit tie-out | TrialBalance |
| Statement of Cash Flows | CashFlow |
| A/R aging | AgedReceivables |
| A/P aging | AgedPayables |
| Open invoices | OpenInvoices |
| Unpaid bills | UnpaidBills |
| General ledger | GeneralLedger |
| Transaction list | TransactionList |
| Sales by customer | CustomerSales |
| Sales by product/service | ItemSales |
| Sales by class | ClassSales |
| Sales by location | DepartmentSales |
| Expenses by vendor | VendorExpenses |
| Inventory value | InventoryValuationSummary |
Use reports_list rather than this routing table for requests outside these common cases or when
the user asks what reports are available.
Call company_get_context before the first report and pass its realm_id on every report call,
so each report stays pinned to the company named in its Artifact. Use exactly one period form:
{ "start": "YYYY-MM-DD", "end": "YYYY-MM-DD" } or one supported macro{ "as_of": "YYYY-MM-DD" }, an end date, or one supported macro{}Read references/live-artifact.md before the first report call for a live Artifact, including when the user picks live in a later turn, when they ask to make a snapshot live, and when they say a live page is not working. It holds the live period rules, the page's connector contract and its error states.
P&L, Cash Flow, Trial Balance, General Ledger, sales, and expense reports normally use a range.
Balance Sheet, aging, open-invoice, unpaid-bill, and balance reports normally use an as-of date.
When uncertain, read the matching reports_list descriptor and follow its period_kind.
Read references/graphs.md before choosing a time grouping or building a graph, including when the first request asks for a graph or trend and when the user accepts an offered graph in a later turn. It holds the grouping and chart rules.
Read references/detail-reports.md before running a detail report, interpreting any paged or truncated result, drilling from a P&L account, or calculating from detail, including initial requests and accepted follow-ups. It holds account filters, pagination, aggregation and transaction-id rules. A transaction count across several accounts counts each transaction once, never the sum of per-account counts.
Each report tool returns two text blocks: a one-line summary (title, period, row and total
counts, and the last total), then the full report as JSON. Build the report from the JSON block.
The summary names only the last total, so a report built from it would be missing every account
line and, on a Balance Sheet, TOTAL ASSETS. The reports_run description explains the rows,
cells, values, and totals; this skill relies on:
meta: title, source, basis, currency, period, generated_at, no_data,
page.next_offset, and truncated;path and level, for the hierarchy; andtotals, for headline totals such as Net Income or TOTAL ASSETS.Before presenting the report:
meta.no_data;path and level;totals for headline totals rather than recomputing them from a partial row set;Give each report one status:
meta.no_data is true. Create no Artifact for it, because an empty Artifact spends
usage and shows nothing. Tell the user it has no data for the exact period and filters, and ask
whether to change the period or create it anyway; the request's other reports still get theirs.
If they want it, show an explicitly empty state; do not fabricate zeros.next_action to the user as the next step instead of acting on it. The only
exception is one immediate rerun of the same call, which counts against the limit above.This section builds an Artifact. A chat or file report follows references/chat-and-file.md instead.
Create one Claude Artifact per requested report. This keeps each report readable and lets the user request several reports without combining unlike structures.
A snapshot declares no connectors and embeds the figures returned in this conversation.
Title each artifact:
<Report title> — <company> — <period or as-of date>
Include:
Create a graph only when the user asks for one or accepts an offered visualization.
Build every report page from a template in assets/, never by writing HTML: snapshot-report.html
for a snapshot, live-report.html for a live page, including a rebuilt or republished page. Each
is a finished page that renders the JSON appended after its last line, so the title and that JSON
are the only text you write. A hand-written page repeats thousands of tokens of markup and skips
the template's checks.
Write the file in one shell command, in the folder where you save files for the user:
T="<this skill's base directory>/assets/snapshot-report.html"
[ -r "$T" ] || T=$(find /sessions / -path '*/skills/create-reports/assets/snapshot-report.html' -print -quit 2>/dev/null)
[ -r "$T" ] && {
echo '<title><the Artifact title></title>'
cat "$T"
sed 's/</\\u003c/g' <<'CLAUDEBOOKS_JSON'
<the page JSON>
CLAUDEBOOKS_JSON
echo '</script>'
} > "<folder>/<name>.html" && wc -c "<folder>/<name>.html"
In Cowork the shell sees the plugin under /sessions/<id>/mnt/, not at the base directory;
the find covers that. Use live-report.html in both paths for a live page. In the title,
write & as &, < as < and ' as '; sed escapes < in the JSON. The
byte count confirms the write: do not read the file or the template back, which adds the whole
page to your context and checks nothing the template's tests do not. No byte count means the
template was not found and nothing was written: go to step 3.
Publish that file with the Artifact tool. The Artifact takes its name from that first-line
<title>, and the tool adds the <html>, <head> and <body> itself, so add nothing around
the file. A snapshot declares no connectors. To update an Artifact, write a new file the same
way and pass the Artifact's url.
Only if the command printed no byte count, read the template and write the same file with
your file tool: the title line, the template unchanged, the JSON with < written as \u003c,
then </script>. Never publish a page without the template.
The snapshot JSON:
{
"title": "<the Artifact title>",
"company": "<company_name from company_get_context>",
"sections": [{ "report": <the reports_run JSON block>, "chart": <only for a graph> }],
"observations": ["<one evidence-backed observation per item>"],
"notes": ["<data-quality notes, including a caller's notes>"]
}
report is the JSON block exactly as returned, minus what the page does not read: drop every
row's and total's path, id, cell_ids, cell_links and cells, but keep cells entries for
columns that never appear in values, such as Date or Name. Change no label, number or null.meta's title, period, basis, currency and generated-at, the hierarchy from
level and kind, totals as key figures, the Balance Sheet or Trial Balance tie-out, and a
note when meta.page.next_offset is present. Do not repeat those in notes.sections. A report the user wants despite no data
is { "status": "empty", "report": ... }. A partial one is { "status": "partial", "heading": "<report title>", "summary": "<the summary line exactly as returned>", "next_action": "Rerun the report" }. A blocked one is { "status": "blocked", "heading": ..., "error": { "code", "message", "next_action" } }.chart follows references/graphs.md; a live page's JSON is the config
in references/live-artifact.md.Confirm that the Artifact was actually created, then give a short chat summary with its name and two to four key returned figures or observations. Do not duplicate the full report in chat.
After presenting the requested report, offer one relevant follow-up rather than a catalog dump. Examples:
ProfitAndLossDetail or GeneralLedger;Run another report only when the user accepts or when it was part of the original request.
At the end of every successfully created snapshot Artifact, ask whether the user wants Claude to update that Artifact automatically on a cadence. Offer:
A live Artifact is already current, so do not offer this. If the user asks for a schedule on one, say so and offer dated snapshots, which leave the live Artifact unchanged. A chat or file report has no Artifact to update, so do not offer this for one either.
Read references/scheduled-updates.md before asking for schedule details or creating a scheduled task, including when the first request already asks for recurring updates and when the user replies with schedule details in a later turn. It holds the rules for creating the task and what its prompt must contain.
/onboard loads this skill by name for its business health report, a Profit & Loss and Balance
Sheet. When a workflow loads it:
args (reports, period,
artifact: "combined" for one Artifact, reply, or file holding every report, kind of live,
snapshot, chat, or file, and notes for its data-quality notes) or in the caller's own
instructions: for example, skipping the follow-up and scheduled-update offers.kind. When kind is missing, it is chat if Claude cannot create an
Artifact; otherwise ask live or snapshot, live first, and end the turn before any report call.
When the passed kind is live and live is unavailable, section 2 applies. Show a report with
no data as an empty section.reports: for each report, its name, status, and the returned period and basis;artifact: the Artifact title, chat, the file's path, or blocked; andnext_action: one step for the user when a report is not generated.End with:
Do not mark the report generated until QuickBooks Labs returned report data and the Artifact was actually created, the table shown, or the file written. Do not mark a scheduled update created until Cowork confirms the task.
assets/live-report.html (opens in a new tab)assets/snapshot-report.html (opens in a new tab)references/chat-and-file.md (opens in a new tab)references/detail-reports.md (opens in a new tab)references/graphs.md (opens in a new tab)references/live-artifact.md (opens in a new tab)references/scheduled-updates.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/categorize-transactionsCategorize 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./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.Other plugins' skills for the same job
/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.npx claudepluginhub intuit/intuit-plugins-official --plugin quickbooks-labs