Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Logistics And Supply Chain?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/thaithienvanid-logistics-and-supply-chain)
---
name: logistics-and-supply-chain
description: "In an aidd repository, use when code touches shipments, warehouses, carriers, EDI, X12, EDIFACT, SSCC, GTIN, customs, or supply-chain traceability."
---
<!-- generated by `aidd gen-docs` from schemas/packs.json; edit the registry, not this file -->
# Logistics and supply chain
## Scope
Applies when the change touches shipments, warehouses, trading-partner EDI, or product traceability. Not when the product moves no goods and exchanges no trade documents; a shop's checkout and stock are commerce. Neighbours: `aidd-domains:commerce-and-marketplaces`, `aidd-domains:apis-and-services`, `aidd-domains:data-and-analytics`.
## Terms
- **GTIN and SSCC**: The number of a trade item, and the serial number of one logistics unit, such as a pallet or a parcel.
- **Incoterms rule**: Which party pays and bears the risk on each leg of a shipment, such as FCA or DDP.
- **Interchange**: One batch of EDI documents, such as orders, ship notices, or invoices, with its control number.
- **Due diligence statement**: The EUDR statement the first operator files before a covered product enters or leaves the EU market; later operators and traders keep its reference.
- **Product passport**: A product's data, such as its materials and origin, reached through an identifier on it.
## Standards
| # | Standard | Edition | Checked | Source |
| --- | --- | --- | --- | --- |
| S1 | EU Deforestation Regulation (EUDR): due diligence for cattle, cocoa, coffee, oil palm, rubber, soya, and wood products | Regulation (EU) 2023/1115, as amended in December 2024 and by Regulation (EU) 2025/2650 | 2026-10-22 | <https://environment.ec.europa.eu/topics/forests/deforestation/regulation-deforestation-free-products_en> |
| S2 | EU Batteries Regulation: the battery passport | Regulation (EU) 2023/1542 | 2026-10-22 | <https://single-market-economy.ec.europa.eu/single-market/digital-product-passport/batteries_en> |
| S3 | Ecodesign for Sustainable Products Regulation (ESPR) and the Digital Product Passport (emerging) | Regulation (EU) 2024/1781 | 2026-10-22 | <https://single-market-economy.ec.europa.eu/single-market/digital-product-passport_en> |
| S4 | GS1 identification keys (GTIN, SSCC, GLN) and EPCIS 2.0 events | — | 2026-10-22 | <https://www.gs1.org/standards/barcodes-epcrfid-id-keys/gs1-general-specifications> |
| S5 | EDI document standards: ASC X12 and UN/EDIFACT | X12 release 008070 (2026) | 2026-10-22 | <https://x12.org/news-and-events/release-schedule> |
| S6 | Incoterms 2020 | Incoterms 2020 | 2026-10-22 | <https://iccwbo.org/business-solutions/incoterms-rules/> |
| S7 | Shipment integrity: one shipment state machine, carrier events and EDI interchanges ingested once by their control numbers, and every quantity with its unit of measure | — | 2026-10-22 | — |
| S8 | Sanctions and export-control screening (EU Dual-Use Regulation, US EAR) | Regulation (EU) 2021/821 | 2026-10-22 | <https://eur-lex.europa.eu/eli/reg/2021/821/oj> |
| S9 | Customs on low-value consignments: the EU's duty on items of EUR 150 or less, and the US de minimis suspension | Council Regulation (EU) 2026/382 | 2026-10-22 | <https://eur-lex.europa.eu/eli/reg/2026/382/oj> |
## Dated obligations
| From | Obligation | Standard |
| --- | --- | --- |
| 2026-12-30 | The EUDR applies to large and medium operators. The first to place a covered product on the EU market, or to export it, files a due diligence statement, and the first downstream operator or trader keeps its reference. | S1 |
| 2027-02-18 | The battery passport is mandatory for electric-vehicle, light-transport, and industrial batteries placed on the EU market. | S2 |
| 2027-06-30 | The EUDR applies to micro and small operators. | S1 |
## Invariants and missed cases
| Always true | The case a plan misses |
| --- | --- |
| A shipment moves only along its allowed states, once per event. | A delivered scan before the shipped scan, or a carrier resending an event. |
| An EDI interchange is processed once, however often it arrives. | A partner resending an interchange with the same control number after a lost acknowledgement. |
| Every quantity carries its unit of measure, and every conversion is explicit. | Cases read as each units, or kilograms as pounds. |
| A covered product reaches the EU market only with its due diligence reference. | A lot split or blended after the statement was filed. |
| A dangerous-goods item ships only on a mode whose rules allow it, with its UN number and class (IATA DGR, ADR, IMDG). | A lithium battery booked as general cargo on an air leg. |
## Checklist by loop step
| Step | Item | Standard |
| --- | --- | --- |
| Before the first edit (`aidd risk --paths`) | Name the goods, the markets, and the trading partners. A covered commodity's product on the EU market is in EUDR scope; an EV, light-transport, or industrial battery needs a passport. | S1, S2 |
| Before the first edit (`aidd risk --paths`) | Every consignee, shipper, and end user is screened against the sanctions and denied-party lists on the route, and a controlled item names its classification before it ships. | S8 |
| Specify | One shipment state machine with its carrier events; each logistics unit has an SSCC and each item a GTIN; the Incoterms rule names who holds the risk on each leg. | S7, S4, S6 |
| Specify | A due diligence reference travels with each EUDR lot through every split and blend, and each lot's origin is traced. A product passport's data follows its delegated act; with none adopted, design for it, never claim it. | S1, S3, S2 |
| Specify | Each item carries its HS code and country of origin, and the landed cost follows the destination's low-value rules. | S9 |
| Implement | EDI ingest is idempotent by interchange control number, acknowledges each interchange, and validates against the partner's X12 release or EDIFACT directory. | S5, S7 |
| Implement | Every quantity is stored with its unit of measure; conversions live in one place, with their factors tested. | S7 |
| Implement | Traceability events are recorded as GS1 EPCIS 2.0 events (what, when, where, why), so a recall is one query. | S4 |
| Review | Out-of-order and duplicate carrier events, a resent interchange, and each unit conversion have a test. | S7, S5 |
| Roll out | Stuck shipments, EDI rejects, and unacknowledged interchanges are rollback triggers and observe signals. | S7, S5 |
## Test commands
| Command | Proves | How | Standard |
| --- | --- | --- | --- |
| Shipment state machine tests | every carrier event moves a shipment along an allowed transition, once | property-based tests over event sequences, duplicates and out-of-order events included | S7 |
| EDI replay test | a resent interchange is processed once and acknowledged again | an integration test that feeds one fixture interchange twice with the same control number | S5, S7 |
| EDI conformance check | every outbound document validates against the partner's implementation guide | the EDI translator's validator, or a schema of the partner's guide, over fixture documents in CI | S5 |
| GS1 key check digit tests | every GTIN and SSCC created or accepted has a valid check digit and length | unit tests of the mod-10 check digit, with GS1's published examples as fixtures | S4 |
| Unit conversion tests | no quantity is stored without its unit, and each conversion round-trips | property-based tests over the conversion table, and a schema check that every quantity column has a unit column | S7 |
| Due diligence traceability test | every EUDR lot shipped carries a statement reference after splits and blends | an integration test over receiving, splitting, blending, and shipping | S1 |
| Denied-party screening test | a shipment to a listed party, or a controlled item without its classification, is held before it ships | an integration test in CI with fixture parties from each screened list and a controlled item | S8 |
## Keep it current
Each entry is due after its `review_every_days` (else emerging 90 days, established 365) or by its `review_due`. An emerging one applies only when the change needs it, said in the Spec. One `aidd eval standards` lists as due is looked up in Specify, and a missing one is proposed to aidd's `schemas/industry-standards.json`.