| name | expense-report |
| category | thai-finance |
| version | 1.0.0 |
| description | Extract, categorize, and summarize SME receipts and expenses. |
| risk_level | high |
| output_type | csv, xlsx-schema, markdown |
Expense Report Skill
Purpose
Convert receipt and invoice files into structured expense report.
Use When
- User has receipts/invoices to summarize
- User asks for expense report
- User wants monthly expense category summary
Required Inputs
- Source folder
- Reporting period
- Expense categories
Workflow
- Require the
expense-report discovery manifest; typed source overrides replace role defaults and must be recorded in the report.
- Create file inventory.
- Extract date, vendor, document number, amount, VAT, total.
- Categorize by finance rules.
- Flag missing, duplicate, suspicious, or high-value items.
- Verify — recompute category subtotals and the grand total in an independent pass from the row-level data; reconcile against the sum of individual rows. Mismatches get re-derived from source, never smoothed over.
- Exception resolution loop — if flagged items are ≤3 and resolvable by asking the user (e.g. "receipt X: personal or business?"), ask those targeted questions once, then re-run steps 2–5 for only the affected rows. Cap: 1 round. Anything still unresolved ships as a marked exception, not a guess.
- Export table and summary.
Output Contract
Columns:
- source_file
- document_type
- date
- vendor
- category
- amount_before_vat
- vat
- total_amount
- payment_method
- confidence
- review_flag
- notes
Risk Control
- Draft for owner/accountant review.
- Do not guess missing amounts.
- Always include source reference.