The AgentivUse cases

Finance · An afternoon · Thailand

Every bank statement into one checked sheet

Bank statements from any Thai bank, as PDF, scans, Excel or CSV, are turned by a Claude Code skill into one monthly summary sheet with 14 fixed columns, a reviewer agent checks every row's balance chain, anything unreadable is left blank and explained in a Thai notes file, and the accountant takes it into the books

The problem

A Thai company with accounts at three or four banks gets a different statement layout from each, some as PDF, some as scans, some as Excel, and the month end starts with someone retyping opening balances, deposits, withdrawals, interest and withholding tax into one sheet. A typo there carries into the books, and nobody notices until the balances stop adding up.

Architecture

  1. Channel
    • Statements dropped in a folder
    • Skill run in the terminal
  2. Agent
    • Groups files by bank layout
    • Workers extract, reviewer checks
    • Balance chain on every row
  3. Tools
    • pdfplumber and openpyxl
    • Monthly CSV, 14 columns
    • Notes and skipped files CSV
  4. Human
    • Accountant checks the notes

Where the data stays: Statements and the output CSVs stay in local folders the finance team controls and outside any repository; the agent reads them for the run and the notes file records every cell it could not fill.

Design flow

  1. Month's statements dropped into the input folder
  2. Files grouped by bank layout, workers extract the rows
  3. Reviewer checks each group, up to two fix rounds
  4. Balance chain and duplicate checks; blanks explained
  5. Accountant checks notes and odd rows against originalsHuman checkpoint
  6. Monthly CSV goes into the books

Setup

Total time: 2 h 10 min our estimate

  1. 15 min

    Done when: The skill (or its plugin) is installed in Claude Code, Python 3.9 or later with pdfplumber and openpyxl is ready, your plan has Sonnet and Opus (the README requires both), and Claude Code lists the skill when asked what it can do.

  2. 20 min

    Done when: One folder outside any repository holds the month's statements from every bank; protected PDFs carry PW and the password in the filename, and the folder is listed in .gitignore.

  3. 45 min

    Done when: The run produces tranbank_YYYY-MM.csv with one row per account, currency and month, the notes CSV and the Thai skipped files CSV, and every row passes the balance chain or appears in the notes.

  4. 30 min

    Done when: The accountant has opened every blank cell and non reconciling row in the notes against the original statement, filled or corrected it by hand and initialled the sheet.

  5. 20 min

    Done when: The checked CSV is taken into the books, and the CSVs and notes for the month are archived with the statements in the finance team's storage, not in a repository.

Ticks are saved on this browser.

Download the kit (zip)

Starter prompt

Written from how the use case works and its sources. Replace the parts in square brackets.

Use the bank statement summary skill on the statements in [input folder] for [month, YYYY-MM]. They come from [banks], in Thai and English, some as scanned PDFs; passwords are in the filenames as PW followed by the password. Produce the monthly CSV with the 14 fixed columns, one row per account, currency and month, and check every row with the balance chain: opening plus deposits minus withdrawals plus interest plus bonus minus withholding tax equals closing. Never invent a number: leave anything unreadable blank and explain it in the notes file, and list files that produced no row in the skipped files report in Thai. I will check the notes and the non reconciling rows against the originals before booking anything.

Risks and data

Data

The run reads every statement in the folder, so account numbers, balances and counterparties pass through the coding agent and its model provider; keep the folders local and out of git, use a plan whose terms fit financial data, and delete working copies once the month is archived.

How it goes wrong

A scanned statement with a smudged digit gives a row that reconciles only because two errors cancel, or a new bank layout lands rows in the wrong columns. You notice when the notes file is suspiciously short for a messy month or when the closing balance disagrees with the bank app, so compare one row per account with the original every month and treat a clean notes file as a prompt to look harder, not less.

Data protection. This use case touches personal data, so check the rules where you operate (for example GDPR, PDPA). Statements hold account numbers, balances and counterparties' names. Keep input and output folders out of any repository (the README's .gitignore excludes PDFs, zips, CSVs, spreadsheets and images), run the skill on a machine the finance team controls, and check how your coding agent's plan treats the files it reads under PDPA.

