quellberg-beleg-pruefunglisted
Install: claude install-skill Shyam-Gupta-Chiliveri/invoice-review-agent
# Quellberg receipt review
Decide for every receipt in a folder: **APPROVE** (pay it) or **INVESTIGATE** (a person must look), and say why.
Reading is done by you and the scripts; the decision is made by fixed rules in `scripts/rules.py`, so it is reproducible and every finding is traceable.
## Run
1. Install once: `pip install -r requirements.txt` (only `pdfplumber`). Optional, for photos and scans without you: Tesseract OCR with German (`apt install tesseract-ocr tesseract-ocr-deu`, or `brew install tesseract tesseract-lang`).
2. Run the review on the folder (it finds `bestellungen.csv` in that folder, else uses `assets/bestellungen.csv`):
```
python scripts/review.py <folder> --out <folder>/results
```
3. If the output lists **NEEDS READING**, do the reading step below for each listed file, then run step 2 again.
4. Answer the user from `<out>/report.md`: first the documents to investigate (high priority first) with their one-line reason, then the approved ones. Link the output files.
## Reading step (photos and scans)
The script reads photos and scans with Tesseract when it is installed, and accepts that reading only if its numbers add up (lines = net, net × rate = VAT, net + VAT = gross). Everything else — no Tesseract, low confidence, or numbers that do not add up because digits were misread — is listed under NEEDS READING. For each file it lists:
1. Open the image (or the rendered page it names under `<out>/pages/`) and read it yourself.
2. Write `<out>/