Prompt library

Eighteen prompts. Copy, fill in the brackets, run, check.

Every prompt asks the AI to show its work and name its assumptions. None of them contains company data.

Download all 18 (.txt)

Build the Lab demo

Paste into any AI tool and get a single HTML file. Data is generated in code and every build ends with checks.

PromptLab: Reconciliation that shows its work
Build a single self-contained HTML file: HTML, CSS and vanilla JavaScript in one file, no libraries, no network requests, no tracking. It must work offline, support light and dark mode, be usable with a keyboard, and read well on a phone. Use only synthetic data generated in the code. Never type a total by hand: compute every figure in code.

PURPOSE
A reconciliation with a paper trail: a ledger as posted is compared line by line with the source file it should agree with.

DATA (generated in code with a fixed seed)
- A clean ledger of 36 lines: id (L001 to L036), period (the three months of one quarter), department (three of them), account code (from a short chart of accounts) and amount (two decimals).
- A source file with the same 36 lines. It stands in for a bank statement.
- A "posted" ledger of 37 lines, made from the clean one with exactly four planted errors: (1) one amount with its sign flipped, (2) one line that uses an account code not in the chart, (3) one line dated in a period outside the quarter, (4) one line that duplicates an earlier line.

BEHAVIOUR
1. A "Run check" button matches each posted line to the source by id and compares every field. A line that differs, or has no source line, gets a flag that names the rule it broke in plain words, for example "amount differs from source" or "account not in chart".
2. A table shows the posted amount, the source amount and a status for each line. Status uses an icon and a word, never colour alone.
3. Each flag has "Accept correction" and "Reject flag" buttons. Totals recompute after every decision. Add "Accept all" and "Reset".
4. A by-period table shows totals before and after your decisions, so errors that offset each other are visible.
5. An audit trail lists every decision in order, with the line id and the rule.

CHECKS (run them in code; show the result on the page and in the console)
- The clean ledger has 36 lines and the posted ledger has 37.
- Exactly four lines are flagged.
- After accepting all four corrections, the posted total equals the clean total to the cent.
- Each displayed subtotal equals the sum of its lines.
If any check fails, say which one and stop.

OUTPUT
Return only the finished HTML file. Then list every assumption you made that I did not give you.
PromptLab: One metric, three definitions
Build a single self-contained HTML file: HTML, CSS and vanilla JavaScript in one file, no libraries, no network requests, no tracking. It must work offline, support light and dark mode, be usable with a keyboard, and read well on a phone. Use only synthetic data generated in the code. Never type a total by hand: compute every figure in code.

PURPOSE
Show that one word ("revenue") has three defensible answers, and that a metric needs a written definition with a named owner.

DATA (generated in code)
- 24 orders in one quarter: id, order date, status (shipped, open or returned), gross amount, discount, and return amount (returned orders only).
- Three named definitions:
  Bookings = gross amount of all orders.
  Shipped Gross = gross amount of every order that has shipped (including ones later returned); open orders are left out.
  Net Revenue = Shipped Gross minus discounts minus returns.
  Discounts apply to shipped orders only.

BEHAVIOUR
1. A waterfall chart steps from Bookings to Shipped Gross to Net Revenue, one adjustment at a time. Totals are one colour and reductions another.
2. Three switches (take off open orders, take off discounts, take off returns) change the chart. Three buttons set the switches to a named definition. If the switches match none of the three, say so in words.
3. Hover, tap or keyboard focus on a bar shows the arithmetic for that step. Escape closes it.
4. A metric dictionary table with name, formula, source, owner (a named fictional person, never a team) and the date the definition took effect.
5. A "definition lint" that checks the dictionary and flags: a missing owner, an empty field, a bare name like "Revenue", a team where a person should be, and dates that can be read two ways (such as 03/04/2026). Provide a "first attempt" dictionary with these problems and a "repaired" one with none.
6. A table alternative for the chart with every exact figure.

