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
- Channel
- Statements dropped in a folder
- Skill run in the terminal
- Agent
- Groups files by bank layout
- Workers extract, reviewer checks
- Balance chain on every row
- Tools
- pdfplumber and openpyxl
- Monthly CSV, 14 columns
- Notes and skipped files CSV
- 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
- Month's statements dropped into the input folder
- Files grouped by bank layout, workers extract the rows
- Reviewer checks each group, up to two fix rounds
- Balance chain and duplicate checks; blanks explained
- Accountant checks notes and odd rows against originalsHuman checkpoint
- Monthly CSV goes into the books
Setup
Total time: 2 h 10 min our estimate
- 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.
- 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.
- 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.
- 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.
- 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.
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.
How the agent works
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.
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.
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 ClubBuilding this for an organization? Learn more at theagentiv.com
Sources
- https://github.com/FinanceSkill/bank-statement-summary-for-claude
- https://github.com/FinanceSkill/bank-statement-summary-for-gpt
- https://learn.chatgpt.com/codex/skills-and-plugins
Published: 2026-11-25