extract-bank-statement

extract-bank-statement is a skill for Claude Code from cynco-labs/ai-accounting-skills. It costs 37 tokens per session (576 once invoked), scanned A, original, MIT.

A tool for turning bank statements in PDF or CSV form into transaction records, with checks that the running balance adds up.

In plain words
What is it for?
Use it to extract bank activity into Excel or JSON files for bookkeeping and review. It supports CSV files and specific Maybank Islamic PDF statements; other PDF formats require a CSV export.
Why use it?
It reduces manual copying and helps reveal missing or invented entries by stopping when the balance does not reconcile.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/extract_bank.py \.

Part of the accounting-engagement plugin — 45 skills shipped together

Good fit Use it to extract bank activity into Excel or JSON files for bookkeeping and review. It supports CSV files and specific Maybank Islamic PDF statements; other PDF formats require a CSV export.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/cynco-labs/ai-accounting-skills
agentmods
npx agentmods add skills/cynco-labs/ai-accounting-skills/extract-bank-statement

Made for: Claude Code.

Or install accounting-engagement, the plugin that ships this one along with the rest of its 45 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for extract-bank-statement

README.md
[![agentmods](https://agentmods.dev/badge/skills/cynco-labs/ai-accounting-skills/extract-bank-statement/github.svg)](https://agentmods.dev/skills/cynco-labs/ai-accounting-skills/extract-bank-statement)
Your own site
<a href="https://agentmods.dev/skills/cynco-labs/ai-accounting-skills/extract-bank-statement"><img src="https://agentmods.dev/badge/skills/cynco-labs/ai-accounting-skills/extract-bank-statement/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for extract-bank-statement

Your own site · 80×15
<a href="https://agentmods.dev/skills/cynco-labs/ai-accounting-skills/extract-bank-statement"><img src="https://agentmods.dev/badge/skills/cynco-labs/ai-accounting-skills/extract-bank-statement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 576 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.00576
Opus 5 $0.00018 $0.00288
Sonnet 5 $0.00007 $0.00115
Haiku 4.5 $0.00004 $0.00058

Measured 12d ago against content hash 96e1dad61dc3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

extract-bank-statement scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

accounting-engagement/skills/extract-bank-statement/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/extract-bank-statement

Purpose

Bank lines → structured transactions with proof, not vibes.

pdfplumber / CSV → layout adapter → Decimal balance proof → Excel / JSON

Preconditions

  1. Read shared/guardrails.md and references/bank_statement_extraction.md.
  2. Prefer CSV/Excel export from the bank portal when the user can provide it.
  3. Never invent lines. Fail loud on balance breaks.

Step 1 — Unified extract (required)

python3 scripts/extract_bank.py \
 --input /path/to/statements \
 --output ./outputs/bank.xlsx \
 --also-json ./workpapers/transactions.json \
 --client-slug <slug> \
 --fail-on-error

# detect only
python3 scripts/extract_bank.py --input /path/to/statements --detect-only

# CLI
npx @cynco/accounting-skills extract ./statements --out ./bank.xlsx --json ./txns.json
Adapter Status
maybank_islamic_pdf Production (pdfplumber + line proof)
cimb_csv Production (debit/credit CSV + balance proof)
generic_csv Production (flexible headers)
Other PDF brands Ask CSV — do not freestyle 1000 lines in chat

Maybank-only direct script (still valid):

python3 scripts/extract_maybank_islamic_pdf.py \
 --input /path/to/statements \
 --output ./bank.xlsx \
 --also-json ./workpapers/transactions.json \
 --fail-on-error

Step 2 — Verify

  • line_balance_ok / open–close proof in extract meta
  • Spot-check first/last page against PDF
  • Write source register entry

Decision table

Input Action
Maybank Islamic PDF extract_bank / Maybank script
CIMB / generic CSV extract_bank CSV adapters
Other bank digital PDF Prefer CSV; else new adapter (copy Maybank pattern)
Scanned image PDF Ask for CSV or OCR pipeline — not vision freestyle

Completion

Done when: transactions.json (and optional xlsx) written, line/open–close balance proof passes (or must stop recorded), source register updated.

Gates

  • --fail-on-error must be set for production extracts
  • Zero fabricated transactions

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 81 lines · 37 tokens per session scan A 96e1dad61dc3

Subscribe to this mod's changes

extract-bank-statement is a skill published in the GitHub repository cynco-labs/ai-accounting-skills (3 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 576 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

jangbu-import

A data-import workflow for turning bank files, card records, spreadsheets, receipts, tax invoices, and statement PDFs into a standard set of 13 transaction fields. OCR, or optical character recognition, is used to read information from document images and PDFs.

kimlawtech/korean-jangbu-for · 97 tokens

countbean-accounting

Rules for writing correct double-entry Beancount transactions when managing a Countbean cloud book — account naming, how to balance postings, categorisation, and safe ingestion. Use whenever recording, importing, or correcting financial data in a Countbean book.

CPUtester5465/countbean-plugin · 54 tokens

process-my-statements

Process a batch of PDF or CSV bank and credit-card statements end to end: extract every transaction (parallel Haiku subagents), canonicalize the party names, categorize against your locked chart of accounts (parallel Sonnet subagents), detect inter-account transfers, and assemble a reviewed Google Sheets workbook with…

akiotanaka847/qaio-desktop · 109 tokens

expense

Dodaje fakturę zakupu (koszt) do rejestru SQLite — zapisuje sprzedawcę, NIP, kwoty, kategorię, datę wpływu. Obsługuje wprowadzanie ręczne ORAZ OCR z pliku (PDF/JPG/PNG) przez lokalny Pixtral 12B z fallbackiem na Claude Haiku 4.5. Na ryczałcie koszty NIE pomniejszają podatku, ale VAT naliczony idzie do JPKV7M jako…

dithiothreitol/jdg-ksiegowy · 212 tokens

invoice-send

Konwertuje wygenerowaną fakturę DOCX na PDF (LibreOffice headless) i wysyła mailem do kontrahenta z treścią po polsku. Używa SMTP skonfigurowanego w .env. Użyj gdy user mówi "wyślij fakturę mailem", "wyślij PDF fakturę do X", "roześlij fakturę A1/04/2026", "wyślij ostatnią fakturę", "mail do klienta z fakturą".

dithiothreitol/jdg-ksiegowy · 116 tokens

invoice

Wystawia fakturę VAT dla JDG — generuje DOCX (do wysyłki/druku) i XML FA(3) (do KSeF), zapisuje do rejestru SQLite i zwraca numer faktury + ścieżki plików. Użyj gdy user prosi o "wystaw fakturę", "wygeneruj fakturę", "fakturę dla...", "faktura za usługę/konsultację/miesiąc".

dithiothreitol/jdg-ksiegowy · 108 tokens