CHECKS
- Compute each definition from the orders, then compare it with the end of the matching bar.
- Bookings minus open orders equals Shipped Gross. Shipped Gross minus discounts minus returns equals Net Revenue.
- The lint finds every planted problem in the first attempt and none in the repaired one.
If any check fails, say which one and stop.

OUTPUT
Return only the finished HTML file, then list every assumption you made.
PromptLab: Pricing what-if with sliders
Build a single self-contained HTML file: HTML, CSS and vanilla JavaScript in one file, no libraries, no network requests, no tracking. It must work offline, support light and dark mode, be usable with a keyboard, and read well on a phone. Use only synthetic data generated in the code. Never type a total by hand: compute every figure in code.

PURPOSE
An analysis other people can explore. Move a slider and watch the result change.

DATA (invented, generated in code)
Four products. Each has a price per unit, a volume, a unit cost and fixed costs. The starting values are the baseline.

BEHAVIOUR
1. Choose a product. Three sliders (price, volume, unit cost) each show the current value and the baseline. Arrow keys, Page Up, Page Down, Home and End all work.
2. Calculations: revenue = price x volume. Gross profit = (price - unit cost) x volume. Gross margin = gross profit / revenue. Break-even volume = fixed costs / (price - unit cost). If price is at or below unit cost, show "none" and say why.
3. A bar chart with baseline bars (grey) and your bars (blue) side by side for all four products, and a switch to compare revenue, gross profit or gross margin. Bars start at zero.
4. Write the arithmetic out under the chart in words, with the live numbers.
5. A "Reset to baseline" button, a table alternative showing before and after for every product, and announcements for screen readers when a value changes.

CHECKS
- Recompute every displayed number in a separate function and compare it with what is on screen. Show a visible warning on any mismatch.
- Test two edge cases: price equal to unit cost, and volume of zero.

OUTPUT
Return only the finished HTML file, then list every assumption you made.
PromptLab: Hours reclaimed
Build a single self-contained HTML file: HTML, CSS and vanilla JavaScript in one file, no libraries, no network requests, no tracking. It must work offline, support light and dark mode, be usable with a keyboard, and read well on a phone. Use only synthetic data generated in the code. Never type a total by hand: compute every figure in code.

PURPOSE
Turn "it only takes a few minutes" into arithmetic.

INPUTS
Runs (whole number), how often (per working day, week, month, quarter or year), minutes per run, and number of people who do it.

CALCULATION
Runs per year = runs x 260, 52, 12, 4 or 1, depending on how often. Hours per year = runs per year x minutes per run x people / 60. Show every step with the actual numbers. Round hours to one decimal place and keep minutes exact. State the assumptions: 260 working days, 52 weeks, 12 months, 4 quarters.

BEHAVIOUR
- The result updates as the inputs change. Reject anything that is not a whole number and say why.
- Three example buttons that fill in invented inputs.
- A plain sentence that the tool adds up the time a task takes today and makes no claim about what automation would save.

CHECKS (run in code, report on the page)
- 1 run per week, 30 minutes, 1 person = 26.0 hours a year.
- 1 run per month, 120 minutes, 3 people = 72.0 hours a year.
- 1 run per working day, 10 minutes, 2 people = 86.7 hours a year.
If any check fails, say which one and stop.

OUTPUT
Return only the finished HTML file, then list every assumption you made.
PromptLab: audit what the AI built
Now audit what you just built.
1. List every number the page can show.
2. Recompute each one in a separate script that shares no code with the page, and tell me any that differ.
3. List every assumption you made that I did not give you.
4. Tell me what the page cannot tell me, and what I would have to check by hand.

Power BI and finance playbooks

For an AI client connected to your Power BI model. Read-only unless you say otherwise. Fill in the [brackets].

