Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pdf-statement-parser

БесплатноБез исполняемых скриптовНе проверен

Parses a single financial statement PDF (checking, savings, credit card, brokerage, 401k, HSA, mortgage, tax form) and emits a normalized JSON record with…

lyndonklот lyndonkl★ 208 звёзд на GitHub

Об этом скилле

PDF Statement Parser

Table of Contents

Overview

Bank, brokerage, retirement, HSA, and mortgage statements arrive as PDFs in many house-styles. This skill is the prompt-driven extraction methodology: identify the document type, locate the canonical fields by their labels (not position), pull every transaction or holding row, and emit a strict JSON record. All monetary values become integer cents, all dates become ISO 8601 (YYYY-MM-DD).

Use directly with Claude's PDF reading: Read the PDF, then run this skill's workflow on the visible content. No external library needed.

Input contract

The caller provides:

  • pdf_path — absolute path to a single statement PDF.
  • expected_type (optional) — one of checking_statement | savings_statement | credit_card_statement | brokerage_statement | 401k_statement | hsa_statement | mortgage_statement | tax_form | insurance_doc | unknown. If absent, the skill detects it.
  • known_accounts (optional) — array of {id, institution, mask, type} for matching.

Workflow

- [ ] Step 1: Read the PDF (first pass: pages 1-2 for header)
- [ ] Step 2: Detect document type from header keywords
- [ ] Step 3: Extract account identity (institution + mask + type)
- [ ] Step 4: Extract statement period (start/end dates)
- [ ] Step 5: Extract balance markers (opening / closing / available)
- [ ] Step 6: Extract line items (transactions, holdings, or events)
- [ ] Step 7: Normalize to integer cents and ISO dates
- [ ] Step 8: Score confidence on each field; emit JSON

Step 1 — Read the PDF

Use the Read tool with the PDF path. For PDFs > 10 pages, read in chunks: pages 1–5 (header + first transactions), then subsequent ranges as needed. Track total page count.

Step 2 — Detect document type

Look for these header signals (in order of authority):

Signal Document type
"Statement of Account" + "Available Balance" + checking-style transactions checking_statement
"Savings Statement" / "Money Market Statement" savings_statement
"Credit Card Statement" + "Payment Due" + "Minimum Payment" credit_card_statement
"Account Summary" + "Holdings" + ticker symbols brokerage_statement
"401(k) Statement" / "Retirement Plan" + "Vested Balance" 401k_statement
"Health Savings Account" / "HSA" + "Contribution Limit" hsa_statement
"Mortgage Statement" + "Principal" + "Escrow" mortgage_statement
"W-2" / "1099" / "1098" / "5498" form numbers tax_form
Policy declaration page, premium, deductible insurance_doc

If two signals tie, prefer the one in the document title or page header.

Step 3 — Extract account identity

  • Institution: top-of-page logo text or "Issued by" / "Statement from" label.
  • Mask: last 4 digits — search for ****1234, xxxx1234, Account ending in 1234, or the redacted form the institution uses. Always store as ****1234.
  • Account type: derived from §2 above plus visible labels ("Checking", "Visa Signature", "Roth IRA").
  • Owner names: full names of account holders (used for matching to household.json members downstream).

Match against known_accounts by (institution, mask). If no match, mark account_match: "new" and propose an account_id like acc_<type>_<incrementing>.

Step 4 — Extract statement period

Find labels: "Statement Period", "Cycle Date", "Closing Date", "Period Beginning … Period Ending". Output:

  • period_start — first day covered (ISO).
  • period_end — last day covered, also the statement closing date (ISO).

If only a closing date is present, set period_end = closing_date and period_start = null with confidence: 0.6 on the period.

Step 5 — Extract balance markers

For cash/credit accounts: opening_balance_cents, closing_balance_cents, available_balance_cents (if present). For credit cards, also statement_balance_cents, minimum_payment_cents, payment_due_date.

For brokerage / 401k / HSA: total_value_cents, cash_cents, invested_cents. Skip opening/closing transaction balances — these are holdings statements.

For mortgages: current_principal_cents, monthly_pi_cents, monthly_escrow_cents, next_payment_due, extra_principal_ytd_cents.

Step 6 — Extract line items

Three modes:

Cash/credit transactions. For each row in the transactions table, capture: date, post_date (if separate column), description_raw, amount. Sign convention: outflows negative, inflows positive. If statement uses two columns ("Withdrawals" and "Deposits"), set sign accordingly. Preserve description_raw exactly as printed — the bookkeeper will normalize the merchant name later.

Brokerage / 401k / HSA holdings.

Полный SKILL.md на GitHub

Установить pdf-statement-parser в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл pdf-statement-parser?

Parses a single financial statement PDF (checking, savings, credit card, brokerage, 401k, HSA, mortgage, tax form) and emits a normalized JSON record with institution, account mask, statement period, opening/closing balances, line-item transactions or holdings, and a confidence score. Use when extracting structured data from a bank, brokerage, retirement, or HSA PDF statement, when ingesting a drop of household finance documents, or when user mentions parsing a statement, extracting transactions from a PDF, or normalizing statement data.

Как установить скилл pdf-statement-parser?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pdf-statement-parser запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pdf-statement-parser с