← Back to home

A Pile of Invoices, an AI-Built Expense Report—No More Filling Them In by Hand

Long-Form Video · EP0041 June 15, 2026 3:24
What this episode covers

Surely nobody is still filling in expense reports by hand at this point? Expense reports are just unbelievably annoying—writing out the reason for every single line, attaching a trip statement for every taxi ride. Travel a lot, entertain clients a lot, and your head spins. Back when I was in sales it got annoying enough that I simply stopped filing a lot of my expenses, which just meant leaving money on the table.

So I built a Claude Code skill called "baoxiao." Drop a pile of invoices into a folder (electronic PDF invoices or photos you snapped, either way) and hand it the folder. It renames and files them automatically, fills in your expense report template, attaches the trip statements, separates out the personal income tax portion, and hands you a compliant, print-ready expense report PDF, plus a duplicate-check ledger so you never claim the same invoice twice.

Companion files · Drop them into Claude Code

Surely nobody is still filling in expense reports by hand at this point?

Expense reports are just unbelievably annoying. Back when I was in sales, every filing took forever and my head would spin—every single line needed the specific reason spelled out, and every taxi ride needed a trip statement attached. Travel a lot, entertain clients a lot, and with no assistant it all falls on you. It got annoying enough that, to save myself the trouble, I simply stopped filing a lot of my expenses—which just meant leaving money on the table.

Today a Claude Code skill can take that whole chore off your hands. I built one—an expense report generator—and open-sourced it (MIT): github.com/xntj-ai/baoxiao.

Three stages: messy invoices in, compliance package out

It comes down to three stages:

  1. Dump a pile of invoices in: electronic PDF invoices or photos you snapped, all into one folder, then drag the folder path over to the AI;
  2. It organizes them: it renames the invoices, reads what’s inside each one, fills the details into the expense report template we gave it, and attaches the matching trip statements;
  3. Compliance package out: a print-ready PDF for finance, plus a duplicate-check ledger.

The filename is the database

Look at the filenames after it’s done—rigidly consistent, and readable at a glance:

  • The invoice date (not the payment date);
  • Whether this invoice is input or output;
  • What category of expense it is;
  • Which merchant issued it (with an abbreviation);
  • The invoice’s amount and currency;
  • The last 8 digits of the invoice number—specifically for duplicate checking.

It takes these fields and renames the files directly, keeping the electronic originals intact for audit.

The expense report is generated to your company’s format

Once renaming is done, it hands you a detailed expense report. This one is generated to my company’s expense report format—when you use this skill, you can drag your own company’s expense report template in, and it’ll fill in the expense content accordingly, right down to automatically leaving signature blanks for the approver, the reviewer, and the finance lead.

It also runs an expense analysis and compliance check: how much of this report each expense category accounts for, whether any invoices are duplicates, and—

Commuting income tax versus business travel expenses, separated automatically

As you probably know, Didi invoices for commuting count as a personal benefit and are subject to personal income tax. Some companies therefore require you to separate those invoices from the business-use ones. This skill goes to that level of detail too.

Didi trip statements: reformatted, then attached

Here’s the good part. As long as you have the electronic invoice or a photo of it, it lays your invoices out page by page, ready to print, with the matching Didi trip statement alongside (the trip statements go in that folder too).

But you’ll notice that Didi’s original trip statement is ugly, and thanks to the line wrapping you can barely fit a few trips on a page. So this skill reformats it, attaching a compact version behind each consolidated invoice.

Print it, paste in your paper invoices where they belong, and you’re done. The whole expense process becomes clean and simple.

Who this is for

Whether you’re an executive with no assistant who has to file and paste your own expenses, a founder running your own company where this obviously falls to you, or a board secretary—the monthly expense-pasting chore can go to AI entirely. No problem at all.

This tool just makes the organizing and formatting easier; it is not tax or legal advice. Electronic originals of electronic invoices must be archived, and the stated reason for each expense must be truthful—the machine keeps an eye on those for you, but the compliance floor is still yours to hold.

Executives without an assistant, founders running their own company, board secretaries—the monthly expense-pasting chore can go to AI entirely.