ROKH
← All recipes

Catch wrong container numbers in shipping papers

parts checkedwith an AI agent

What you get

Bills of lading and packing lists are read, every container number is checked against its built-in check digit, and mismatches between documents for the same shipment are listed.

Why this combination

Container codes (ISO 6346) have a check digit like a bank card; a little-known validation library knows it, and one typo caught saves days of demurrage at the port.

Parts

docling GitHubReads PDF, Word and scans into clean structured text and tables.licence: MIT71,089 starslast update: November 26, 2026
python-stdnum GitHubValidates over 200 kinds of numbers: VAT IDs, IBAN, EAN, container codes.licence: LGPL-2.1611 starslast update: November 14, 2026OpenSSF Scorecard: 3.4/10

What was checked

On November 26, 2026 a script checked all 2 parts: each exists, is not archived, was updated within the last 12 months and has a known licence. The parts were chosen so their inputs and outputs fit together.

Nobody has yet run this exact combination end to end on real data. Build it on a copy of your data first; the prompt below asks your AI agent to tell you plainly what does not work.

Limits, honestly

A valid number can still be the wrong container; this catches typos, not mix-ups.

How to start

It runs on your own computer. Copy the prompt into an AI agent (Claude Code or similar); it installs the parts, joins them, and runs a test with sample data before your real files.

Prompt for your AI agent

Build this for me: Catch wrong container numbers in shipping papers.
What I want to get: Bills of lading and packing lists are read, every container number is checked against its built-in check digit, and mismatches between documents for the same shipment are listed.

Use these open projects and data:
- docling: https://github.com/docling-project/docling (MIT)
- python-stdnum: https://github.com/arthurdejong/python-stdnum (LGPL-2.1)

Why this combination: Container codes (ISO 6346) have a check digit like a bank card; a little-known validation library knows it, and one typo caught saves days of demurrage at the port.
Known limits: A valid number can still be the wrong container; this catches typos, not mix-ups.

Run it on my computer. Tell me first what you will install and where.
Explain each step in plain words for someone who does not program.
Do not ask me for passwords or keys and do not use administrator rights.
Before installing anything, check that each project is still maintained and its licence allows my use. Do not add other agent skills, MCP servers or plugins without showing me their code first.
When it works, tell me how to open it again. If something does not work, say so plainly.

Fits

Import, export, foreign suppliersDelivery and logistics