How the agent works

  1. It starts

    The accountant drops the month's statements into an input folder: PDF, scanned PDF, Excel or CSV, in Thai or English, from any bank, zips included (Windows zips with Thai filenames are handled), with a PDF password taken from the filename when it is written as PW followed by the password, otherwise asked for once.

  2. The agent works

    The skill's orchestrator extracts the text, groups the files by bank layout and dispatches worker agents per group (Sonnet, with Opus for the harder groups, up to 8 files extracted in parallel); a reviewer agent on Opus checks each group and sends fixes back for up to two rounds. Then come the merge, coverage, duplicate and balance chain checks: every row must satisfy opening balance plus deposits minus withdrawals plus interest plus bonus minus withholding tax equals closing balance. The output is one CSV per month with one row per account, currency and month and 14 fixed columns (number, account name, product, bank, account type, account number, opening balance, total deposits, total withdrawals, interest income, bonus, withholding tax, currency, closing balance), saved as UTF-8 with BOM so Excel opens it cleanly, plus a notes CSV for blank cells and rows that do not reconcile and a skipped files CSV written in Thai. The rule in the README is never invent a number: a value the skill cannot read stays blank with the reason in the notes.

  3. The result

    The accountant reads the notes and the non reconciling rows against the original statements before anything goes into the books.

Worked example

The skill is published on GitHub under the FinanceSkill organisation with the MIT license as bank-statement-summary-for-claude, with a Codex version, bank-statement-summary-for-gpt (both READMEs opened 25 November 2026). It names no business or user and makes no accuracy claim, so the example is the README's own worked flow for a Thai accounting team: statements from any bank in Thai or English, KBank appearing in an example filename, Thai filenames inside Windows zips, a PDF password read from a filename written as PW followed by the password, output files named tranbank_YYYY-MM.csv with a notes file and a Thai skipped files report, the balance chain check on every row (opening plus deposits minus withdrawals plus interest plus bonus minus withholding tax equals closing), up to 8 files extracted in parallel and at most two review rounds before an Opus worker takes what is left (a fresh worker on the same model in the Codex version). The README calls it step 1 of a multi step process, with the 14 column names and order fixed for the steps that follow, and tells users to keep statements and outputs out of the repository.

The skill is published twice, once for Claude Code (also packaged as a plugin) and once for Codex, which needs agent delegation and access to gpt-6.1-sol at high reasoning effort per its README; those are the two agents it runs on. Both versions need Python 3.9 or later with pdfplumber and openpyxl. Another coding agent would need the skill folder adapted to its own format, so none is listed.

Join the Agent OS Club

Get hours back with a team of AI agents for every department, set up step by step for the tools you use, with a person answering your questions. Founding member price: USD 14.95 a month or USD 150 a year, locked for as long as you stay. Cancel any time.

Founding offer, ends 31 December 2026 or at member 100

Join the Agent OS Club

Building this for an organization? Learn more at theagentiv.com

Sources

Published: 2026-11-25

Related use cases

Members pick

Close every client's month without retyping

A Thai accounting office's month, OCR exceptions listed, expenses vouched against the documents, posted to FlowAccount or PEAK as pending approval, the bank reconciled and the withholding tax forms prepared by Claude Code plugins, with a read only checker agent and the accountant approving in the ERP

FinanceEffort: About a weekThailand
Claude CodeFlowAccountPEAK

An accounting office with dozens of clients gets each month as a pile of OCR output full of misreads, expenses that should have had withholding tax, abbreviated tax invoices claimed as input VAT, and a junior who posts first and vouches later. The senior finds the mistakes at close, in the ERP, where undoing them costs more than catching them would have.

Catch the vendor bill error before you pay

Purchase orders matched against shipping records and vendor bills in ChatGPT, so billing errors and retailer chargebacks are caught before a gift wrap company pays

FinanceEffort: An afternoon
ChatGPTAlso works with:ClaudeGemini

A product company that ships to retailers gets its purchase orders, shipping records and vendor bills from three different places, and nobody has time to lay them side by side. A quantity billed but never shipped, or a short shipment the retailer later deducts as a chargeback, only shows up months later in the bank balance.

Thai tax answers that show their source

An agent skill for Claude Code, Claude and ChatGPT answers a Thai SME's withholding tax, VAT and filing deadline questions from an open handbook, cites the Revenue Department or Royal Gazette source behind each rule, shows the calculation line by line and tags what is unconfirmed; the accountant confirms before anything is filed or paid

FinanceEffort: An afternoonThailand
Claude CodeAlso works with:ClaudeChatGPTGemini

An owner of a หจก. or บจก. pays a freelancer, rents an office or crosses the VAT threshold and needs to know the rate, the form and the deadline today, while the accountant answers next week. A chat assistant gives a confident number from memory, and Thai rates change: VAT 7% and the e-WHT 1% rate are both temporary measures with end dates.