supplier-selection
Installation
SKILL.md
Supplier Selection
Ranking suppliers is arithmetic, not judgment. Compute it in Python via code execution — do not reason about it in prose.
Method
For a given SKU:
- Read
/mnt/user/data/supplier_catalog.csvand filter to rows matching the SKU. This gives you(supplier_id, unit_price, min_order_qty)for each candidate. - Join with
/mnt/user/data/suppliers.csvonsupplier_idto getlead_time_daysandreliability. - Normalize price and lead time across the candidates (min-max to [0,1], where 0 is best). Reliability is already on [0,1] where higher is better.
- Score each candidate:
score = 0.5 × (1 − norm_price) + 0.3 × (1 − norm_lead_time) + 0.2 × reliability - Pick the highest score. Tie-breaks: lowest
unit_price, then lowestlead_time_days, then alphabeticalsupplier_id.