Bank Statement Parsing

Guidelines for parsing bank statements using YOLO layout detection + OCR + LLM.

johnsonhk88 Updated

File contents

Bank Statement Parsing Skill

Core Rules

  • Always start by calling the pdf_extract tool.
  • Do not trust "Paid In" / "Paid Out" column headers when they are ambiguous.
  • Verify every transaction by checking how the running Balance changes:
    • If Balance increases → Credit (Paid In)
    • If Balance decreases → Debit (Paid Out)
  • Extract Opening Balance from "Balance Brought Forward".
  • Extract Closing Balance from the final running balance in the transactions.
  • Preserve original descriptions exactly. Do not summarize or shorten them.
  • If column alignment in the extracted text is messy, rely on balance math rather than position.

Expected Output

Return transactions in a consistent structure with: Date, Description, Debit, Credit, Balance.

johnsonhk88/ai-bank-statement-document-automation-by-llm-and-personal-finanical-analysis-prediction/tree/main/agents/hermes/skills/bank-statement-parsing commit 7fdbf80229

Frequently asked questions

npx skillmds@latest add johnsonhk88/bank-statement-parsing-2