logisticshublisted
Install: claude install-skill tsirbiladze/logisticshub
# Logisticshub: trade document cross-check
You read the documents; `scripts/check.mjs` (in this skill's directory) applies 16 deterministic rules to your extraction and writes the report. The rules see only what you extract, so record what is **printed**, quoted **verbatim**, and nothing you worked out yourself.
## 1. Collect the set
One run checks one shipment. List every file the user provided and give each document a type: `commercial_invoice`, `packing_list`, `cmr`, `contract`, or `other` (insurance policy, freight statement, specification…). Read every page of every file.
- Inputs are PDFs and page images (JPG, PNG). Read a text PDF from its text; read a scan or an image from the picture.
- Files of several shipments: group them by the document numbers they cite, and do steps 2 to 4 once per shipment, each with its own extraction file and `--out` folder.
- A single document is a set too: an invoice on its own gets its line totals, its sums and its amount in words checked.
Done when every document has a type, every page has been read, and every document in the run belongs to one shipment.
## 2. Extract
Read `references/extraction.md` in full before the first field: it decides every hard case (decimal signs, dates, what a quote covers, tables over several pages, scans, each field of each document). Then write `extraction.json` in the folder of the user's documents. Copy each document's keys from `references/extraction-blank.json`; the JSON Schema is `references/extr