← Back to library

Have an agent build a bookkeeping pipeline you rerun monthly

Ken Imoto, who runs several small businesses, asked Claude Code for a reusable bookkeeping script instead of a one-off categorization. Over two hundred transactions it matched receipts well but got eleven wrong, and he kept the pipeline to rerun monthly.

  • OutcomeReconcile a month of transactions with a reusable script that matches receipts, proposes categories with reasons and flags what it is unsure about.
  • SetupAn afternoon+
  • LevelIntermediate
  • CreditKen Imoto
View original
Works with
Claude CodeClaude Cowork

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 24, 2026

When should you use it?

  • You do your own books each month
  • You want something repeatable, not a one-off answer
  • You can export transactions

Not for: Filing without review; Businesses with complex tax treatment and no accountant

What do you need, and what do you get?

You need

  • The month's rows exported from your ledger tool
  • Receipts and invoices
  • Your category rules

You get

  • Matched rows with proposed category and reason
  • List of uncertain rows
  • A script you rerun next month

How does it work, step by step?

  1. Ask for a tool, not an answerHave the agent write the pipeline so its rules are visible and fixable.
  2. Pull and matchFetch the month's rows and pair each with a receipt by amount and date.
  3. Propose with reasonsGive every category a one-line justification.
  4. Flag doubtMark rows where intent or local rules decide the answer.
  5. Sign off yourselfReview flagged rows and spot-check confident ones before filing.

The prompt

Our own prompt, inspired by Ken Imoto and written to work in Claude Code and Claude Cowork. Values in lime are placeholders.

Prompt0 variables
Build me a reusable script for monthly bookkeeping. It should load this month's transactions export, pair each row with a receipt in the receipts folder using the sum and the day, suggest a category from my categories file and say briefly why, and write uncertain rows, such as mixed business and personal use or unclear tax treatment, to a review sheet. Do not post anything to my accounting software. Explain how to rerun it next month.

Inspired by Ken Imoto: I Let Claude Code Run a Month of My Business Books. It Reconciled 200 Transactions and Miscategorized 11.. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Confident wrong answers are the danger; the author's errors came with no hedge.
  • Intent, like whether a laptop is for work, is not in the data; you have to supply it.

Our take

This is the right framing for agent bookkeeping: build something you can audit and rerun rather than answers you babysit. The error breakdown is the gift; it shows where to add rules. Ken asked for a tool rather than an answer, so the rules behind every category are visible and fixable. Over two hundred transactions it matched receipts well but got eleven wrong, and those errors came without any hedge, which is the real danger. Give each proposed category a one-line justification, flag rows where intent decides the answer, such as whether a laptop is for work, and supply that intent yourself. Review every flagged row and spot-check the confident ones before filing. Keep exceptions in a queue, attach source receipts, and reconcile against the bank statement each month. Rerunning the same pipeline monthly means the rules improve over time instead of starting from scratch. Businesses with complex tax treatment still need an accountant.

Where the time goes back: Matching hundreds of rows, the part people zone out on, is handled, leaving a short list of real decisions.

FAQ

How accurate was it?
Out of 200 rows, 11 landed in the wrong category in his month.
Where were the errors?
Purchase intent, deduction rules it was never given, and payments covering two things.

Source and credit

Inspired by Ken Imoto. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
I Let Claude Code Run a Month of My Business Books. It Reconciled 200 Transactions and Miscategorized 11.
Creator
Ken Imoto
Published on
DEV Community
Original date
Jun 25, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Claude Code
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Finance & Accounting

All 62 Finance & Accounting playbooks →

Related playbooks

Finance & AccountingSkill✓ AI dry run

Chase overdue invoices in the right tone

Draft reminders for every overdue invoice, gentle for good customers and firm for repeat late payers.

Credit: Anthropic

Under an hour
Finance & AccountingSkill✓ AI dry run

Have Claude build Excel files that recalculate cleanly

Give Claude the xlsx skill so that any spreadsheet it creates or edits keeps live formulas instead of pasted results, passes a full recalculation with zero formula errors before delivery, labels every assumption with its source, and follows standard financial model conventions or the existing file's own styling.

Credit: Anthropic

Minutes
Finance & AccountingWorkflow✓ AI dry run

Match a bank statement to invoices and rename the files

Arrive at your accountant's deadline with every charge matched to an invoice, the gaps listed and the invoice files named consistently.

Credit: Daria Cupareanu

Minutes
Finance & AccountingWorkflow✓ AI dry run

Design a local Schedule C ledger with a human review queue

Use a multi-model planning loop to design a simple self-hosted bookkeeping app that maps expenses to Schedule C lines, keeps personal money separate, and queues uncertain categories for you.

Credit: u/michaeldpj on r/ClaudeAI

An afternoon+