Bank Statement OCR Organizer
Paste the following prompt into your AI chat to install this skill:
Please install @user_d2f40577/bank-statement-ocr according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem Addressed
Scanned bank statements often appear in litigation, audit, or personal asset review. They usually exist as PDF page images, not queryable tables. Manual transcription of date, memo, debit, credit, balance, and counterparty name is slow and error-prone, and it is hard to preserve the source page for each row. This skill targets that workflow: it converts scanned bank statement PDFs into structured Excel workbooks, with one worksheet per bank.
How It Works
The pipeline is engineering-focused: it first checks the visual OCR API configuration, then uses PyMuPDF to rasterize PDFs into 200 DPI PNG pages. scripts/batch_worker.py processes pages in parallel and writes per-page OCR results to JSON. overrides.json is used to correct edge cases such as misidentified bank names, mismatched page counts, or file mapping issues. Finally, scripts/generate_excel.py generates an Excel workbook named after the original PDF with an AI-organized suffix.
The generated workbook includes bank-specific worksheets with:
- A title row:
{owner} - {bank} statement details - A source row: PDF name and record count
- Common columns:
Date,Memo,Income,Expense,Balance,Counterparty, and similar fields - A
Source pagecolumn - Summary statistics: total records, income/expense counts and amounts, net flow
Scope and Cautions
This is not a zero-review OCR tool. Scan quality, fonts, stamps, occlusions, and missing cross-page fields can affect accuracy. Similar bank names are a real failure mode; for example, CMB may be misread as CCB or ICBC, so the workflow requires checking the bank mapping and account holder for each page. If a page has no owner field, the pipeline uses forward inheritance from the previous page. One PDF may contain multiple account holders, and the output worksheets reflect distinct owners. It is suitable for generating a reviewable draft, not for direct use as financial or legal evidence without human confirmation.
Use Cases
- Litigation counsel converts multiple scanned bank statement PDFs into Excel sheets by bank with source page references.
- Auditors review OCR results, correct misidentified bank names, and generate statement sheets with summary statistics.
- Legal accountants combine multiple account records into bank-specific Excel sheets with owner and source page fields.
- Data analysts extract dates, memos, income, expense, and balance fields from PDF statements into filterable tables.
Best For
- Lawyers who need to convert scanned bank statement PDFs in litigation files into bank-level Excel worksheets for review
- Auditors who need to check OCR output and correct bank names or account holders
- Legal accountants who need to consolidate multi-account statements while preserving source pages
- Data analysts who need structured fields from bank statements for reconciliation
Related Skills
Scrapes JD search results for product titles, prices, sales, and stores, then exports verified data to UTF-8 CSV.
An A-share market monitor using Sina Finance API for real-time quotes, price and percentage alerts, daily logging, and scheduled checks.
Turn pasted or queried Xiaohongshu notes into a research memo covering title patterns, structure, quoted comments, and follow-up angles; public lookups are optional and confirmed before paid execution.
A universal base component that automatically launches the Edge browser and connects the BrowserSkill extension, ensuring readiness for web scraping and browser automation tasks.