PromptPlaybook 1: connect and explore, read-only
You are connected to Power BI through the Power BI Modeling MCP server. Work read-only until I say otherwise.
1. List the local Power BI instances. If more than one is open, show me the report name and port for each, and wait for me to choose. Do not guess.
2. Connect using the port I chose.
3. List the tables, columns, measures and relationships. Change nothing.
4. Tell me what you cannot see from here (report pages, visual-level filters) and what I would have to check by hand.
5. Before any write operation, show me exactly what you plan to change and wait for a yes.
PromptPlaybook 2: find why two numbers differ
Two numbers should match and do not.
Report A shows [number A] with these filters: [filters A].
Report B shows [number B] with these filters: [filters B].
Use the connected model.
1. Query INFO.COLUMNS first. Do not guess a column name.
2. List the relationships between the tables involved, with direction and whether the key is unique on the "one" side.
3. Write one DAX query that returns COUNTROWS, DISTINCTCOUNT and SUM for [measure] three ways: with no filters, with the [dimension] filter, and with the relationship path removed.
4. Tell me which step loses or duplicates rows, using the differences between the three results.
5. List the visual-level and page-level filters I need to check in the report, since you cannot see them.
6. Write the finding as one sentence I can store: "[term] means X, excluding Y."
PromptPlaybook 3: batch-edit visuals safely
I am going to edit a Power BI report saved as a PBIP project in PBIR format. The changes are: [list of changes].
Before you touch any file:
1. Confirm the report is closed in Power BI Desktop. If I have not said so, ask.
2. List every visual.json file you plan to change and the exact change for each.
3. For any caption or visual whose meaning is unclear, ask me which business definition it should show before you edit.
4. Keep a copy of every file you change.
After editing, list each file changed with a one-line before and after. Do not edit the semantic model in this pass. I will do model changes separately, with the report open.
PromptPlaybook 4: design the income statement
Design an income statement for a Power BI model built on a general-ledger table.
Order: Sales, cost of sales in stages, subtotals, gross profit, selling expenses, general and administrative expenses, operating income.
1. Inspect the model first. List the tables and columns that hold account, department, group and amount. Do not assume names.
2. Check that every key I would use in a relationship is unique on the "one" side. Report any that are not.
3. Propose the measures: base measures, calculated subtotals (named as calculations), a sort measure for display order, and an "actual with overrides" measure so lines can be reclassified without editing source data.
4. Propose the matrix setup: rows, columns, and the visual filter that hides rows that do not belong.
5. Show me the DAX and wait before creating anything.
PromptPlaybook 5: weekly cash report without touching the ERP
I want AI access to accounting data without touching the ERP.
Use only the reporting layer: [reporting database or Power BI model]. Read-only.
Build a weekly cash report for the week ending [date]:
1. Inputs: [bank export files, or the ledger's cash accounts].
2. Output: the week's activity by account, and ending balances.
3. The book balance and the bank balance will differ. Show the reconciling items (outstanding checks, deposits in transit) as separate lines. Do not force the numbers to agree.
4. Show the arithmetic: opening + receipts - disbursements = ending book balance. Ending book + outstanding checks - deposits in transit = bank balance.
5. Flag anything you could not match, and list the assumptions you made.
PromptPlaybook 6: onboard an overseas entity
A subsidiary in [country] runs [accounting package] and I want its numbers in our consolidated reporting.
1. Write a request for the local IT team asking for: the software version, where the database is hosted, how I can reach it securely, a read-only login, the schema and modules in use, the chart of accounts, the fiscal calendar, and any rules on exporting financial data out of the country.
2. Propose a staging layout: tables kept separate from the main model.
3. Draft the mapping sheet from the local chart of accounts to our reporting hierarchy. Columns: local account, local name, our account, our name, notes, owner.
4. List the translation questions: currency and rate type, fiscal calendar alignment, and local-language names.
5. List what I must confirm with our controller or legal team before any data moves.
PromptPlaybook 7: is my model ready for a chat interface?
I want colleagues to ask [kind of] questions in [chat tool] and get answers from our Power BI model.
Audit the model for readiness. Read-only.
1. List tables, columns and measures. Flag names a new colleague would not understand, and measures with no description.
2. Flag ambiguous or inactive relationships and many-to-many paths.
3. For each of these questions, say which measures and columns would answer it and where it could go wrong: [question 1], [question 2], [question 3].
4. Draft descriptions for the ten most-used measures, for me to review.
5. For each option I am considering ([options]), list the licensing, capacity and connector requirements. Say which ones you cannot verify and I need to check against current Microsoft documentation.

Dashboard formats

Prompts for the six formats on the Field notes page. Each asks for the definitions and checks before any build.

PromptFormat: Executive income statement
Build a Power BI executive income statement as a matrix, using the connected semantic model. Read-only until I approve.
Order: net sales, cost of sales, gross profit, selling expenses, general and administrative, operating income.
Columns: actual, budget, variance in dollars, variance in percent (positive means favorable), prior year, change from prior year.
1. Inspect the model and list the columns you will use. Do not guess names.
2. Propose calculated subtotal measures, a sort measure for display order, and the visual filter that hides rows that do not belong.
3. Show me the DAX and wait.
4. Give me three checks I can run: operating income = gross profit - selling - G&A, page total = ledger total, and a period change moves every column.
PromptFormat: Scorecard by owner
Build a Power BI scorecard by [owner, for example sales rep]. Read-only until I approve.
Three captions (month, quarter, year to date), each with the result, percent to goal and variance to goal, in an identical format. Below them, a ranked table by percent to goal.
1. Ask me: what counts as a result, what the goal is and who sets it, and how mid-year changes are handled. Wait for answers.
2. Inspect the model and list the columns you will use.
3. Write the measures, one per caption, built the same way for the three periods.
4. Give me a check I can run by hand for one owner.
PromptFormat: Sales dashboard with backlog
Build a sales dashboard with a backlog panel in Power BI. Read-only until I approve.
Left: current-period sales by week. Right: backlog by product group, from a snapshot table, with the snapshot date shown next to the total.
1. Ask me how backlog is defined, when the snapshot is taken, and how changes after the snapshot are handled.
2. Propose the snapshot table design and how it is refreshed. Never read backlog from live data.
3. Write the measures.
4. Give me two checks: snapshot total = booked-not-shipped on the snapshot day, and the date only changes when a new snapshot is taken.
PromptFormat: Inventory view
Build an inventory page in Power BI. Read-only until I approve.
One row per item: on hand, average weekly demand, coverage in weeks (on hand / demand), and a status in words: low, ok or slow mover.
1. Ask me: the window for average demand, the thresholds for low and slow mover, and whether on hand includes goods in transit.
2. Inspect the model and list the columns you will use.
3. Write the measures and handle zero demand explicitly.
4. Give me checks: two coverage figures recomputed by hand, and no item in two statuses.
PromptFormat: Weekly cash report
Build a weekly cash report for the week ending [date], read-only, from [source].
One row per account: opening, receipts, disbursements, ending book balance, outstanding checks, deposits in transit, bank balance. Add a total row.
1. Show the arithmetic: opening + receipts - disbursements = ending book. Ending book + outstanding checks - deposits in transit = bank balance.
2. Do not force the book and bank balances to agree. Show the reconciling items.
3. Flag anything you could not match, and list your assumptions.
4. Write the email text that would carry this report, with the table in it.
PromptFormat: Monthly close deck
Build a month-end close checklist for a recurring deck made from a dashboard.
1. List the checks to run before sending: the period selected, the snapshot date, visuals frozen as pictures, totals tied to the closed ledger, and no live links.
2. For each check, say how to run it in under a minute and what a failure looks like.
3. Write a one-page sign-off template with the owner's name, the date and each check.
4. Suggest a naming convention for the file that makes the period obvious.

Results differ between AI tools and between runs. That is why the checks are written into the prompts. Educational only; not financial, legal or tax advice.