🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Invoices

by @ivangdavila

Capture, extract, and organize received invoices with automatic OCR, provider detection, and searchable archive.

Versionv1.0.1
Downloads1,599
Installs1
Stars⭐ 2
TERMINAL
clawhub install invoices

πŸ“– About This Skill


name: Invoices description: Capture, extract, and organize received invoices with automatic OCR, provider detection, and searchable archive.

Trigger

Use when user receives invoices (email, photo, PDF) and wants them organized automatically.

Key difference: This skill MANAGES received invoices. The invoice skill CREATES invoices to send.


Storage

~/invoices/
β”œβ”€β”€ inbox/                    # Unprocessed files awaiting extraction
β”œβ”€β”€ archive/                  # Organized by year/month
β”‚   └── 2026/
β”‚       └── 02/
β”‚           └── 2026-02-13_Hetzner_INV-12345_89.50.pdf
β”œβ”€β”€ providers/                # Provider metadata
β”‚   └── index.json
β”œβ”€β”€ entries.json              # All invoice metadata (searchable)
└── state.json                # Processing state


Quick Reference

| Topic | File | |-------|------| | Capture and extraction workflow | process.md | | Fields to extract | extraction.md | | Search queries and reports | search.md | | Legal requirements by country | legal.md |


Process Summary

1. Capture β€” Receive invoice (email attachment, photo, direct PDF). Copy to inbox/. 2. Extract β€” OCR if needed, parse fields (provider, date, amounts, tax). 3. Validate β€” Check required fields, detect duplicates. 4. Organize β€” Rename, move to archive/YYYY/MM/, update entries.json. 5. Confirm β€” Show extracted data, allow corrections.

See process.md for detailed workflow.


Critical Rules

  • Never delete originals β€” Keep PDFs permanently. Legal requirement (4-6 years depending on country).
  • Detect duplicates β€” Same invoice number + provider = duplicate. Alert, don't overwrite.
  • Validate tax math β€” Base + tax should equal total. Flag discrepancies.
  • Provider normalization β€” "HETZNER ONLINE GMBH" = "Hetzner". Maintain provider aliases.

  • Alerts

  • Invoice pending >48h in inbox
  • Payment due in <7 days
  • Unusual amount (>50% higher than same provider average)
  • Missing expected recurring invoice